How can I use CAN example in TC277TFT?

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

cross mob
User19005
Level 1
Level 1
Hello, I'm trying to use CAN by using iLLD.

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

------------------------------------

please ignore this question. problem is addressed
0 Likes
2 Replies
teoBits
Employee
Employee
5 sign-ins 100 replies posted 50 replies posted
Hello syjung,

to port the example, first verify that your device supports the module you want to use (in this case you should be ok). Then, you can create a new project for the TC27X device or for the KIT_AURIX_TC277_TFT board and copy-paste the GitHub example's files inside (MULTICAN_1.c/.h), together with the needed instructions on the Cpu0_Main files. This ensures that in the new project you have everything correctly configured for your device (all the iLLDs, the linker files, etc.) .
After that, check if in your board/device the pinouts are different and modify the example accordingly.

Best Regards,
teoBits
0 Likes
manlveralmex
Level 1
Level 1
First reply posted Welcome!

To incorporate the CAN (Controller Area Network) example in TC277TFT, follow these steps to highlight its functionality and spot its key features:

  1. Initialization: Begin by initializing the CAN module on the TC277TFT microcontroller. This involves configuring the necessary registers and settings to enable communication over the CAN network.

  2. Configuration: Define the specific parameters for your CAN communication, such as bit rate, message format, and acceptance filters. This step ensures that the TC277TFT is aligned with the requirements of the CAN network it intends to communicate with.

  3. Sending Messages: Implement code to send messages over the CAN bus. This may involve creating a message object, populating it with data, and initiating the transmission process. spot the relevant functions and commands within the example code that facilitate message transmission.

  4. Receiving Messages: Set up the TC277TFT to receive CAN messages. Decode incoming messages and extract relevant information. Spot the sections of the example code that handle the reception and processing of CAN messages.

  5. Error Handling: Integrate error-handling mechanisms to ensure robust communication. Spot the error-checking features within the CAN example, such as error counters and interrupt handling, to enhance the reliability of the system.

0 Likes