s32K142W bootloader download app and not work

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

s32K142W bootloader download app and not work

Jump to solution
900 Views
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 Kudos
Reply
1 Solution
826 Views
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

View solution in original post

0 Kudos
Reply
3 Replies
827 Views
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 Kudos
Reply
848 Views
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?

 

Tags (1)
0 Kudos
Reply
880 Views
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 Kudos
Reply