Debugging with the BDM : RAM issues

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

Debugging with the BDM : RAM issues

1,923 Views
Gizzzmo
Contributor I
Hi,

First, i've a doubt about RAM address in a MC9S12E128, because it's not really clear in the datasheet. Is it from 0x0400 to 0x1FFF or from 0x2000 to 0x4000 ??

I want to load code in the RAM section of a MC9S12E128 but i am using a BDM to load my program and BDM uses RAM for him. I would know if we can configure the debugger in order to reserve a part of the RAM for personnal use (code).

Thanks.
Labels (1)
0 Kudos
1 Reply

439 Views
imajeff
Contributor III
You are likely confused because of a serial monitor preloaded in Flash for the development board.
  1. On power up and reset, the E128 itself maps RAM starting 0x2000. This includes a reset while debugging with BDM.
  2. If the serial monitor is in boot up Flash, it typically maps the RAM to be more consistent with other devices so that your programs using minimum RAM could work the same on multiple devices with different amounts.
0 Kudos