Offline Nucleo development with EmBlocks
The Em::Blocks IDE come with STM32 support out of the box. You simply have to download and install the install-file at http://www.emblocks.org/web/downloads-main. After installing EmBlocks you have to load my flashing led sample project from :
for nucleo L152 : /media/uploads/dreschpe/stm32l152-mbed.zip
for nucleo F401: /media/uploads/dreschpe/stm32f401-mbed1.zip
Unpack the project and load it. After a build target (F7) you can plugin your nucleo board and press F8. A dos-box is popping up , the flash is loaded via the st-link. The code is stopped on the Reset_Handler. If you want to run until main() you have to activate "Run to main()" in the Debug-Interface-Target settings dialog. Set a breakpoint in main and press the run symbol. The code will stop and you can inspect the variables.
To see the peripheral registers of the cpu we have to stop the debugger and load the description file. Start Debug-Plugins-SVD repository and enter vendor and Device :
If you restart the debugger you can inspect and edit the Registers via .Debug- Debugging windows - System registers.
In a next step you can save this project as template. File-save project as template. After this step you can start with File-new from template to setup a new mbed project for the nucleo.
To transfer a project with additional libraries to EmBlock, export the project from the online compiler. The Keil export is supported. at the moment for the nucleo . This is ok - we need only the c and h files.If you open the zip file you see a folder for every additional lib. Copy this folder into your project..Next add the source files into your project with "Add files recursively". In a last step we have to add the search path to this directories. Build options - Search directories - includes
21 comments on Offline Nucleo development with EmBlocks:
Please log in to post comments.