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:
I used java interface Serial_Bootloader_Interface to download app file, and it looks no problem.
But, when all of this done, the app looks not run, the serial does not data output.
I need you help.
thanks.
解決済! 解決策の投稿を見る。
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.
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.
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?