cancel
Showing results for 
Search instead for 
Did you mean: 

Potentially Enabling Can tx/rx

Br0keStudnet
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions

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:

SofLit_0-1727368149300.png

 


@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.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
SofLit
ST Employee

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.

SofLit_0-1727365440761.png

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:

SofLit_1-1727366014796.png

Hope I answered your question

 

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

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.

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:

SofLit_0-1727368149300.png

 


@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.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.