Setting Up CAN reader - STM32 Nucleo board
Posted: Sat Mar 09, 2024 2:45 pm
After many moocs on CAN protocol setting up, and reading up the well documented Wiki regarding setting up CAN reader with Arduino-Due, I have to ask if there are any solutions to transport the project to a STM32 board.
I downloaded Collin80 Github code, GV-RET library, SavvyCAN
I have a Nucleo board, which seems to not be compatible with available STM CAN library examples (too old?).
So first, I thought I would simply compile in Arduino Due, stipulating I have a STM board - the file would not compile with error messages. Many Utube videos later, I abandoned this method.
I have read that most STM microcontrollers are identicle, so I copied a few CAN loopback examples from a library that was the closest to my board.
After a few attempts, I managed to download and create the project, but error messages have occured when debuggung, that I don't know how to decode.
After 20 Moocs on CAN protocole coding, I continued scrolling around and around to find where I was going wrong with no success.
I have not found a setup using a STM board running Arduino-Due code for the setup.
I know there are solutions now that are plug and play, however I was hoping to stay with the STM setup and understand the process for reading CAN.
I have 2 SN65HVD230 devices connected in a loop via CAN H and CAN L
I have connected them in parralel to TX and RX outputs from my Nucleo Board, along with 3.3v and ground terminals.
I have configured the Pins for correct TX and RX outputs in STMCube (I think)
I,ve read up on baud rates, quanta times, etc, but this is way above my pay-grade.
I thought it would be much simpler and any pointers would be appreciated.
My aim was to help retreive CAN data for reverse engineer gurus, along with setting up a VAG charger eventually....
I downloaded Collin80 Github code, GV-RET library, SavvyCAN
I have a Nucleo board, which seems to not be compatible with available STM CAN library examples (too old?).
So first, I thought I would simply compile in Arduino Due, stipulating I have a STM board - the file would not compile with error messages. Many Utube videos later, I abandoned this method.
I have read that most STM microcontrollers are identicle, so I copied a few CAN loopback examples from a library that was the closest to my board.
After a few attempts, I managed to download and create the project, but error messages have occured when debuggung, that I don't know how to decode.
After 20 Moocs on CAN protocole coding, I continued scrolling around and around to find where I was going wrong with no success.
I have not found a setup using a STM board running Arduino-Due code for the setup.
I know there are solutions now that are plug and play, however I was hoping to stay with the STM setup and understand the process for reading CAN.
I have 2 SN65HVD230 devices connected in a loop via CAN H and CAN L
I have connected them in parralel to TX and RX outputs from my Nucleo Board, along with 3.3v and ground terminals.
I have configured the Pins for correct TX and RX outputs in STMCube (I think)
I,ve read up on baud rates, quanta times, etc, but this is way above my pay-grade.
I thought it would be much simpler and any pointers would be appreciated.
My aim was to help retreive CAN data for reverse engineer gurus, along with setting up a VAG charger eventually....