Hello, Constantin Razvan Chivu
Solved! Go to Solution.
Hi youngkugpark,
I tried to run your models and indeed the PTA10 LED on the MPC5748G board is not blinking and the CAN communication is not working. The problem is that the FlexCAN ISR is initialized before FlexCAN module. The fix is to set the priority of the FCAN_Config block to 1. This way the code is generated for FCAN_Config block before the FCAN_ISR.
Right click on the FCAN_Config block, select Properties, and set the Priority field to 1.
Regards,
Paul
Hi youngkugpark,
I tried to run your models and indeed the PTA10 LED on the MPC5748G board is not blinking and the CAN communication is not working. The problem is that the FlexCAN ISR is initialized before FlexCAN module. The fix is to set the priority of the FCAN_Config block to 1. This way the code is generated for FCAN_Config block before the FCAN_ISR.
Right click on the FCAN_Config block, select Properties, and set the Priority field to 1.
Regards,
Paul
Hello, Paul Blase.
Hi youngkugpark,
It is our fault that we didn't include this priority check.
We will update the FlexCAN consistency check in the next cumulative patch or release.
Hello youngkugpark,
Our responses are delayed due to the Christian Easter Holiday. I hope you understand.
However, how the bootloader works is not being changed from one release to another, so let's isolate if the problem is related to the CAN or Bootloader.
This installation seemed to work normally, but problems reoccurred in FlexCAN communication.
1. When you say installation, are you referring to flashing the bootloader?
2. How do you download the generated code on the board, via UART communication?
3. Try flashing over the bootloader a simple GPIO example and see if the code works as expected or not.
4. If the GPIO example is not working, try flashing the generated elf file (GPIO or CAN example as well) directly using the S32DS bypassing the bootloader. This way, eliminating the bootloader we can see if the issue is related to the CAN or bootloader.
Hope this helps,
Marius
Hi, Andrei