Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Translation_Bot
Community Manager
Community Manager
Community Manager

We are doing a job of writing programs into the ECU. The chip in the ECU is the Infineon TC233 series. Currently, the plan is to write the program to the chip through the CAN bus. I learned from the data searched online that it is necessary to enter the chip's Bootloder mode before it can be written, and it also needs to be done through the UDS protocol, but we have not found any relevant information on the Internet. Therefore, I would like to ask for help from all friends in the forum to help provide some information, so we can do our own research. If the official tutorial were better, we could study it. Thank you all!

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/%E5%9F%BA%E4%BA%8ECAN%E6%80%BB%E7%BA%BFUDS%E6%9C%8D%E5%8A%A1%E7%9A%84BootLoader%E7%9A%84%E5%BC%80%E5%8F%91/td-p/649199

0 Likes
2 Replies
Translation_Bot
Community Manager
Community Manager
Community Manager

https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples

For FLASH writing and CAN bus transmission, please refer to the example code above.

Regarding the UDS protocol, it can support CAN/FLEXRAY/IP/K-LIN/LIN. Specifically, the application of UDS based on the CAN bus is defined in ISO 14229-3, so you can refer to it.

dw_0-1701392198188.png

 

Additionally, you can sign up for MyICP to get more application notes and information. https://www.infineon.com/cms/en/product/promopages/MyICP-platform-for-Microcontroller/

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/%E5%9F%BA%E4%BA%8ECAN%E6%80%BB%E7%BA%BFUDS%E6%9C%8D%E5%8A%A1%E7%9A%84BootLoader%E7%9A%84%E5%BC%80%E5%8F%91/m-p/650689

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager

There are TC275 and TC297 documentation and code related to Flash writing on the official website. The documents are as follows:

https://www.infineon.com/dgdl/Infineon-AURIX_Flash_Programming_1_KIT_TC275_LK-TR-Training-v01_00-EN....

https://www.infineon.com/dgdl/Infineon-AURIX_Flash_Programming_1_KIT_TC297_TFT-Training-v01_01-EN.pd...

The code is as follows:

https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/Flash_Programming_1_KIT_TC...

https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/Flash_Programming_1_KIT_TC...

Regarding the UDS protocol, it is necessary to use the international standards ISO 15765 and ISO 14229. Among them, ISO 14229 specifies the implementation method of UDS (top layer protocol); ISO 15765 specifies the bridge between the CAN bus and UDS.

For UDS messages, you can read this article: https://www.cnblogs.com/still-smile/p/12022080.html

About ISO 15765, you can read this article: https://blog.csdn.net/qinze5857/article/details/11537066...

If the host computer only implements program writing, it can be designed by itself according to the CAN box.

The MCU side may require an AUTOSAR architecture, which is more complicated to implement.

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/%E5%9F%BA%E4%BA%8ECAN%E6%80%BB%E7%BA%BFUDS%E6%9C%8D%E5%8A%A1%E7%9A%84BootLoader%E7%9A%84%E5%BC%80%E5%8F%91/m-p/661264

0 Likes