Debugging flash writer code on MC9S12A256 using Cyclone Pro

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

Debugging flash writer code on MC9S12A256 using Cyclone Pro

跳至解决方案
1,357 次查看
Stephen
Contributor III
I have an application where I can download a data table via the serial port, and it is then written to Flash.
The flash writing code is copied into RAM and run from there. (it is compiled as position independent code?)
If I program this application onto the target, disconnect the BDM, then switch it on again, I can download the table and it is successfully stored to flash memory. I can view the memory via the serial port commands, or I can reconnect the BDM device and inspect the memory in the debugger, and it has been updated successfully :smileyhappy:
 
Now for the strange part: if I leave the BDM connected and run the program under control of the debugger, the flash memory is not altered. But neither protection violation nor access error flags are set either. But I can step through the assembler code in RAM and it is running as it should. :smileysad:
 
I am guessing that there is a setting in the debugger that I should set but I have tried looking and even checked the help files, but cannot work out what I have done wrong.
 
Any suggestions please? 
标签 (1)
标记 (1)
0 项奖励
1 解答
360 次查看
CrasyCat
Specialist III
Hello
 
Not sure this is the problem, but I know there is a Debugging Memory Map associated with the debugger.
 
You can see the current Debugging memory MAP selecting MultilinkCyclonePro -> "Debugging MemoryMap"
 
Make sure the "Refresh memory when halting" is checked for the flash area you are programming.
Per default, FLASH memory are not refreshed when debugger is halted (As far as I know).
 
I hope this helps.
 
CrasyCat

在原帖中查看解决方案

0 项奖励
2 回复数
360 次查看
Stephen
Contributor III
Sorry - forgot to mention - True Time simulator and real time debugger is version 6.1, build 6037.
The cyclone pro is the earlier model without the LCD screen on the front.
0 项奖励
361 次查看
CrasyCat
Specialist III
Hello
 
Not sure this is the problem, but I know there is a Debugging Memory Map associated with the debugger.
 
You can see the current Debugging memory MAP selecting MultilinkCyclonePro -> "Debugging MemoryMap"
 
Make sure the "Refresh memory when halting" is checked for the flash area you are programming.
Per default, FLASH memory are not refreshed when debugger is halted (As far as I know).
 
I hope this helps.
 
CrasyCat
0 项奖励