Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


Help with FDCAN configuration and interruptions

Hi,

I am working with a nucleo board H743ZI2 to use with the FDCAN port. I have configured it correctly and I can send and read messages.

Problem
The problem comes when I want to activate interruptions to read messages through interruptions. I activate the HAL_FDCAN_ActivateNotification, but when I receive a message the interruption goes to Abort Transmission, Rx Buffer new message and Message Ram Access Failure that goes into the error routine.

If I just read the port it goes without a problem.

Can you help me out with what am I missing ?

Instead of posting a lot of code, here is the link to the repository https://github.com/jdios89/TestBench_FDCAN_STM32Question

The configuration and activation can be seen in Peripherial/FDCAN library

The code is run in TestWorkbench.cpp in the Src folder.

Thank you for your help .

Hi, did you manage to solve the problem? I’m currently having the same issue.....

Yes, I did fix it.

It was a problem with the interruption of receiving messages and the priority set to the interruption. I can recall it was interfering with the real-time tasks priorities because every time I regenerated the code through MXCube it regenerated the interrupt vector and changing the priorities to something lower than the tasks and firing the error flag.

My solution was to comment out/delete the lines that set the priority of the interruption on the autogenerated code and just have that in my code, so that the priorities are set correctly.

You can now see the solution in my github (link is the same) and how that autogenerated code is also set in the object of the FDCAN library.


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs