CAN bootloader

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

CAN bootloader

295 Views
saurabhkulkarni123
Contributor II

Hello NXP,

We are trying to flash the NXP MBDT .elf code to S32k148 via CAN but cannot flash it. We want flash code via PEAK CAN device so please suggest any procedure for that or what kind of changes are required.

0 Kudos
1 Reply

256 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @saurabhkulkarni123,

Unfortunately, the RAppID Bootloader, the bootloader used to deploy the generated code over CAN only supports the CAN analyzer from Vector, and there is no implementation for the PEAK probes. 

From MBDT for S32K1xx there is no support directly from the toolbox. In order to deploy on the S32K148 and generate code over the CAN bus there are multiple steps you need to perform.

 1. The RBF file needs to be flashed first on the board so that just after the processor boots up, the bootloader is ready to accept the new image. For more details, please have a look on this thread: https://community.nxp.com/t5/S32-Design-Studio/undefined-reference-to-START-BSS-and-others/m-p/12764...

In MBDT you could find the .rbf files in here:

mariuslucianand_0-1692181021917.png

 

 

2. In MBDT in Simulink,  the generated code needs to have the required headers, so for this you need to go to the main configuration block and, check the Download Code after Build, and select the Serial option. This will include the required headers inside the .rbf file.

mariuslucianand_1-1692175423194.png

3. In order to write the new application over can, this has to be done from the RAppID BL Tool, which could be downloaded from the NXP website. Here, the Vector CAN probe and channel need to be specified and for the S32K14x some of the settings below need to be set. Of course, the .mot file location needs to be specified. You have to press the reset button on the board, and immediately to press the Start Boot Loader inside the RAppID BL Tool. 

mariuslucianand_0-1692174496505.png

Hope this helps,

Marius

 

0 Kudos