s32K142W bootloader download app and not work

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

s32K142W bootloader download app and not work

跳至解决方案
823 次查看
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 解答
749 次查看
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 回复数
750 次查看
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 项奖励
回复
771 次查看
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 项奖励
回复
803 次查看
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 项奖励
回复