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.

C6457的pragma CODE_SECTION问题



从FLASH引导,把应用程序搬移到DDR2运行,为了提升部分代码的运行效率,需要放到片内RAM运行。

下面以LED闪烁例子测试:

使用#pragma CODE_SECTION,问题是DEBUG模式下运行正常(LED正常闪烁),烧写到FLASH后,运行异常(LED不闪烁)。

注:屏蔽掉#pragma CODE_SECTION,整个程序从FLASH搬移到DDR2或者是片内L2,都启动正常。

请教下:#pragma CODE_SECTION用法不对,还是cmd文件配置错误,又或者是其它什么原因?

下面附带CMD文件 及 MAP文件: