Chapter 7 How To Use The Board With Arduino Ide - OLIMEX STM32-P152 User Manual

Table of Contents

Advertisement

OLIMEX© 2016

CHAPTER 7 HOW TO USE THE BOARD WITH ARDUINO IDE

In order to program the board with Arduino IDE you would need a mini USB cable. Note that you
you would also need to enter bootloader mode by manipulating the B1 and B0 jumpers.
1) Download and install latest Arduino IDE (1.6.8 at the time of testing here)
2) Go to: File --> Preferences --> Additional Boards Manager URLs and add the url of our STM32
board support package:
https://raw.githubusercontent.com/OLIMEX/Arduino_configurations/master/STM/package_olimex
_stm_index.json
3) Navigate to Tools --> Board --> Boards manager...
4) Select "Olimex STM32 boards" --> Install (if Arduino SAM Boards package is not installed it
will download the compiler so it will take some time)
5) Select: Tools --> Board --> STM32-E407
6) Select: File --> Examples --> STM32E407 --> <choose one of the examples>
7) Run the bootloader mode of the board (change the jumpers to to B0 -> 1; B1 -> 0 and reset the
board)
7.1) If the device is not recognized by the Windows install driver (WinUSB
v6.1.7600.16385) using zadig installer (download link: http://zadig.akeo.ie/)
8) Compile and upload the sketch
9) Run the normal mode of the board (again change jumpers B0 -> 0; B1 -> 0 and reset the board)
10) The uploaded sketch should now be executing; to upload new code go to step 7)
Page 22 of 30
STM32-H407 user's manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Stm32-p103Stm32-p405Stm32-h407

Table of Contents