Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to transplant bootloader based on CAN to KEAZ series

Shulou Source: shulou.com Published: 2022-06-01 08:23:44 11月14日 Update

This article shows you how to transplant CAN-based bootloader on KEAZ series. The content is concise and easy to understand. It will definitely make you shine. I hope you can gain something from the detailed introduction of this article.

In the actual engineering and product development, we need to update the product program, this time we need the product to have bootloader boot program function, and the commonly used interfaces in embedded systems are based on UART,CAN,IIC,SPI, Ethernet, etc. Today we take a look at the use of a wide range of CAN-based bootloader on NXP automotive controller S9KEAZ series porting.

First of all, because we use the host PC to download the program and the host computer cannot be directly connected to the CAN bus, we also need an adapter board to convert CAN communication into serial communication and access the host PC. XMODEM file transfer protocol is used between PC and adapter board.

S9KEAZ64 has the same resources and manuals as KE06, but the temperature range of the application is different. You can use KE06 SDK to quickly build the project.

Overall structure and hardware connections

Because my actual board uses an internal clock, which is different from freedom, I have to modify the clock.

FEI mode

Set the starting address of the application run according to Flash assignment

In fact, we will interrupt vector table from 0 address, relocated to 0x5000, we can use NXP official website tools will bootloader program and application synthesis, this tool supports the use of Srec file contract, we can also configure IDE to generate bin file using other supported tools and bin file.

Download the synthesized file to your own hardware board, prepare several different application bin files to test our transplanted bootloader, test the host computer using tera term, tera term is a free and open source virtual terminal, supports network port and serial port, and has many built-in protocols, set the serial port to 115200, N8,1, and then if the board enters download mode, select the downloaded file.

Wait for the download to complete, test according to the requirements of their own applications to see if they pass, the two test bin files I use will output different CAN messages and operate different relays. We can also add J1939 programs to complete the bootloader based on J1939. NXP official website also provides MCUBOOT2.0.0 download package, but currently does not support KE06 and S9KEAZ series, you need to do it yourself, and the transplant workload is relatively large, but it is a standard and mass production bootloader for users to use. Moreover, the bootloader of the supported chip has been integrated into the SDK for users to use, which is also very convenient. It would be better if it can support the whole series.

The above is how to port CAN-based bootloader to KEAZ series. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to the industry information channel.

Tags: Programs files migration support differences applications applications tests serial ports products tools content addresses actual engineering skills clocks boards patterns users Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Xiaomi Apple Microsoft MariaDB