Error when using a Simulator target- memory regions not found

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error when using a Simulator target- memory regions not found

Jump to solution
1,200 Views
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
 
Labels (1)
Tags (1)
0 Kudos
1 Solution
527 Views
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

View solution in original post

0 Kudos
1 Reply
528 Views
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 Kudos