S32K312 bootloader development in different RTD environments not works

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

S32K312 bootloader development in different RTD environments not works

671 Views
kontroller
Contributor III

I am developing the bootloader of s32k312, I plan to use the official bootloader(developed based on RTD200), my APP is developed based on RTD300.

I found that the program can not jump from boot to app, I did a simple comparative test, and built two projects(zip file) s32k312_rtd200_uart and s32k312_rtd300_uart, their function is to use the serial port to send information, respectively "s32k312_rtd200_uart_app" and "s32k312_rtd300_uart_app", I directly modified the jump code of S32K312_CAN_bootloader_RTD2d0, specifying the jump to reset_handler (the two app projects are configured as the same reset_handler by .ld file)

微信图片_20240410161847.png微信图片_20240410161840.png微信图片_20240410161927.png

it turns out:
S32K312_CAN_bootloader_RTD2d0->s32k312_rtd200_uart_app pass
S32K312_CAN_bootloader_RTD2d0->s32k312_rtd300_uart_app fail


The boot process of the chip should look different in RTD200 and RTD300 environments, how to fix this problem? Since some modules only support RTD300, such as FREERTOS, BMS_SDK, etc., it is not possible to downgrade an APP to RTD200

 

#S32K3

Tags (1)
0 Kudos
Reply
5 Replies

641 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @kontroller,

At what point does it fail? During the jump or later in the startup code of the application?

Do you see a fault exception? Can you find more information about the exception like the PC address of the fault instruction?

Here is a jump routine:

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

 

Regards,

Daniel

 

 

0 Kudos
Reply

634 Views
kontroller
Contributor III

I can't tell exactly where the error point of boot jump app is, but I did an experiment and set up 4 projects, namely boot_rtd2,boot_rtd3,app_rtd2,app_rtd3, they have the same clock configuration and memor configuration. In the boot directly use the following ways to jump

63cef5d6a621ce47de5f7ed0f7f98bb.pngd02173318701bfad64964b53e81a944.png

the result can be seen:
boot_rtd2 -> app_rtd2 ok
boot_rtd2 -> app_rtd3 nok
boot_rtd3 -> app_rtd3 ok
boot_rtd3 -> app_rtd2 ok
I enclose the project documents for your reference

0 Kudos
Reply

621 Views
kontroller
Contributor III
0 Kudos
Reply

562 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @kontroller,

We are currently not able to debug the projects due to limited capacity, unfortunately.

Also, all the examples are provided AS IS for the same reason.

But you should be able to step through the code and find the fault instruction.

 

Regards,

Daniel

0 Kudos
Reply

451 Views
JonAnder_Amante
Contributor I

Hi, 

I am using the project "S32K344_Can_bootloader_RTD200" in the microprocessor S32K344. I want to download an application with the program of bootloader. I have achieved the jump from program to application but I have different questions.

1. I want to use #define EN_DELAY_TIME but when I uncomment the command in the folder "public_in", the program has different errors. My target to use "Backdoor", that is to say, I want to check if the program has to enter to bootloader or not. I don´t know the process and the different functions that I have to use to achieve the target. I want to use the function "Boot_CheckReqBootloaderMode(void)" but when I debug the program, it never enters to the "if". Could you explain me the process and the steps to achieve the target. I add different functions that I think are important. 

2. I don´t know if I have to modificate the parameters of "static tJumpAppDelayTimeInfo gs_stJumpAPPDelayTimeInfo = {FALSE, 0u};". I have to change this structure ? You can see all structure in one of the next pictures. 

I need the reply as soon as possible since I have to send a project very soon. 

JonAnder_Amante_2-1714630915191.png

 

 

 

 

 

 

 

JonAnder_Amante_3-1714630914940.png

 

 

 

 

 

 

 

JonAnder_Amante_4-1714630914948.png

 

 

 

 

 

 

 

JonAnder_Amante_5-1714630915203.png

 

 

 

 

 

 

 

JonAnder_Amante_6-1714630914955.png

 

 

 

 

 

 

Thank you for all, 

Jon Ander Amante Jorge

0 Kudos
Reply