Inhaltsverzeichnis

Segger provides a probe - J-Link - that can be used for programming and debugging. For non-commercial use Segger offers the low priced J-Link Edu probe.

Segger supports the Cortex M7 SWV interface used on OVI40 UI and offers plug-ins for MCU eclipse.

For Debug output Segger offers an two options in MCU eclipse:

The J-Link makes use of the Cortex-M feature, which allows accessing the memory via the debug interface while the target is running. How this works in general is described here.

The speed advantage of RTT - according to Segger data - is impressive:

RTT speed comparison, from Segger web site here

Debian SW Install

$ sudo dpkg -i nameofdebpackage.deb

Windows SW Install

ToDo

As part of the Segger J-Link SW pack the “J-Link Configurator” utility. In Windows it can be started using the Windows start menu

Segger J-Link Configurator - Firmware update tool

See here

Install Packs

For installing CMSIS packs see here

Segger Real Time Terminal RTT

- is it really 100 times faster than SWO print and 10.000 times fasster than semi-hosting? Segger says here that Cortex-M supports background memory access and that RTT will have no impact on Cortex-M execution speed

RTT target code

The RTT target code is shipped as part of the J-Link Software and Documentation Pack which can be downloaded here. The RTT sources can be found in the J-Link software package under: Samples/RTT

Calling SEGGER_RTT print from within interrupts / make it re-entrant

During RTT output the functions SEGGER_RTT_LOCK() and SEGGER_RTT_UNLOCK() are called by default in RTT, but the function bodies of those functions are empty and need to be implemented according to MCU used and use case.

Please implement

Segger provides a “STM32 unlock” utility as part of the standard J-Link SW pack. The tool can be started in Windows using the “start” menue and resets all values to factory default:

Segger J-Link STM32 unlock utility

Note: The unlock utility resets the brown out reset (BOR) to “level 0”, equalling about 1.7 Volt.

Further reading:

As part of the Segger J-Link SW pack the flash utility “J-Link lite” is provided. Start J-Flash using Windows “start” button. Note: J-Flash does not support .dfu files. Use the UHSDR .bin files. Load bootloader at address 0x08000000 and load firmware at 0x08010000.

Segger J-Flash Lite tool

ToDo

Further Reading