CANopenNode / CanOpenSTM32

CANopenNode on STM32 microcontrollers.
Other
275 stars 110 forks source link

Adding second PDO breaks node #28

Closed mesink closed 1 year ago

mesink commented 1 year ago

Hey, I'm following your YouTube example to send a counter using a TPDO and it's working as expected. I'm now trying to add a second PDO to send the counter as well, but as soon as I add it, things break (no bootup message sent, neither PDO sends, and the counter parameter stops incrementing) . If I delete either TPDO, the application and TPDO works as expected. I've tried reducing the transmit frequency and increasing the inhibit but neither helped.

Any obvious things to check or suggestions on how to debug?

image

image

image

mesink commented 1 year ago

Just wanted to give an update that I've resolved the issue. I created a copy of the OD.c and OD.h files and moved them out of the CanOpenSTM32 folder, however, the header was still being discovered. This resulted in a mismatched header and source whenever I added a new PDO.