Skip to content

Getting Started

Frederic Pillon edited this page May 24, 2017 · 30 revisions

Install Arduino.cc IDE

Download and install Arduino software (IDE) for the required OS. (Windows, Linux or Mac instructions)

Add STM32 boards support to Arduino

This is the needed step to get STM32 targets added to Arduino. So carefully follow the steps described in the Boards Manager page.

Configuring IDE

  1. Connect a board to the computer USB port. For this example: Nucleo L476RG

  2. Launch the Arduino software

    /img/arduino.png

  3. Select the Nucleo L476RG board in two steps:

a. From the "Tools > Board" menu, select the STM32 board series: Nucleo-64

/img/SelectBoard.png

b. Then from the "Tools > Nulceo 64 boards" menu, select the Nucleo L476RG

/img/SelectBoard2.png

  1. Select the serial port from the "Tools > Port" menu

    • On Mac, it's something like /dev/tty.usbmodem-1511.
    • On Windows, it's often the highest-numbered COM port. In this example, it's COM5
    • On Linux, it's something like /dev/ttyACM0.

    (Or unplug the board, check the menu, and then plug the board and check what new port appears)

/img/SelectPort.png

Upload method

Depending of the board, several upload method could be proposed, thanks the "Tools > Upload Method" menu

  • Mass Storage: copy binary to the mass storage
  • STLink: use STLink to flash
  • DFU: use USB to flash

/img/UploadMethod.png

Examples

Clone this wiki locally