Problem putting code in flash with CW 7.1 build 14 for MCF52223

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problem putting code in flash with CW 7.1 build 14 for MCF52223

跳至解决方案
1,520 次查看
skyguy
Contributor III
I have a program that runs fine on my M52223EVB and my custom board in RAM.  I have not succeeded in putting my program in flash.  What am I missing?
1) Set target to INTERNAL_FLASH
2) Compile
3) Start Flash Programmer
4) Unselect 'custom target' to use the default target INTERNAL_FLASH
5) Use the flash memory base address 0x00000000
5) Erase flash - this succeeds and blank checks successfully
6) Attempt to program - I get the error message "0x00000200 bytes of Target Memory at 0x20000000 is not within flash boundaries."
The RAM is set at the default value of 0x20000000, but I don't see how that matters or know what to do about it.
Thanks,
Rick
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
727 次查看
skyguy
Contributor III
OK, I figured it out.  I'm using the Processor Expert, and didn't understand why there were two instances of the CPU bean.  So I had at some point deleted one of them - the one set up for flash.  Instead of getting an error that there is no processor assigned to the target, you get RAM settings when you compile for flash.  Once I restored another CPU instance and set it to match another project, I could load the flash.


Rick

在原帖中查看解决方案

0 项奖励
回复
1 回复
728 次查看
skyguy
Contributor III
OK, I figured it out.  I'm using the Processor Expert, and didn't understand why there were two instances of the CPU bean.  So I had at some point deleted one of them - the one set up for flash.  Instead of getting an error that there is no processor assigned to the target, you get RAM settings when you compile for flash.  Once I restored another CPU instance and set it to match another project, I could load the flash.


Rick
0 项奖励
回复