I creat "bootloader_S32K" project from the S32 DS example projects.
and .srec file produced by the project,could be loaded into flash by Rappid,
and work fine.
But when i creat a SDK based "hello_world" example project,
and modify the linker file ,to be same as " "bootloader_S32K" project
and compiled OK.
but the project can't start to work after loader to flash by Rappid.
Would some friend tell me ：
whether a app/bootloader project could be created based on SDK？
in the bootloader_S32K, there's file rchw.c which contains configuration constants:
Have you added this to your SDK project?
Thank you very much for your reply.
Yes, I'v attached the rchw.c & derivative.h into SDK project.
I also overwrite the startup.c system_s32k144.c system_s32k144.s s32k1xx_flash.ld with the file in the "bootloader_S32K"project.
but after compiled successfully, the app expectedly work normall in debug
and you can see the code is locate in 0x2000, as set by linker file
but still can not run after loaded into falsh by Rappid.
Please give me some suggestion. Thanks.
check if your srecord contains correct data needed for rappid bootloader. For comparison, here is srecord from original bootloader_S32K project:
It looks like this is not correct in your project.