Skip to content

nikoschalikias/STM32F103C6_CAN2

Repository files navigation

STM32F103C6_CAN2

Firmware to test the CAN-BUS operation with CANALL_V2 STM32F103C8 based boards

Project overview

Project-targets

  • Free Tool chain
  • Use no HAL libraries
  • Initialise everything directly to register level
  • Traffic to CAN-BUS only when event happens
  • No HOST, only nodes
  • canALL_V2 boards connected on CAN-BUS network

Toolchain

  • Atollic TrueSTUDIO®/STM32 Lite, Built on Eclipse, Version: 2.0.1 Lite, Build id: 20110128-1032

Functionality details

  • Send to CAN only when an input is changed
  • All Receiving boards transmit to UART, so CAN-BUS can be monitored on PC Terminal Emulator

Board

Setup

Atollic IDE


Atollic IDE was free when this project was created


Teraterm Serial Port Setup


Baud 115200, 8bit, No Parity, 1 Stop bit


Teraterm Terminal Setup


Adjust line width to 165 chars, to contail a single transaction message


Teraterm responce


One terminal line displays a CAN transaction


CAN and UART signals


At any input change:

  • change is transmitted to CAN
  • Overall STATUS of the board is transmitted to UART Osilloscope:
  • Blue Channel is CAN-BUS
  • Purple Channel is UART-TX


Custom ST-Link and UART adapter

connects:

  • ST-LINK to board
  • UART to RS232 level translator board and then to PC serial port

Custom ST-Link and UART adapter connected to ST-LINK


Custom ST-Link and UART adapter detail


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages