s32K142W bootloader download app and not work

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

s32K142W bootloader download app and not work

ソリューションへジャンプ
901件の閲覧回数
346500452
Contributor III

we use s32k142w in projiect. I refrenced AN12218 doucment and transplant to s32K142w.

use environment is:s32dsV3.5.

I tested bootloader project, it can putchar in serial, and pit timeout is right.

I tested app project in no bootloader mode, it can put string in serial - just do put string in serial.

and i already chang the link file as bellow:

企业微信截图_16938131589634.png企业微信截图_16938131874514.png

 

I used java interface Serial_Bootloader_Interface to download app file, and it looks no problem.

企业微信截图_16938133073064.png

But, when all of this done, the app looks not run, the serial does not data output.

I need you help.

thanks.

0 件の賞賛
返信
1 解決策
827件の閲覧回数
346500452
Contributor III

I find in mem_man_write() function, FlashEraseSector function set size is FEATURE_FLS_DF_BLOCK_SECTOR_SIZE,

it's error, so it should replace with FEATURE_FLS_PF_BLOCK_SECTOR_SIZE.

It's error in AN12218SW bootloader, maybe MCU in AN12218SW is use D flash.

企业微信截图_1693821776174.png

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
828件の閲覧回数
346500452
Contributor III

I find in mem_man_write() function, FlashEraseSector function set size is FEATURE_FLS_DF_BLOCK_SECTOR_SIZE,

it's error, so it should replace with FEATURE_FLS_PF_BLOCK_SECTOR_SIZE.

It's error in AN12218SW bootloader, maybe MCU in AN12218SW is use D flash.

企业微信截图_1693821776174.png

0 件の賞賛
返信
849件の閲覧回数
346500452
Contributor III

I use jlink to download boot, i find when before download boot , it need erase chip, and then download boot.

After download app file with  Serial_Bootloader_Interface,and the app is run ok.

If not do erase chip and download app file next time, the app is run fail.

I can't understand. it seems flash program is success. Is there a problem with flash erase?

 

タグ(1)
0 件の賞賛
返信
881件の閲覧回数
346500452
Contributor III

I add serial output in bootloader begin and before app run.

It look like jumpToApp fail,and loop with boot in -> download app -> jump app -> boot in  -> jump app -> boot in  -> jump app ...

0 件の賞賛
返信