Difference between revisions of "Nucleo Boards"
From RobolaboWiki
Line 10: | Line 10: | ||
</pre> | </pre> | ||
− | To install dependencies for | + | To install dependencies for flashing the microcontroller, in a command line, execute: |
<pre> | <pre> | ||
− | sudo apt-get install git cmake libusb-1.0-0-dev dfu-util | + | sudo apt-get install git cmake libusb-1.0-0-dev dfu-util |
</pre> | </pre> | ||
+ | |||
+ | To install dependencies for debugging the microcontroller, in a command line, execute: | ||
+ | <pre> | ||
+ | sudo apt-get install gdb | ||
+ | </pre> | ||
+ | |||
+ | Moreover, stlink utility is mandatory to debug in a nucleo board, therefore in a command line, execute: | ||
+ | <pre> | ||
+ | git clone https://github.com/texane/stlink.git | ||
+ | cd stlink | ||
+ | make | ||
+ | cd build/Release | ||
+ | sudo make install | ||
+ | <\pre> | ||
+ | |||
+ | |||
<h2> Windows </h2> | <h2> Windows </h2> | ||
<h2> MAC </h2> | <h2> MAC </h2> |
Revision as of 08:10, 29 July 2019
Configuring environment
Linux
Installing dependencies
To install dependencies for STM32CubeMX and STM32CubeIDE, in a command line, execute:
sudo apt-get install build-essential gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
To install dependencies for flashing the microcontroller, in a command line, execute:
sudo apt-get install git cmake libusb-1.0-0-dev dfu-util
To install dependencies for debugging the microcontroller, in a command line, execute:
sudo apt-get install gdb
Moreover, stlink utility is mandatory to debug in a nucleo board, therefore in a command line, execute:
git clone https://github.com/texane/stlink.git cd stlink make cd build/Release sudo make install <\pre> <h2> Windows </h2> <h2> MAC </h2>