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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,579 次查看
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?

标签 (1)
1 解答
1,394 次查看
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

在原帖中查看解决方案

3 回复数
1,395 次查看
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 项奖励
回复
1,395 次查看
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

1,394 次查看
seandonohue
Contributor II

Hi Stanislav,

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

0 项奖励
回复