完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
hi,
我用的是tmdsevm6678le评估板,仿真器xds560,在跑tipdk_C6678_1_1_2_5packagestiplatformevmc6678lplatform_test时,其他均正常,只有uart和nor失败,详情如下 nor: [C66xx_0] Current core id is 0 [C66xx_0] EEPROM test start [C66xx_0] test_eeprom: passed [C66xx_0] EEPROM test complete [C66xx_0] NAND test start [C66xx_0] test_nand: passed [C66xx_0] NAND test complete [C66xx_0] NOR test start [C66xx_0] test_nor: Read failed errno = 0x2 [C66xx_0] NOR test complete uart: [C66xx_0] Current core id is 0 [C66xx_0] UART test start [C66xx_0] Open a serial port console in a PC connected to [C66xx_0] the board using UART and set its baudrate to 115200 [C66xx_0] You should see following message --- [C66xx_0] This is a Platform UART API unit test ... [C66xx_0] Type 10 characters in serial console 于是我把程序换成论坛上提供的测试程序KI_STK_20140123,中的uart,还是失败,具体现象如下: [C66xx_0] Initialize DSP main clock = 100.00MHz/1x10 = 1000MHz [C66xx_0] [C66xx_0] Init UART0 at 115200bps in loopback mode... [C66xx_0] Required baud rate 115200, effective baud rate 115740! [C66xx_0] UART0: Tx 1024 bytes, Rx 1024 bytes, 1024 correct bytes. Consumes 88471996 cycles, throughput is 92Kbps [C66xx_0] [C66xx_0] Init UART0 at 230400bps in loopback mode... [C66xx_0] Required baud rate 230400, effective baud rate 231481! [C66xx_0] UART0: Tx 1024 bytes, Rx 1024 bytes, 0 correct bytes. Consumes 44236354 cycles, throughput is 185Kbps [C66xx_0] [C66xx_0] Init UART0 at 460800bps in loopback mode... [C66xx_0] Required baud rate 460800, effective baud rate 452898! [C66xx_0] UART0: Tx 1024 bytes, Rx 1024 bytes, 0 correct bytes. Consumes 22609858 cycles, throughput is 362Kbps [C66xx_0] [C66xx_0] Init UART0 at 921600bps in loopback mode... [C66xx_0] Required baud rate 921600, effective baud rate 946969! [C66xx_0] UART0: Tx 1024 bytes, Rx 1024 bytes, 0 correct bytes. Consumes 10813630 cycles, throughput is 757Kbps [C66xx_0] [C66xx_0] Init UART0 at 1843200bps in loopback mode... [C66xx_0] Required baud rate 1843200, effective baud rate 1736111! [C66xx_0] UART0: Tx 1024 bytes, Rx 1024 bytes, 0 correct bytes. Consumes 5898694 cycles, throughput is 1388Kbps [C66xx_0] [C66xx_0] Init UART0 at 3686400bps in loopback mode... [C66xx_0] Required baud rate 3686400, effective baud rate 3472222! [C66xx_0] UART0: Tx 1024 bytes, Rx 1024 bytes, 0 correct bytes. Consumes 2949652 cycles, throughput is 2777Kbps [C66xx_0] [C66xx_0] Init UART0 at 115200bps... [C66xx_0] Required baud rate 115200, effective baud rate 115740! [C66xx_0] Start print character code from 0 to 255 over UART0... 在尝试打印字符后,就卡住了,我的串口上位机程序也没有反应,当然我的串口线已经连上,com1打开,波特率也设成了115200,请问是我的配置哪里有问题吗?还是买来的板子uart模块有问题?另外,nor flash通过spi驱动,所以我尝试运行KI_STK_20140123,中的spi,运行仍然失败,请教下是哪里有问题,会是nor flash芯片的原因吗? [C66xx_0] Initialize DSP main clock = 100.00MHz/1x10 = 1000MHz [C66xx_0] [C66xx_0] SPI internal loopback test at 66MHz... [C66xx_0] SPI loopback test passed with data pattern 0x0. Throughput= 32Mbps [C66xx_0] SPI loopback test passed with data pattern 0xffff. Throughput= 32Mbps [C66xx_0] SPI loopback test passed with data pattern 0x5555. Throughput= 32Mbps [C66xx_0] SPI interrupt test: manually generate RX overrun error... 另外我在跑KI_STK_20140123的程序时都是不能单步执行的,显示如下: No source available for "main() at SPIDebugSPI.out:[3] 0xc06aa84[4]" 请问是需要在哪里设置吗? 总结下我的问题: 1.uart配置哪里有问题?还是说板子uart模块有问题? 2.spi驱动nor flash,代码运行失败,会是哪里的问题? 3.KI_STK_20140123的程序不能单步执行,是哪里设置有问题? 菜鸟提问,各位大神多多指教 |
|
相关推荐
5 个讨论
|
|
hdfsf 发表于 2018-8-6 09:07 hi Allen Yin, 首先非常感谢你的回答,你说的很对,我尝试改变跳线的连接后,串口已经可以正常调通了,我会按照你说的去下载一个最新的mcsdk,然后继续尝试,如果有新的进展会更新在这里,谢谢 |
|
|
|
|
|
hdfsf 发表于 2018-8-6 09:07 hi, 你是对的,我确实在timcsdk_2_01_02_05toolswriternor找到了一个nor操作的示例 代码,可以正常运行,我对比了下D:tipdk_C6678_1_1_2_5packagestiplatform evmc6678lplatform_test的项目,发现是在malloc时出现了问题,应该是我设置的内存 太小,请问怎么能加大内存?请多多指点,我的cmd文件内容如下: /***************************************************************************** * * Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the * distribution. * * Neither the name of Texas Instruments Incorporated nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * *****************************************************************************/ /* * Linker command file * */ -c -heap 0x40000 -stack 0x8000 /* Memory Map 1 - the default */ MEMORY [ L1PSRAM (RWX) : org = 0x0E00000, len = 0x7FFF L1DSRAM (RWX) : org = 0x0F00000, len = 0x7FFF L2SRAM (RWX) : org = 0x0820000, len = 0x200000 MSMCSRAM (RWX) : org = 0xc000000, len = 0x200000 DDR3 (RWX) : org = 0x80000000,len = 0x10000000 ] SECTIONS [ .csl_vect > L2SRAM .cppi > L2SRAM .linkram > L2SRAM .mac_buffer > L2SRAM platform_lib > L2SRAM .text > L2SRAM GROUP (NEAR_DP) [ .neardata .rodata .bss ] load > L2SRAM .stack > L2SRAM .cinit > L2SRAM .cio > L2SRAM .const > L2SRAM .data > L2SRAM .switch > L2SRAM .sysmem > L2SRAM .far > L2SRAM .testMem > L2SRAM .fardata > L2SRAM ] |
|
|
|
|
|
只有小组成员才能发言,加入小组>>
279 浏览 1 评论
494 浏览 2 评论
NA555DR VCC最低电压需要在5V供电,为什么用3.3V供电搭了个单稳态触发器也使用正常?
730 浏览 3 评论
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
630 浏览 1 评论
对于多级放大电路板,在PCB布局中,电源摆放的位置应该注意什么?
1096 浏览 1 评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
212浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
168浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
41浏览 13评论
在使用3254进行录音的时候出现一个奇怪的现象,右声道有吱吱声,请教一下,是否是什么寄存器设置存在问题?
144浏览 13评论
TLV320芯片内部自带数字滤波功能,请问linein进来的模拟信号是否是先经过ADC的超采样?
148浏览 12评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-13 01:29 , Processed in 1.006808 second(s), Total 50, Slave 42 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号