在开发板上可以将程序写入片内FLASH,同样的程序和.CMD文件,向自己的板子就写不进去,但是可以在RAM中调试。
报的信息:
Cortex_M3_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
Joey Mao:
你好,
查看下数据手册上boot mode的GPIO脚的状态,量一下你的板子上是否正确,是否是Flash mode
另外,你用的是哪款芯片?
在开发板上可以将程序写入片内FLASH,同样的程序和.CMD文件,向自己的板子就写不进去,但是可以在RAM中调试。
报的信息:
Cortex_M3_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
ying zhou1:
回复 Joey Mao:
使用的是F28M35H52C1REPT,BootMode的PG3、PG7、PF3、PF2均在3.3V
在开发板上可以将程序写入片内FLASH,同样的程序和.CMD文件,向自己的板子就写不进去,但是可以在RAM中调试。
报的信息:
Cortex_M3_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
Hank Zhao:
从两个地方检察,一是target configuration file中device的配置和实际的芯片型号是否一致,二是工程所用的CMD文件是否是M3核的CMD文件。
在开发板上可以将程序写入片内FLASH,同样的程序和.CMD文件,向自己的板子就写不进去,但是可以在RAM中调试。
报的信息:
Cortex_M3_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
ying zhou1:
回复 Hank Zhao:
F28M35H52C1.ccxml文件中,Board or Device是F28M35H52C1,.CMD用的是F28M35x_generic_M3_FLASH.cmd没改,同样的工程可以写入使用同样芯片的开发板
在开发板上可以将程序写入片内FLASH,同样的程序和.CMD文件,向自己的板子就写不进去,但是可以在RAM中调试。
报的信息:
Cortex_M3_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
Hank Zhao:
回复 ying zhou1:
板子的焊接有问题同样会出现这种情况,如果板子一直都没有成功烧写过程序,就很有可能是硬件方面的问题。
在开发板上可以将程序写入片内FLASH,同样的程序和.CMD文件,向自己的板子就写不进去,但是可以在RAM中调试。
报的信息:
Cortex_M3_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
ying zhou1:
回复 Hank Zhao:
能不能换种问法,要将程序写入F28M35H52C1的片内FLASH需要哪些条件和步骤?
在开发板上可以将程序写入片内FLASH,同样的程序和.CMD文件,向自己的板子就写不进去,但是可以在RAM中调试。
报的信息:
Cortex_M3_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
Joey Mao:
回复 ying zhou1:
根据你的描述,开发板能烧写成功,自己的板子却不行,这多半是硬件问题。
没有什么固定的步骤,只要工程的CMD文件是对的,另外CCS的目标配置文件中仿真器和目标芯片选对了就行,你的操作步骤应该没问题,毕竟在开发板上你用起来没什么问题
在开发板上可以将程序写入片内FLASH,同样的程序和.CMD文件,向自己的板子就写不进去,但是可以在RAM中调试。
报的信息:
Cortex_M3_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
ying zhou1:
回复 Joey Mao:
谢谢各位大侠,但还是没找到原因,开发板用的是xF28M35H52C1REPT,自己的板子用的是F28M35H52C1REPT,他们在使用On-Chip Flash上有区别吗?刚出厂的F28M35H52C1REPT需要怎么处理才能使用On-Chip Flash?
在开发板上可以将程序写入片内FLASH,同样的程序和.CMD文件,向自己的板子就写不进去,但是可以在RAM中调试。
报的信息:
Cortex_M3_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
ying zhou1:
回复 ying zhou1:
升级CCS的模拟器驱动后,问题解决了,谢谢大家。