Difference between revisions of "Nucleo Boards"
Line 34: | Line 34: | ||
<h3> Installing STM32CubeIDE </h3> | <h3> Installing STM32CubeIDE </h3> | ||
− | Last release of STM32CubeIDE can be obtained here: https://www.st.com/en/development-tools/stm32cubeide.html | + | Last release of STM32CubeIDE can be obtained here: https://www.st.com/en/development-tools/stm32cubeide.html. <br> |
− | For Debian like distributions (e.g. ubuntu), download the STM32CubeIDE-DEB file. | + | For Debian like distributions (e.g. ubuntu), download the STM32CubeIDE-DEB file. To download it, you will need to provide name and a valid email address. |
Unzip the file (e.g. <FILE> = en.st-stm32cubeide_1.0.1_3139_20190612_1256_amd64.deb_bundle) | Unzip the file (e.g. <FILE> = en.st-stm32cubeide_1.0.1_3139_20190612_1256_amd64.deb_bundle) | ||
Line 62: | Line 62: | ||
<h2> Windows </h2> | <h2> Windows </h2> | ||
+ | <h3> Installing STM32CubeIDE </h3> | ||
+ | Last release of STM32CubeIDE can be obtained here: https://www.st.com/en/development-tools/stm32cubeide.html. . <br> | ||
+ | For Windows like distributions, download the STM32CubeIDE-Win file. To download it, you will need to provide name and a valid email address. | ||
+ | |||
+ | Unzip the file and execute the binary. Follow all steps and accept all conditions. | ||
+ | |||
<h2> MAC </h2> | <h2> MAC </h2> |
Revision as of 07:46, 29 July 2019
Contents
Configuring environment
Linux
Installing dependencies
Dependencies for compilling
In a command line, execute:
sudo apt-get install build-essential gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
Dependencies for flashing the microcontroller
In a command line, execute:
sudo apt-get install git cmake libusb-1.0-0-dev dfu-util
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. In a command line, execute:
git clone https://github.com/texane/stlink.git cd stlink make cd build/Release sudo make install
Installing STM32CubeIDE
Last release of STM32CubeIDE can be obtained here: https://www.st.com/en/development-tools/stm32cubeide.html.
For Debian like distributions (e.g. ubuntu), download the STM32CubeIDE-DEB file. To download it, you will need to provide name and a valid email address.
Unzip the file (e.g. <FILE> = en.st-stm32cubeide_1.0.1_3139_20190612_1256_amd64.deb_bundle)
unzip <FILE>.sh.zip
It will generate a .sh file. Give it permits for execution.
chmod 777 <FILE>.sh
Finally, execute the installation
sudo ./<FILE>.sh
References
https://nebkelectronics.wordpress.com/2016/12/19/the-stm32cube-library-part-1-toolchain/
https://nebkelectronics.wordpress.com/2016/12/24/stm32cube-library-part-2-hello-world/
https://nebkelectronics.wordpress.com/2017/10/08/stm32cube-library-part-3-compiling/
Windows
Installing STM32CubeIDE
Last release of STM32CubeIDE can be obtained here: https://www.st.com/en/development-tools/stm32cubeide.html. .
For Windows like distributions, download the STM32CubeIDE-Win file. To download it, you will need to provide name and a valid email address.
Unzip the file and execute the binary. Follow all steps and accept all conditions.