2025-01-09 12:33 PM
The author of this how to get CANopenNodeSTM32 working video is very good (The length of the video is 3:31:33; The part that is pertinent to this post 57:05 - 1:18:22). Unfortunately, this video targets FDCAN (but I don't have this available; my chip just supports plain CAN) and this video also targets bare metal (but I don't have this available; FreeRTOS is what I am using). I tried to follow all of the author's steps but was unable to. When I ran I got a HardFault with the CAN node never even coming online.
Executing this line is what causes the Hard fault
canopen_app_init(&canOpenNodeSTM32);
2025-01-10 01:07 AM
Hello,
Not obvious to watch a 3 hours video.
You are using STM32L452 having CAN 2.0 and in the video I can see some devices having also CAN 2.0 like F0.
I suggest you to follow the steps in the video of one of the devices having CAN2.0 and start with baremetal. Don't start with RTOS at this stage. Or contact the Youtuber.