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,749件の閲覧回数
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,694件の閲覧回数
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,663件の閲覧回数
snehalb
NXP Employee
NXP Employee

Hi, @davidtosenovjan 

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

Thank you so much.

0 件の賞賛
返信
1,713件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信
1,700件の閲覧回数
snehalb
NXP Employee
NXP Employee

Hi,

attached Lauterbach scripts I am using.

0 件の賞賛
返信
1,695件の閲覧回数
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