Error when using a Simulator target- memory regions not found

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

Error when using a Simulator target- memory regions not found

ソリューションへジャンプ
1,797件の閲覧回数
raghav_sarma
Contributor I
Hi everyone,
 
I using Code Warrior 3.1 for HC12 and have built my code for the simulator target. However, when I try running my code in the simulator, I get the following error message:
 
STARTED
RUNNING
No memory at [1200:1] (cal_check)

 
I've run the same code with the a BDM and the actual hardware as target and it worked fine. In fact I got a very similar message when I tried to build another completely independent application also with the simulator.
 
The first application used the RELOCATE command in the prm file to relocate some of the memory during runtime to RAM ( with the RAM section starting at 0x1200). The second application also had certain memory checking features i.e. The data bus test writes a series of bitmaps to RAM, each bitmap having one bit set corresponding to one of the data bus lines (a walking 1's test). The bitmap is read back and if it does not correspond to the just written value, a watchdog reset is invoked.
 
Any idea what can cause these problems when using the simulator?
 
Raghav
 
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,124件の閲覧回数
CrasyCat
Specialist III
Hello
 
The message just tells you that you are trying to access a memory area, which is not configured as a valid memory area in the simulator.
 
In order to be able to debug:
  - Start the simulator
  - Select "Simulator" -> "Configure"
  - You can define your simulator memory map in the Memory Configuration dialog.
        - If you do not want the simulator to track access to invalid area, just change the
          Mode to "Auto on Access"
        - If you want to simulator to track invalid memory access change mode to "User Defined"
          and define your memory map.
  - Once you are finished, click on Save button and save the data to a file called default.mem
    located in your project directory.
Next time you start the simulator from that current directory, the settings will be activated again.
 
I hope this helps.
 
CrasyCat

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,125件の閲覧回数
CrasyCat
Specialist III
Hello
 
The message just tells you that you are trying to access a memory area, which is not configured as a valid memory area in the simulator.
 
In order to be able to debug:
  - Start the simulator
  - Select "Simulator" -> "Configure"
  - You can define your simulator memory map in the Memory Configuration dialog.
        - If you do not want the simulator to track access to invalid area, just change the
          Mode to "Auto on Access"
        - If you want to simulator to track invalid memory access change mode to "User Defined"
          and define your memory map.
  - Once you are finished, click on Save button and save the data to a file called default.mem
    located in your project directory.
Next time you start the simulator from that current directory, the settings will be activated again.
 
I hope this helps.
 
CrasyCat
0 件の賞賛
返信