Trying to run in RAM, but nothing is loaded into RAM

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

Trying to run in RAM, but nothing is loaded into RAM

Jump to solution
931 Views
seandonohue
Contributor II

Hi, I'm trying to figure out why when I attempt to run a program from RAM, everything in RAM is all 1's and nothing seems to be getting loaded. I am using CW10.5, the MPC5675KEVB473 eval board, and a P&E Micro USB Multilink debugger. I can run from RAM in CW Classic, so I think there may be something wrong with the .tcl debugger script in CW10.5. Does anyone else have this problem or have a fix for it?

Labels (1)
1 Solution
746 Views
stanish
NXP Employee
NXP Employee

Hello Sean,

First of all please make sure your MCU and project are both in LSM mode.

If the modes are the same can you possibly try to add this line into the .tcl script:

....

# env setup

envsetup

puts "Original memory access type:"

cmdwin::mcu::gdi nexus_rwa

puts "Memory access set to normal load/store"

cmdwin::mcu::gdi nexus_rwa 0

puts "New memory access type verification:"

cmdwin::mcu::gdi nexus_rwa

# main entry

mpc567xK_init

if it does not help can you  please sen us the log from the console View?

Thanks!

Stan

View solution in original post

3 Replies
747 Views
seandonohue
Contributor II

A little more information:

- Script prints out the message "Exception occurred during SRAM initialization." This occurs in init_ram() when {[reg ${GPR_GROUP}PC -np] != [expr $pstart + 0x10]}. I'm trying to figure out the syntax for printing the value of the PC and pstart at this point.

- Running in LSM

0 Kudos
747 Views
stanish
NXP Employee
NXP Employee

Hello Sean,

First of all please make sure your MCU and project are both in LSM mode.

If the modes are the same can you possibly try to add this line into the .tcl script:

....

# env setup

envsetup

puts "Original memory access type:"

cmdwin::mcu::gdi nexus_rwa

puts "Memory access set to normal load/store"

cmdwin::mcu::gdi nexus_rwa 0

puts "New memory access type verification:"

cmdwin::mcu::gdi nexus_rwa

# main entry

mpc567xK_init

if it does not help can you  please sen us the log from the console View?

Thanks!

Stan

746 Views
seandonohue
Contributor II

Hi Stanislav,

Sorry for the late response and thank you for the suggestion, this works!

0 Kudos