cancel
Showing results for 
Search instead for 
Did you mean: 

can protocol demo stm32

dieter 123
Associate III
Posted on August 29, 2017 at 11:15

Hi

I need to setup a can protocol demo where I send and receive CAN 1-2 simple CAN msgs. What is the cheapest HW to buy? What isw the quickest way to go? It has to be a STM32. 

Can I use 2 STM324xG_EVAL boards?

STM324xG_EVAL costs around 300 euros. Anything cheaper?

6 REPLIES 6
AvaTar
Lead
Posted on August 29, 2017 at 12:19

Anything cheaper?

Probably not with the 'onboard' and 'cheap' requirements at once.

How about a Nucleo board, and an Arduino-compatible CAN add-on ('shield') ?

Posted on August 29, 2017 at 17:39

Hi,

Besides the canimplementation do you need anything else? (i.e., graphical interface), If dont, you can use the nucleo boards NUCLEO-F303K8

http://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-eval-tools/stm32-mcu-eval-tools/stm32-mcu-nucleo/nucleo-f303k8.html

or

NUCLEO-F103RB

http://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-eval-tools/stm32-mcu-eval-tools/stm32-mcu-nucleo/nucleo-f103rb.html

, just 11 dollars each one.

In addition , to make the CAN communication you have to buy a CAN bus chip as the SN65HVD230, I used it and works fine

http://www.uctronics.com/sn65hvd230-can-bus-transceiver-communication-module-for-arduino.html

, you have to buy one for any board that you'll use.

For me, the quickest way to go was using CubeMX and System Workbench, there are examples of how to use the peripheral and in this post you can find some useful information:

https://community.st.com/thread/40495-stm32f3xx-can-controller-area-network-halcanreceive

valentin
Senior
Posted on August 29, 2017 at 23:16

Or, if it's just for a proof of concept, you can set up CAN communication without a transceiver like shown here:

https://electronics.stackexchange.com/questions/30564/is-a-can-enabled-microcontroller-sufficient-to-drive-a-can-bus

 
Bob Boys
Senior
Posted on August 30, 2017 at 01:15

Hello

Please see

http://www.keil.com/appnotes/docs/apnt_236.asp

This contains some simple CAN examples.

You can use the free Keil MDK toolkit (up to 32K) to create a simple example.

I need to update this soon....but for now.

In the later Keil examples available in the Pack Installer, there are newer examples for various boards including CAN FD.

Bob Boys

Posted on August 30, 2017 at 02:35

There is a jumper issue with the CAN but I've had these Rx/Tx from CAN1 to CAN2

http://www.ebay.com/itm/RedDragon407-STM32F4-Cortex-M4-3-2-Ethernet-wireless-2-4G-SDIO-Serial-camera-/121087293812?hash=item1c315d7974

 
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Posted on August 30, 2017 at 02:38

 ,

 ,

CAN code and jumper info

 ,
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..