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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,563件の閲覧回数
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,378件の閲覧回数
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,379件の閲覧回数
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,379件の閲覧回数
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,378件の閲覧回数
seandonohue
Contributor II

Hi Stanislav,

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

0 件の賞賛
返信