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.

CCS5.4 程序下载到flash问题



您好,最近遇到CCS5.4 下载程序到28069的flash中出现了如下情况,请问有经验的开发者这种情况是否正常。

在工程源文件中添加

extern Uint16 RamfuncsLoadStart;
extern Uint16 RamfuncsLoadEnd;
extern Uint16 RamfuncsRunStart;
extern Uint16 RamfuncsLoadSize;

memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (Uint32)&RamfuncsLoadSize);

InitFlash();

然后替换cmd文件,将ram的cmd替换为flash的cmd。用仿真器连接,load program,程序正常运行。因为要看程序是否下载到flash里,先Disconnect仿真器,然后将DSP断电,在上电运行。但是程序此时不能进入主函数入口执行,而是在地址0x3FF6C3处(如下图所示),必须点击复位Restart才能进入主函数重新执行。

问下个位大神,将程序烧如flash均是这样的吗?还是不用复位就可以执行,而是我的程序设置错误了呢?

  • Tianyi,

    插上仿真器,则会自动进入仿真器运行模式,由CCS控制运行;根据你的描述,你应该想让芯片运行在stand alone模式,则需要脱开仿真器,boot 到Flash模式(默认就可以的。

  • Martin Yu 说:

    Tianyi,

    插上仿真器,则会自动进入仿真器运行模式,由CCS控制运行;根据你的描述,你应该想让芯片运行在stand alone模式,则需要脱开仿真器,boot 到Flash模式(默认就可以的。

    谢谢您的回答,不带仿真器上电DSP确实是boot到flash启动,但是为什么在仿真器模式下运行,断电在上电之后会boot到地址0x3FF6C3处呢?查询cmd文件好像是地址是boot rom