[S32K3] Bootloader jump to bootloader

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

[S32K3] Bootloader jump to bootloader

Jump to solution
2,953 Views
Changhawn
Contributor IV

Dear

I am developing bootloader. But I have difficult in jumping(bootloader to application),

So I am testing jump routine to bootloader from Bootloader like below.

But I got the error like picture 1.

Could you recommend some debugging point? 

Thank in advance.

 

picture 1)

Changhawn_0-1721004879421.png

 

picture 2)

Changhawn_1-1721004956515.png

 

picture 3) code

Changhawn_3-1721004992600.png

 

picture 4) loader file

Changhawn_4-1721005010147.png

 

0 Kudos
Reply
1 Solution
2,851 Views
Changhawn
Contributor IV

Share your current situation.

I confirmed that it jumps with the bootloader and application made with dummy simple code.

Currently, I am checking the jump from bootloader to application in the current project.

and will check the loader file, system.c, and startup_cm7.S files regarding application booting.

 

View solution in original post

0 Kudos
Reply
4 Replies
2,852 Views
Changhawn
Contributor IV

Share your current situation.

I confirmed that it jumps with the bootloader and application made with dummy simple code.

Currently, I am checking the jump from bootloader to application in the current project.

and will check the loader file, system.c, and startup_cm7.S files regarding application booting.

 

0 Kudos
Reply
2,902 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Changhawn,

I has been discussed a few times already.

For example here:

https://community.nxp.com/t5/S32K/S32K312-bootloader-jump-to-application-issue/td-p/1795729

You need to step through the code and check the flash values at the addresses.

 

Regards,

Daniel

 

 

0 Kudos
Reply
2,883 Views
Changhawn
Contributor IV

Dear danielmartynek.

When I try todo with your guide, still have problem like below picture 1).

picture 2) is register view before running application_reset_handler

I will check and search this problem in Community. If you give some guide, thank you very much.

 

picture 1)

Changhawn_0-1721176995582.png

 

picture 2)

Changhawn_1-1721177025420.png

 

0 Kudos
Reply
2,931 Views
Changhawn
Contributor IV

Without any controling. I can confirm jump Reset_handler() again.

But I got the Error befor main() like below picture. Still debugging the reason.

 

    jump_to_application = (*(volatile uint32_t *)0x00401004);
    jump_to_application();
 
 
