whether a app+bootloader project could be created based on SDK?

cancel
Showing results for 
Search instead for 
Did you mean: 

whether a app+bootloader project could be created based on SDK?

229 Views
Contributor II

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?

Labels (1)
Tags (1)
0 Kudos
3 Replies

20 Views
NXP TechSupport
NXP TechSupport

Hi,

in the bootloader_S32K, there's file rchw.c which contains configuration constants:

pastedImage_1.png

Have you added this to your SDK project?

Regards,

Lukas

0 Kudos

20 Views
Contributor II

Dear Lukas,

   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

pastedImage_1.png

     but still can not run after loaded into falsh by Rappid.

   Please give me some suggestion. Thanks.

 

0 Kudos

20 Views
NXP TechSupport
NXP TechSupport

Hi Felix,

check if your srecord contains correct data needed for rappid bootloader. For comparison, here is srecord from original bootloader_S32K project:

pastedImage_1.png

It looks like this is not correct in your project.

Regards,

Lukas