Debugging flash writer code on MC9S12A256 using Cyclone Pro

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Debugging flash writer code on MC9S12A256 using Cyclone Pro

ソリューションへジャンプ
2,113件の閲覧回数
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 解決策
1,116件の閲覧回数
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 返答(返信)
1,116件の閲覧回数
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 件の賞賛
返信
1,117件の閲覧回数
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 件の賞賛
返信