Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In the new revision of the controller board, we want to be able to program the Microcontrollers over CAN. 

SWD: Serial Wire Debug

It's a debug protocol.

Programming:

Programming in In the old controller board happened through the SWDIO and SWDCLK. Those are PA13 and PA14. I'm guessing there's also an NRST line that does the reset? Still have to figure that part out. Will look at the STM32 data sheet.

Key Components:

Insert excerptELEC:Controller Board: MS 12: Key ComponentsELEC:Controller Board: MS 12: Key ComponentsMS12 controller board, we got debug capability through PA13 and PA14, which give us debug capability over SWD. This is what the connector looks like:

Image Added

Page 53 Reference Manual

Embedded boot loader

The embedded boot loader is located in the System memory, programmed by ST during production. It is used to reprogram the Flash memory using one of the following serial interfaces:

  • USART on pins PA14/PA15 or PA9/PA10

  • I2C on pins PB6/PB7 (STM32F04xxx, STM32F07xxx and STM32F09xxx devices only)

  • USB DFU interface (STM32F04xxx and STM32F07xxx devices only)

What are we using? NEITHER! We use gdb to flash.

Boot Configuration:

Data sheet has this table for boot configuration:

Image Added

Our schematic grounds the BOOT0 pin. 

Image Added

This means that we're always operating on Main Flash Memory.

Section 11.2 of AN2606 Application Note:

Image Added



Insert excerpt
Controller Board: MS 12
Controller Board: MS 12

Datasheets:

View file
namemechanical_guide.pdf
height250
View file
nameprogramming_manual.pdf
height250
View file
namereference_manual.pdf
height250
View file
namestandard_peripheral_library.pdf
height250