BUS error while programming S32K344 using Lauterbach debugger utrace in RAM section.

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

BUS error while programming S32K344 using Lauterbach debugger utrace in RAM section.

跳至解决方案
1,735 次查看
snehalb
NXP Employee
NXP Employee

Hello, 

I am trying to run program in RAM section . I build simple sieve code using S32 design studio with build setting as Debug_RAM. when I debug using PEmicro debugger it works fine , there are no errors. but If I use same elf and program it using Lauterbach script  "s32k344cvd-q257_sieve_sram.cmm" it throws bus error "bus error at EST:0x2043000--0x204310CF". 

note: with example elf file provided by Lauterbach, script "s32k344cvd-q257_sieve_sram.cmm" works perfectly fine.

What setting I am missing in S32_studio ? Are any changes need to do in linker manually?

S32K344-WB 

 

Thanks in advance!!

0 项奖励
回复
1 解答
1,680 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

The script 'init_sram.cmm' initialized address range 0x20400000-0x20427FFF i.e. 160kB i.e. only half of SRAM memory of S32K344.init_sram.cmm

That's the reason probably

在原帖中查看解决方案

4 回复数
1,649 次查看
snehalb
NXP Employee
NXP Employee

Hi, @davidtosenovjan 

Initializing whole RAM in init_ram.cmm script resolved my issue. 

Thank you so much.

0 项奖励
回复
1,699 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

This is rather question to Lauterbach. Could you share mentioned script?

0 项奖励
回复
1,686 次查看
snehalb
NXP Employee
NXP Employee

Hi,

attached Lauterbach scripts I am using.

0 项奖励
回复
1,681 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

The script 'init_sram.cmm' initialized address range 0x20400000-0x20427FFF i.e. 160kB i.e. only half of SRAM memory of S32K344.init_sram.cmm

That's the reason probably