- Install Arduino IDE (tested on ide 2 beta10);
- go into preferences and add
http://dan.drown.org/stm32duino/package_STM32duino_index.json
- in board manager install stm32duino core for STM32F1 boards
- open terminal and type
$``cd /home/$USER/.arduino15/packages/stm32duino/tools/stm32tools/2021.5.31/linux/
- run
./install.sh
- close terminal and go back to Arduino IDE
- select
tools -> board -> STM32F1 Boards (Arduino_STM32) -> "Generic STM32F103R series"
- select
tools -> variant -> STM32F103RC (48k RAM 256 Flash)
- select
tools -> cpu speed -> 72MHz
- select
tools -> optimize -> "smallest default"
- select
tools -> port -> /dev/ttyUSB0
Copy ros_lib into your Arduino libraries folder.
If you are on linux you need an STLINK v2 and you need to:
- select
tools -> upload method -> stlink
- press upload
If you are on macOS you can also upload just using the serial port.
- select
tools -> upload methos -> serial
- press upload
NOTE: if you encounter some issues on uploading, try to select tools -> variant -> STM32F103RE
You need to use this ros package
Copyright © 2021 Giovanni di Dio Bruno under MIT license