TI中文支持网
TI专业的中文技术问题搜集分享网站

我的芯片是C6743的,为什么参照C6747 的Flash测试例程我读出的数据全是’\000'呢?写进去的数据是对的

为什么参照C6747 的Flash测试例程我读出的数据全是’\000'呢?写进去的数据是对的

Tony Tang:

请问是什么flash? 写数据的过程就有回读的步骤,写是对的,说明读也是对的。你单独的读有什么特别之处?

user1853832:

回复 Tony Tang:

您好,谢谢您的回答,我这个问题已经解决啦,现在用UART boot ,按照你之前跟我说的我先打开AISgen工具,再上电,还是出现错误:

File IO): Read 5940 bytes from file G:\DSP\MEMS3\flash_SPI\sdram\Debug\11.bin.(Serial Port): Opening COM1 at 115200 baud…(AIS Parse): Read magic word 0x41504954.(AIS Parse): Waiting for BOOTME… (power on or reset target now)(Serial Port): Read error! (The operation has timed out.)(AIS Parse): Read invalid BOOTME string.(AIS Parse): Boot aborted.(Serial Port): Closing COM1.

Tony Tang:

回复 user1853832:

上面这种错误可能是接到了不正确的bootme,所以识别不出来,然后time out。

你可以试试后打开boot工具,然后手动复位DSP试试。

user1853832:

回复 Tony Tang:

您好,帮我看下我的复位电路有没有问题,没搞懂是怎么复位的

Tony Tang:

回复 user1853832:

这是RC延时电路,对时序的控制没有保障,一般建议用复位芯片,或者电源芯片的PG引脚控制复位。

就目前的电路你可以加大电容试试。

user1853832:

回复 Tony Tang:

您好,我原来电容104,换成105啦,现在用串口调试助手可以收到BOOTME ,但是用UART BOOT HOST还是出现以下错误,这次没有提示time out,我想是不是C6743 是不是不用接收到BOOTME???

(File IO): Read 5940 bytes from file G:\DSP\MEMS3\flash_SPI\sdram\Debug\11.bin.(Serial Port): Opening COM1 at 115200 baud…(AIS Parse): Read magic word 0x41504954.(AIS Parse): Waiting for BOOTME… (power on or reset target now)(AIS Parse): Read invalid BOOTME string.(AIS Parse): Boot aborted.(Serial Port): Closing COM1.

Tony Tang:

回复 user1853832:

按我前面说的,手动复位DSP试试,比如用导线从电容处与地短接一下,不过操作时可能要多试几次,因为用手操作可能会有抖动。

调试助手的波特率也是设的115200bps吗?

上面的情况,一般是因为在Bootme之间有个其它的字符,一般都是由于电路设计不合理引入的。

user1853832:

回复 Tony Tang:

谢谢您的回答,我的串口调试助手波特率是设的115200bps。。。我按照你说的手动复位,收到了BOOTME,但是没有下载成功:

补充:在我不勾选Wait for BOOTME时,每次上电后点击Start能够成功下载

(File IO): Read 5940 bytes from file G:\DSP\MEMS3\flash_SPI\sdram\Debug\11.bin.(Serial Port): Opening COM1 at 115200 baud…(AIS Parse): Read magic word 0x41504954.(AIS Parse): Waiting for BOOTME… (power on or reset target now)(AIS Parse): BOOTME received!(AIS Parse): Performing Start-Word Sync…(AIS Parse): Performing Ping Opcode Sync…(AIS Parse): Processing command 0: 0x5853590D.(AIS Parse): Performing Opcode Sync…(AIS Parse): Executing function…(AIS Parse): Processing command 1: 0x58535907.(AIS Parse): Performing Opcode Sync…(AIS Parse): Loading boot table…(AIS Parse): Processing command 2: 0x5853590D.(AIS Parse): Performing Opcode Sync…(AIS Parse): Executing function…(AIS Parse): Processing command 3: 0x5853590D.(AIS Parse): Performing Opcode Sync…(AIS Parse): Executing function…(AIS Parse): Processing command 4: 0x5853590D.(AIS Parse): Performing Opcode Sync…(AIS Parse): Executing function…(AIS Parse): Processing command 5: 0x5853590D.(AIS Parse): Performing Opcode Sync…(AIS Parse): Executing function…(AIS Parse): Processing command 6: 0x5853590D.(AIS Parse): Performing Opcode Sync…(AIS Parse): Executing function…(AIS Parse): Processing command 7: 0x5853590D.(AIS Parse): Performing Opcode Sync…(AIS Parse): Executing function…(AIS Parse): Processing command 8: 0x5853590D.(AIS Parse): Performing Opcode Sync…(AIS Parse): Executing function…(AIS Parse): Processing command 9: 0x5853590D.(AIS Parse): Performing Opcode Sync…(AIS Parse): Executing function…(AIS Parse): Processing command 10: 0x5853590D.(AIS Parse): Performing Opcode Sync…(Serial Port): Read error! (The operation has timed out.)(AIS Parse): I/O Error in read!(Serial Port): Read error! (The operation has timed out.)(AIS Parse): I/O Error in read!(Serial Port): Read error! (The operation has timed out.)(AIS Parse): I/O Error in read!(System): Boot aborted by user.(Serial Port): Closing COM1.

Tony Tang:

回复 user1853832:

有没有正常的Log,我手头没有C6747的板子,不知道出错这一步是做什么操作,感觉是DSP送给host的数据不对。

下载下程序是放到SDRAM上的,还是片上内存的?可以先试一个小的程序跑到片上内存试试。

赞(0)
未经允许不得转载:TI中文支持网 » 我的芯片是C6743的,为什么参照C6747 的Flash测试例程我读出的数据全是’\000'呢?写进去的数据是对的
分享到: 更多 (0)