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

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

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

Jump to solution
1,739 Views
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 Kudos
Reply
1 Solution
1,684 Views
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

View solution in original post

4 Replies
1,653 Views
snehalb
NXP Employee
NXP Employee

Hi, @davidtosenovjan 

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

Thank you so much.

0 Kudos
Reply
1,703 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
1,690 Views
snehalb
NXP Employee
NXP Employee

Hi,

attached Lauterbach scripts I am using.

0 Kudos
Reply
1,685 Views
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