Flash code using Serial Communication

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

Flash code using Serial Communication

1,812 Views
srikar_26
Contributor II

Hello,

I am using NXP S32K144. I have designed a Simulink Model and want to flash the model using serial communication. What all changes have to be done to flash the code?

Thank you

0 Kudos
Reply
4 Replies

1,805 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @srikar_26 

In order to download the executable on the board via Serial connection, you have to first flash the bootloader on the board and then specify the Serial option in your model. There are the main steps:

1. Open the S32DS for Arm and flash the bootloader rbf file. You can find the rbf file for the S32K144 in the Toolbox installation location tools, BootLoader, RBF_Files.

mariuslucianand_0-1641891996721.png

2. Open the main config block and under Target Connection, select Serial option as Download interface, check the Boot Assist option ( This will ask you to reset the board while the executable is ready to pe deployed on target) and select the right COM port associated with your baord.

mariuslucianand_1-1641892214021.png

 

In our toolbox, there is an example called flash_bam_download_s32k144.mdl which you can test first.

Hope this helps,

Marius

 

679 Views
Vasappanavara
Contributor II

Thanks a lot for outlining the steps very clearly Marius for flashing code from UART Serial directly from Matlab Simulink IDE in the PC to the ECU with the NXP MCU 

Can you detail similar steps for flashing code directly from Matlab Simulink IDE in the PC over CAN  also please  if it is possible ? 

 

 Going to use a Kavaser CAN2USB HW to connect the PC & Custom NXP board based on S32k144 

0 Kudos
Reply

1,582 Views
TOM_ScuderiaMensaFSG
Contributor I

hi @mariuslucianand 

what kind of hardware is required or recommended for serial communication with the chip? 

Can a SEGGER J-Links do this job? 

0 Kudos
Reply

1,744 Views
srikar_26
Contributor II

Hi @mariuslucianand ,

Thank you for the reply.

I would like to flash the code on a pcb designed by us with NXP S32K144 microcontroller. Is there any specific Serial communication channel/pins we should use?

Thanks.

0 Kudos
Reply