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
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.
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.
In our toolbox, there is an example called flash_bam_download_s32k144.mdl which you can test first.
Hope this helps,
Marius
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
what kind of hardware is required or recommended for serial communication with the chip?
Can a SEGGER J-Links do this job?
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.