Em :: Blocks 1.20 was released , in which quite a lot of goodies:
- Semihosting as library option for EmBlocks Bare-metal ARM
- Semihosting checkbox in debug interfaces JLink and STlink
- Debugger variable tooltip.
- New STlinkGDB server with live data and semihosting support
- Syntax highlight on GNU linker scripts
- Yagarto toolchain replaced by Generic GCC (Yagarto project is canceled)
- C ++ library linker option and C ++ compiler options added
- Make file tool entry by CPP tool entry.
- Device list updated for JLinks
- The debm interfaces are preconfigured at the beginning.
- Breakpoint on-the-fly is now working
- Run to main () is working smoothly
- Pre-compiled headers is supported
- File manager plugin added to the installation package
- EnergyMicro project wizard is using the preinstalled header files from EM instead of copying all files with the wizard.
- Project wizard can also use ZIP archive as template storage.
- Bug fix STmicro project wizard
- Bug fix EnergyMicro project wizard
- and a lot of minor fixes.
In this regard, I made a new build with version 1.20
The advantages of EmBlocks I described
earlier .
Quick start with EmBlocks on the example of a simple blink.
Differences from version based on 1.11:
- STMicro project templates changed:
- On the processor selection tab now there are two checkboxes for generating .HEX files
- Create hex file (Release target) (standard)
- Create hex file (Debug target) (I added for firmware with STLink Utility CLI)
- Removed the “assert_param (expr) = ((void) 0)” macro from defines as unnecessary
- Fixed definition of USE_STDPERIPH_DRIVER in defines
- Project templates of the type I described are for families: STM32F10x_hd , STM32F10x_md , STM32F10x_ld , STM32F10x_md_vl
- In the project template, the file stm32f10x_conf.h from the cmsis_boot folder has been moved to Inc
- The entire std Periph Library v3.5.0 is now immediately included in the project in the stm_lib folder. In order not to copy files, to connect any module you just need to uncomment the corresponding line:
- In stm32f10x_conf.h, by default, stm32f10x_gpio.h and stm32f10x_rcc.h are immediately included, the rest can be uncommented as needed
- The path to the library STM32 USB FullSpeed ​​Driver changed to USB-FS .
I prepared a patch consisting of two parts:
- Changes in the structure of EmBlocks
- A utility for adding three utilities for flashing to the empty Tools menu using CoLinkEx , ST-Link and ST-Link / V2 .
Use this:
Install EmBlocks 1.20 (you can over 1.11, specifying the same folder).
Unpack the
contents of the archive with the patch in the folder where the
emblocks.exe lies with the replacement of files.
Then from this folder run
REmBlocksToolsPatch.exe .

')
The patch.conf file contains the <tools> branch to the config file, the program loads it and allows you to edit the paths to ST-LINK_CLI.exe. If edited, click
Replase Tools path .
Then click
Save Updated Config - the program will write the changed config into place.
Start EmBlocks and check that the necessary items appeared in the Tools menu.
The patch can be applied both on a freshly installed version, and when upgrading.
The utility for adding Tools can also be used on version 1.11, it is enough to register 1.11 in the Em :: blocks version field and click Load config before saving the settings.
Download
Em :: Blocks 1.20 RaJa edition patchAt the same time, you can dig into the patch files, compare them with the original files and understand what and how I changed.