Changhawn_0-1721030261641.png

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1908150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%5BS32K3%5D%20Bootloader%20jump%20to%20bootloader%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1908150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%3C%2FP%3E%3CP%3EI%20am%20developing%20bootloader.%20But%20I%20have%20difficult%20in%20jumping(bootloader%20to%20application)%2C%3C%2FP%3E%3CP%3ESo%20I%20am%20testing%20jump%20routine%20to%20bootloader%20from%20Bootloader%20like%20below.%3C%2FP%3E%3CP%3EBut%20I%20got%20the%20error%20like%20picture%201.%3C%2FP%3E%3CP%3ECould%20you%20recommend%20some%20debugging%20point%3F%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20in%20advance.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Epicture%201)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Changhawn_0-1721004879421.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Changhawn_0-1721004879421.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F288461i436E033D7EC78A01%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Changhawn_0-1721004879421.png%22%20alt%3D%22Changhawn_0-1721004879421.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Epicture%202)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Changhawn_1-1721004956515.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Changhawn_1-1721004956515.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F288462i08029405720AE55A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Changhawn_1-1721004956515.png%22%20alt%3D%22Changhawn_1-1721004956515.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Epicture%203)%20code%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Changhawn_3-1721004992600.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Changhawn_3-1721004992600.png%22%20style%3D%22width%3A%20269px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F288464iB38A268FC851BE89%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Changhawn_3-1721004992600.png%22%20alt%3D%22Changhawn_3-1721004992600.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Epicture%204)%20loader%20file%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Changhawn_4-1721005010147.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Changhawn_4-1721005010147.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F288465i6BDCA687DDE6CA8F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Changhawn_4-1721005010147.png%22%20alt%3D%22Changhawn_4-1721005010147.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1910990%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%5BS32K3%5D%20Bootloader%20jump%20to%20bootloader%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1910990%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EShare%20your%20current%20situation.%3C%2FP%3E%3CP%3EI%20confirmed%20that%20it%20jumps%20with%20the%20bootloader%20and%20application%20made%20with%20dummy%20simple%20code.%3C%2FP%3E%3CP%3ECurrently%2C%20I%20am%20checking%20the%20jump%20from%20bootloader%20to%20application%20in%20the%20current%20project.%3C%2FP%3E%3CP%3Eand%20will%20check%20the%20loader%20file%2C%20system.c%2C%20and%20startup_cm7.S%20files%20regarding%20application%20booting.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1910142%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%5BS32K3%5D%20Bootloader%20jump%20to%20bootloader%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1910142%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20danielmartynek.%3C%2FP%3E%3CP%3EWhen%20I%20try%20todo%20with%20your%20guide%2C%20still%20have%20problem%20like%20below%20picture%201).%3C%2FP%3E%3CP%3Epicture%202)%20is%20register%20view%20before%20running%20application_reset_handler%3C%2FP%3E%3CP%3EI%20will%20check%20and%20search%20this%20problem%20in%20Community.%20If%20you%20give%20some%20guide%2C%20thank%20you%20very%20much.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Epicture%201)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Changhawn_0-1721176995582.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Changhawn_0-1721176995582.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F288846iC1CEFAE29D44EBFF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Changhawn_0-1721176995582.png%22%20alt%3D%22Changhawn_0-1721176995582.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Epicture%202)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Changhawn_1-1721177025420.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Changhawn_1-1721177025420.png%22%20style%3D%22width%3A%20393px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F288847i2815AACCABFF2C50%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Changhawn_1-1721177025420.png%22%20alt%3D%22Changhawn_1-1721177025420.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1909729%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%5BS32K3%5D%20Bootloader%20jump%20to%20bootloader%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1909729%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F232520%22%20target%3D%22_blank%22%3E%40Changhawn%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EI%20has%20been%20discussed%20a%20few%20times%20already.%3C%2FP%3E%0A%3CP%3EFor%20example%20here%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K312-bootloader-jump-to-application-issue%2Ftd-p%2F1795729%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K312-bootloader-jump-to-application-issue%2Ftd-p%2F1795729%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EYou%20need%20to%20step%20through%20the%20code%20and%20check%20the%20flash%20values%20at%20the%20addresses.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1908473%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%5BS32K3%5D%20Bootloader%20jump%20to%20bootloader%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1908473%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWithout%20any%20controling.%20I%20can%20confirm%20jump%20Reset_handler()%20again.%3C%2FP%3E%3CP%3EBut%20I%20got%20the%20Error%26nbsp%3Bbefor%20main()%20like%20below%20picture.%20Still%20debugging%20the%20reason.%3C%2FP%3E%3CBR%20%2F%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20jump_to_application%20%3C%2FSPAN%3E%3CSPAN%3E%3D%3C%2FSPAN%3E%3CSPAN%3E%20(%3C%2FSPAN%3E%3CSPAN%3E*%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3CSPAN%3Evolatile%3C%2FSPAN%3E%20%3CSPAN%3Euint32_t%3C%2FSPAN%3E%20%3CSPAN%3E*%3C%2FSPAN%3E%3CSPAN%3E)%3C%2FSPAN%3E%3CSPAN%3E0x00401004%3C%2FSPAN%3E%3CSPAN%3E)%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Ejump_to_application%3C%2FSPAN%3E%3CSPAN%3E()%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Changhawn_0-1721030261641.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Changhawn_0-1721030261641.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F288519iBCA913DB5EA87471%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Changhawn_0-1721030261641.png%22%20alt%3D%22Changhawn_0-1721030261641.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E