This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
硬件:EVM5515
IDE:CCS 6.0
下载方法,运行TI提供的工程 programmer_c5515evm_ccs4,然后输入1+bin文件路径。
问题:当bin文件超过64k时,无法烧录成功。
开发板上的Nor Flash为PC28F128P30T85,容量128Mbytes。
下载时console窗口信息如下:其中C:\BOOT中的EVM_Sample2.bin文件大小为217k字节。
Choose the device...
1<filepath> - NOR Flash
2<filepath> - NAND Flash
3<filepath> - SPI
4<filepath> - IIC EEPROM
5<filepath> - MMC
6<filepath> - SD
1C:\BOOT\EVM_Sample2.bin
NOR Flash...
Erasing chip (NOR)...
Writing data to device...
Opening C:\BOOT\EVM_Sample2.bin...
Input file opened
WRITE ERROR! at 0x00000001
Wrote 0x64ff Read 0xffff
加入断点单步调试,发现出现错误的是第65537个字节,十六进制为0x10001,程序中用printf("WRITE ERROR! at 0x%08x\n", addr);打印信息,输出为WRITE ERROR! at 0x00000001。因为printf("0x%08x")只能打印16位数据,所以将0x10001打印成了0x00000001。
当烧录小于64k的bin文件时,可以烧录成功并正常启动运行。