btstack/port/stm32-f103rb-nucleo
Matthias Ringwald 49232d5c0e fix compile
2017-05-17 23:22:05 +02:00
..
.gitignore
btstack_config.h le_device_db_memory: make nr of entries configurable via MAX_NR_LE_DEVICE_DB_ENTRIES 2017-02-11 22:44:02 +01:00
libopencm3.rules.mk
libopencm3.stm32f1.mk
main.c bluetooth_company_id: use scraped defines instead of small set from bluetooth.h before 2017-03-30 22:42:18 +02:00
Makefile fix compile 2017-05-17 23:22:05 +02:00
README.md stm32-nucleo: explain setup with new BOOST-CC2564MODA BoosterPack 2016-10-23 21:54:35 +02:00
setup.jpg
spp_and_le_counter.gatt
stm32f1-nucleo.ld

STM32 F103RB Nucleo with CC256x

BTstack port for STM32 F103RB Nucleo board and CC256x Bluetooth chipset based on GNU Tools for ARM Embedded Processors and libopencm3

Requirements:

  • GNU Tools for ARM Embedded Processors: https://launchpad.net/gcc-arm-embedded
  • libopencm3 is automatically fetched and build from its git repository by make
  • openocd 0.8.0 (or higher) is used to upload firmware

Components:

Configuration:

  • Sys tick 250 ms
  • LED on PA5, on when MCU in Run mode and off while in Sleep mode
  • Debug UART: USART2 - 9600/8/N/1, TX on PA2
  • Bluetooth: USART3 with hardware flowcontrol RTS. IRQ on CTS Rising. TX PB10, RX PB11, CTS PB13 (in), RTS PB14 (out), N_SHUTDOWN PB15

Setup with CC2564 BoosterPack (BOOST-CC2564MODA):

  • Connect STM32 Nucleo Board to EM Wireless Board (see BoosterPack pinout)
    • GND: CN10-9 - 20 (J2)
    • VCC: CN7 -16 - 1 (J1)
    • RX3: CN10-18 - 3 (J1)
    • TX3: CN10-25 - 4 (J1)
    • CTS3: CN10-30 - 36 (J4)
    • RTS3: CN10-28 - 37 (J4)
    • N_SHUTDOWN: CN10-26 - 19 (J2)

Setup with EM Wireless BoosterPack + CC256x Evaluation Module:

  • Solder 32.768 kHz quarz oscillator to EM Adapter Booster Pack as explained in 4.7 of the EM Wireless Booster Pack User Guide. If you don't have an oscillator of that size, you might solder one upside done (turtle-on-back style) to the unused upper right pad and wire GCC, VCC, and clock with thin wires.
  • Connect STM32 Nucleo Board to EM Wireless Board (see BoosterPack pinout)
    • GND: CN10-9 - 20 (LP2)
    • VCC: CN7 -16 - 1 (LP1)
    • RX3: CN10-18 - 3 (LP1)
    • TX3: CN10-25 - 4 (LP1)
    • CTS3: CN10-30 - 11 (LP2)
    • RTS3: CN10-28 - 12 (LP2)
    • N_SHUTDOWN: CN10-26 - 10 (LP1)

TODO:

  • figure out how to compile multiple examples with single Makefile/folder