From c7330e07a4701a64fd0624f0dfd017f83fa8eb44 Mon Sep 17 00:00:00 2001 From: Eugene Krashtan Date: Thu, 28 Mar 2019 16:21:51 +0200 Subject: stm32f0: Various fixes according to comment: (#1453) * Copyright in log.c * GPIO check completely removed * generic/timer_irq added * Change in doc section Signed-off-by: Eugene Krashtan --- docs/stm32f0_CAN.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'docs/stm32f0_CAN.md') diff --git a/docs/stm32f0_CAN.md b/docs/stm32f0_CAN.md index b0e4d96e..8ee9838c 100644 --- a/docs/stm32f0_CAN.md +++ b/docs/stm32f0_CAN.md @@ -7,6 +7,8 @@ Required components #### MCP2515 module ![MCP2515](img/mcp2515.jpg) +or this +![CAN/RS485 hat](img/canhat.jpg) #### St-link dongle @@ -17,7 +19,7 @@ Adding CAN bus to Raspberry Pi ============================== (Based on Quick Guide https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=141052) -First of all, it’s necessary to modify the CAN-module from ebay, because it has +First of all, (only if you have small CAN module) it’s necessary to modify the CAN-module from ebay, because it has only one VCC pin, but the MCP2515 needs to be powered from 3V3 and the TJA1050 CAN-transceiver needs to be powered from 5V. Powering both chips from 5V would work, but then a level-shifter for the SPI would be needed. The Pi's GPIO pins @@ -135,5 +137,6 @@ Now "make flash" command can upload HEX into connected board Pins allocation =============== -Configurations with CAN and Serial port uses different pins, and firmware contains only -actual pins initialization. +Configurations with CAN and Serial port uses different pins, and during enumeration +process firmware reports all possible pin names. But actually you can use only +existing pins, not involved in communication. Wrong pins will generate shutdown. -- cgit v1.2.3-70-g09d2