CANopenNode / CanOpenSTM32

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

connectivity issue with Nucleo-F103RB #52

Closed Jan-Jelle closed 7 months ago

Jan-Jelle commented 7 months ago

Hi, I am trying to connect a Nucleo-F103RB and can't seem to get the node running. the system is setup according to these steps: https://github.com/CANopenNode/CanOpenSTM32#when-usingporting-nucleo-examples-do-not-forget-to-

the status LED's are connected, and the green light typically is blinking. when I don't have a CAN bus running, the red light is blinking. opening CANopen magic lite and pressing 'Scan Network' seems to push the node to 'pre-operational' (green LED is blinking, frequency ca 2.5Hz) but it is not detected on the network as a node in bootup mode.

are there particular steps i can double check or do in addition with the F103RB? or is there a specific example I could reference to for the CubeMX setup? CAN config: CAN network 1 image

many thanks for any help!

Jan-Jelle commented 7 months ago

I was under the impression that the STM32 has internal CAN transceivers. just learned that this is only the controller, the transceiver is the external part... I have purchased some tranceivers for further testing and will keep the results posted...

MaJerle commented 7 months ago

You absolutely need an external transceiver.

Jan-Jelle commented 7 months ago

yes, apologies for this wrong assumption. just new to STM32, I have purchased a few different types for testing and will revert back here with results. thanks!

Jan-Jelle commented 7 months ago

added MCP2562 to the lines with standby connected to grnd (10K pull-down). system fired up directly, connection with PLC established and changed the EDS file, loaded in the PLC and reading/writing the PDO's now. perfect! I do have a question regarding the COB ID's where the node ID needs to be added, but i will open a different topic for that.

MaJerle commented 7 months ago

Well done, glad it works!

MaJerle commented 7 months ago

For future readers, here is the ticket for COB ID: https://github.com/CANopenNode/CanOpenSTM32/issues/53