This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new b1dc219  stm32f103-minimum: Update README.txt to use MCP2515 module
b1dc219 is described below

commit b1dc2199be5fbe20e60438acdb997bbdf8e16a44
Author: Alan C. Assis <acas...@gmail.com>
AuthorDate: Sun Feb 28 12:33:11 2021 -0300

    stm32f103-minimum: Update README.txt to use MCP2515 module
---
 boards/arm/stm32/stm32f103-minimum/README.txt | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/boards/arm/stm32/stm32f103-minimum/README.txt 
b/boards/arm/stm32/stm32f103-minimum/README.txt
index 0c0a031..a8404fd 100644
--- a/boards/arm/stm32/stm32f103-minimum/README.txt
+++ b/boards/arm/stm32/stm32f103-minimum/README.txt
@@ -536,6 +536,32 @@ USB Console support:
   and it will create a /dev/ttyACM0 device in the Linux. Use minicom with this
   device to get access to NuttX NSH console (press Enter three times to start)
 
+MCP2515 External Module
+=======================
+
+  You can use an external MCP2515 (tested with NiRen MCP2515_CAN module) to
+  get CAN Bus working on STM32F103C8 chip (remember the internal CAN cannot
+  work with USB at same time because they share the SRAM buffer).
+
+  You can connect the MCP2515 module in the STM32F103 Minimum board this way:
+  connect PA5 (SPI1 CLK) to SCK; PA7 (SPI1 MOSI) to SI; PA6 (SPI MISO) to SO;
+  PA4 to CS; B0 to INT. Also connect 5V to VCC and GND to GND.
+
+  Note: Although MCP2515 can work with 2.7V-5.5V it is more stable when using
+  it on BluePill board on 5V.
+
+  Testing: you will need at least 2 boards each one with a MCP2515 module
+  connected to it. Connect CAN High from the first module to the CAN High of
+  the second module, and the CAN Low from the first module to the CAN Low of
+  the second module.
+
+  You need to modify the "CAN example" application on menuconfig and create
+  two firmware versions: the first firmware will be Read-only and the second
+  one Write-only. Flash the first firmware in the first board and the second
+  firmware in the second board. Now you can start the both boards, run the
+  "can" command in the Write-only board and then run the "can" command in the
+  Read-only board. You should see the data coming.
+
 STM32F103 Minimum - specific Configuration Options
 ==================================================
 

Reply via email to