flashing two elf files problem

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

flashing two elf files problem

ソリューションへジャンプ
2,763件の閲覧回数
weipengert
Contributor I

Hi,

when  i  debug S32K146,i have  a problem in flashing  process:

i have two elf :bootloader.elf  &App.elf 

when i flashing  either  elf , i could erase and flash code normally and  software could run immedietely。

but  when i flashing both elf files at the same time , S32D could not excute flash process and popup diag: runtimer 216 at ****** , and S32D tips me that could not access memory at address 0x2497c that  is the "main"  function address + 4bytes.

the diag as show below.

1.png

2.png3.png

i try everything i can do ,but it could not work.

could you do me a favor?thanks very much.

my S32D  version is S32 Design Studio for ARM Version 2.2(Updated latest version).

0 件の賞賛
返信
1 解決策
2,668件の閲覧回数
stanish
NXP Employee
NXP Employee

Hi,

First of all please make sure that bootloader and application do not overlap in the flash memory.

e.g. compare ld files or compare generated map files or srecord where you can easily extract the memory adresses.

If this is the case please adjust the linker command file (.ld) to avoid flash memory overlap.

Stan

元の投稿で解決策を見る

2 返答(返信)
2,669件の閲覧回数
stanish
NXP Employee
NXP Employee

Hi,

First of all please make sure that bootloader and application do not overlap in the flash memory.

e.g. compare ld files or compare generated map files or srecord where you can easily extract the memory adresses.

If this is the case please adjust the linker command file (.ld) to avoid flash memory overlap.

Stan

2,668件の閲覧回数
weipengert
Contributor I

Hi:

   Sliva,as you said ,the flash areas mistake cause the problem.

    in the link files ,i tried to erase and flash data into undefined  region.

    when i cancel the operation ,it could set up correctly.

   thanks a lot.

0 件の賞賛
返信