2017-05-09 4:05 AM
Hi,
I'm not really an expert in CAN protocol communication but I know minimum about it. I read some forums which talk about transceiver and controller, which are necessary to communicate into CAN protocol.
So I take a MCP 2551 transceiver made by Microchip; but for the controller part, I don't even know if the microcontroller STM32 has an internal controller or not.My question is the following one:
If the microcontroller STM32 has an internal controller how does it work. And if it's not, what can I buy for it?Thanks answer to my questions.
Nicolas.
2017-05-09 6:04 AM
That's what Data Sheets are for
Table 2 covers the peripheral counts in the different models.
The Reference Manual describes the peripheral, and the Standard Peripheral Library has examples of using it, as does the HAL/Cube. Look at the EVAL series board schematics to see how CAN is wired up.
2017-05-09 7:13 AM
Thank you so much
2017-05-11 1:01 AM
There is a free application called 'CubeMX' you can download from ST, which helps you to select the proper MCU.
http://www.st.com/en/development-tools/stm32cubemx.html
You can tick 'CAN' checkbox and MX filters out STM32's not having CAN controller.
2017-05-11 2:12 AM
Thank you for your help,
To begin, I want to use CAN just for communicate between two STM32F103RB microcontrolers one send a message that the other one have to receive.After that I will implement a cylinder which I will command with orders from one of those microcontrolers.2017-05-11 3:38 AM
Thank you Tamas,
I've download it and begin to program but I want to know if the J1939 protocol is compatible with the CAN libraries.2017-05-11 3:58 AM
I don't know too much on this subject, but J1939 seems a huge collection of standards:
http://store.sae.org/j1939/contents/
Physical layer conformity depends on CAN driver IC you choose, and higher levels mostly depend on your code running on STM32.
I assume the CAN core logic within STM32 is compatible. So the answer to your question is probably yes... but at most it depends on your work.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.