2024-09-26 07:45 AM - edited 2024-09-26 07:48 AM
Hi there,
I was looking to see if there was any knowledge on getting the CAN Bus to configured on this particular discovery board (B-L475E-IOT01A).
I noticed that in the STM32CUBE Ide you can configure the pins D14/D15 (PB8/PB9), which are normally used for I2C, for Can Tx/Rx?
I would then be placing a shield (Click Shield FRDM-K64F) and use one of the Bus' to receive data through an ATA6563 Mikro BUS from an ECU Simulator (OZEN Multiprotocol).
I can send on anything if needed.
Thanks
Solved! Go to Solution.
2024-09-26 09:33 AM - edited 2024-09-26 09:35 AM
Hello,
@Br0keStudnet wrote:
I'm not sure where on the board this schematic pointing to.
refer to the boards schematics:
https://www.st.com/resource/en/schematic_pack/b-l475e-iot01ax_sch.zip
also to the user manual of the board: need to connect a transceiver to the connector CN1 / pins 10 and 11:
@Br0keStudnet wrote:
Would I still need to solder on a crystal?
It's recommended, otherwise you can face issues with CAN communication in Normal mode. Please read this article.
@Br0keStudnet wrote:
Hello,
If so, is there another board you could recommend with CAN tx/rx available as well as a wifi module.
Honestly, I don't know.
Hope I answered your questions.
2024-09-26 08:52 AM - edited 2024-09-26 08:53 AM
Hello,
It's possible to use CAN on this board over PB8/PB9 pins.
You need just to reset the pins for I2C function and activate CAN1.
Attached an ioc file where CAN1 is enabled.
But becarefull: you need to use HSE with an external cocurate clock source for example a crystal . Internal oscillators are not recommended for CAN communication in Normal mode.
According to the schematics, the 8Mhz crystal is not fitted, so you need to solder one:
Hope I answered your question
2024-09-26 09:24 AM - edited 2024-09-26 09:31 AM
Hello,
Thank you for the detailed answer. I'm not sure where on the board this schematic pointing to. As well as this it is, unfortunately, school property. There are another set of pins (PD0/PD1) in the PMOD external connecter block that can be configured for CAN tx/rx it seems. Would I still need to solder on a crystal?
If so, is there another board you could recommend with CAN tx/rx available as well as a wifi module.
Thank you again, it is appreciated.
2024-09-26 09:33 AM - edited 2024-09-26 09:35 AM
Hello,
@Br0keStudnet wrote:
I'm not sure where on the board this schematic pointing to.
refer to the boards schematics:
https://www.st.com/resource/en/schematic_pack/b-l475e-iot01ax_sch.zip
also to the user manual of the board: need to connect a transceiver to the connector CN1 / pins 10 and 11:
@Br0keStudnet wrote:
Would I still need to solder on a crystal?
It's recommended, otherwise you can face issues with CAN communication in Normal mode. Please read this article.
@Br0keStudnet wrote:
Hello,
If so, is there another board you could recommend with CAN tx/rx available as well as a wifi module.
Honestly, I don't know.
Hope I answered your questions.