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?
Solved! Go to Solution.
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
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
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
Hi Stanislav,
Sorry for the late response and thank you for the suggestion, this works!