1966874_en-US

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

1966874_en-US

1966874_en-US

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

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!!

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

Hi, @davidtosenovjan 

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

Thank you so much.

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

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

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

Hi,

attached Lauterbach scripts I am using.

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

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

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 08:25 PM
Updated by: