User Tools

Site Tools


Sidebar



stm32

STM32 / Nucleo

steps I took to get stm32nucleo mb1136 C-03 running in Arduion IDE on OSX 10.10 Yosemite
  • no soldering/desoldering needed in my case.
  • install Arduino 1.6.5 (don't use 1.6.6 or 1.6.7 because of errors)
  • tools → board → board manager… → install 'Arduino Due'
  • download Arduino_STM32
  • unpack to ~/Documents/Arduino/hardware/Arduino_STM32
  • Install libusb from http://rudix.org/packages/libusb.html (in case of upload errors)
  • restart Arduino IDE
  • select tools → board → STM Nucleo F103RB (STLink)
  • select tools → port → usbserial or usbmodem1234
  • load Blink example
  • upload Blink example
  • to communicate with Serial Monitor in the Arduino IDE I had to use Serial1 (instead of just Serial). (more info)
pins

resources
read the docs
    • “Desolder the 0-Ohm-resistors on SB55 and SB54 (bottom right) to cut the trace. Solder a little bridge on: SB16(MCO) (top left) and SB50 (bottom middle)”
dyld: Library not loaded: /usr/local/lib/libusb-1.0.0.dylib

“I got past the libusb issue with an OSX package here: http://rudix.org/packages/libusb.html

SPI_2

it is possible to use 2 SPI ports:

  Using the first SPI port (SPI_1)
  SS    <-->  PA4 <-->  BOARD_SPI1_NSS_PIN
  SCK   <-->  PA5 <-->  BOARD_SPI1_SCK_PIN
  MISO  <-->  PA6 <-->  BOARD_SPI1_MISO_PIN
  MOSI  <-->  PA7 <-->  BOARD_SPI1_MOSI_PIN
  Using the second SPI port (SPI_2)
  SS    <-->  PB12 <-->  BOARD_SPI2_NSS_PIN
  SCK   <-->  PB13 <-->  BOARD_SPI2_SCK_PIN
  MISO  <-->  PB14 <-->  BOARD_SPI2_MISO_PIN
  MOSI  <-->  PB15 <-->  BOARD_SPI2_MOSI_PIN
  
stm32.txt · Last modified: 2015/12/27 19:57 by rick