Run PIL through serial ports

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

Run PIL through serial ports

803 Views
liuqimin
Contributor IV

Hi:

   Now there is a S32K144 control board to do PIL test, because there is no openSDA interface on the board, so serial port is chosen as PIL download port when doing PIL setting.Since there is no corresponding example for reference, several questions are asked.
1. When choosing serial port to do PIL download port, does MCU end need to do other Settings?Like adding UART port Settings to MCU?
2. Need to install firmware download software of MCU for MATLAB to download PIL firmware through UART port?
Or manually download PIL firmware through JLINK and then run PIL simulation?
Any Suggestions?

pastedImage_1.png

  Best Regards!

   Liu qimin

0 Kudos
3 Replies

578 Views
wjandsq
Contributor IV

mcu.so have a way to ... this problem.

0 Kudos

578 Views
liuqimin
Contributor IV

Hi Paul:

  Thanks for your reply!

  According to the information you provided, after writing in the RBF file, PIL can be run.But there is a strange problem, which is that the first time it works, the second time it gets an error, what's going on?

pastedImage_1.png 

 I am curious, PC specify COM port and MCU not specify UART port PIN.How do they establish communication?

 

Best Regards!

Liu qimin

0 Kudos

578 Views
paulvlase
NXP Employee
NXP Employee

Hi liuqimin‌,

1. No, you don't need to do other settings, except the selection of the correct COM port in config block and use the UART1 interface, PC6 pin for RX, and PC7 pin for TX, on the board.

2. To download the application to the board using the UART interface, you need to flash the NXP_MBDToolbox_S32K1xx\tools\BootLoader\RBF_Files\S32K144_Bootloader.rbf file over JTAG interface using the S32 Design Studio for ARM.

The procedure of flashing the boot loader algorithm is described in the Motor Control Class: Lecture 3 - Input Commands  first video starting with 2.04 minute.

0 Kudos