我想使用串口将程序下载到F28377S的Flash中去,按照手册中的说明现将F2837xS_sci_flash_kernel程序下载到F28377S的RAM中,然后再利用F2837xS_sci_flash_kernel将我的应用程序下载到Flash中。F2837xS_sci_flash_kernel程序来源于controlSUITE中的例程。
(1)用CCS编译F2837xS_sci_flash_kernel程序生成F2837xS_sci_flash_kernel.out文件;
(2)用Hex2000.exe将F2837xS_sci_flash_kernel.out转换成F2837xS_sci_flash_kernel.txt;
(3)然后用串口给F28377S发送字符“A”,收到字符A,确认28377S锁定比特率;
(4)发送F2837xS_sci_flash_kernel.txt到F28377S。
第4步开始出现问题,DSP接收F2837xS_sci_flash_kernel.txt出不多一半后,不再接收。也就是程序F2837xS_sci_flash_kernel不能下载完全。问什么会出现这个问题呢?
后面我有写了一个闪灯程序,在Ram中运行的,用上述方法进行加载,却加载完成了,能看到LED灯按设计的规律进行闪烁。