Embedded Computing
  • About
  • Blog
  • Hardware
    • Which Platform?
    • Controller Platforms >
      • Adafruit Platform
      • Arduino Plaform
      • BBC micro:bit
      • Espressif Platform
      • iLabs Platform
      • Raspberry Pi Platform (MCU)
      • Seeed Platform
      • Silicon Labs Platform
      • Teensy Plaform
    • Computer Platforms >
      • BeagleBone Platform
      • Raspberry Pi Platform (SBC)
      • UDOO Platform
    • Peripherals >
      • Shields
      • Grove System
      • Sensors
      • Actuators
    • Displays >
      • E-Paper Displays
      • Reflective Displays
      • TFT Displays
      • LCD Displays
    • Legacy Platforms >
      • chipKIT Plaform
      • 4D Systems Platform
      • Intel Platform
      • LaunchPad Plaform
      • BoosterPacks for LaunchPads
      • LightBlue Bean
      • Maple Plaform
      • Mediatek Platform
      • Microsoft Azure IoT DevKit
      • Particle Platform
  • Software
    • Exploring RTOS with Galaxia >
      • Event Library
      • Semaphore Library
      • Mailbox Library
      • Timer Library
      • Clock Library
      • SWI Library
      • Task Library
    • Ultra-Low Power with EnergyTrace >
      • Ultra-Low Power with MSP430
      • Ultra-Low Power with Energia MT and Galaxia
    • Using Integers Instead of Reals
    • Going Python?
  • IoT
    • IoT Platforms: Which Hardware? >
      • Matter with Silicon Labs MG24
    • IoT Services: Which Solution? >
      • Recommended IoT Solutions
      • Platform-Specific IoT Solutions
      • Other IoT Solutions
      • Not tested IoT Solutions
      • Notification Solutions
    • Get Date and Time from Internet with NTP
    • Fast and Easy WiFi Connection with QR-Code
  • Tools
    • How to Start?
    • Reference >
      • Asking for Help
      • Boards Pins Maps
      • Ruler
      • Boards and Plugs
      • I²C Logic Level Converter
      • Standards for Connectors
    • Training >
      • Texas Instruments Workshops
      • Embedded Systems: Shape The World — MOOC edX UTAustinX UT.6.02x
      • Embedded Systems - Shape The World: Microcontroller Input/Output — MOOC edX UTAustinX UT.6.10x
      • Embedded Systems - Shape The World: Multi-Threaded Interfacing — MOOC edX UTAustinX UT.6.20x
      • Real-Time Bluetooth Networks: Shape the World — MOOC edX UTAustinX UT.RTBN.12.01x
      • Systems Thinking with Texas Instruments Robotics System Learning Kit
    • Books >
      • Getting Started with the MSP430 LaunchPad
      • Getting Started with Arduino
      • Arduino Cookbook
    • IDE >
      • The Battle of IDEs
      • More Options
      • Assessing the Next Generation of IDEs
      • Tools for Documentation
    • Equipment >
      • Saleae Logic Analyser
      • Rigol DS1102E Oscilloscope
      • XDS110 Debug Probe with EnergyTrace​
      • Segger J-Link Programmer-Debugger
      • Nordic Power Profiler Kit II
  • Projects
    • Libraries >
      • Master I²C Software Library
      • Date and Time Library
      • highView Library Suite
      • Others Libraries
    • smartDevices >
      • I²C smartColours Smart Sensor
      • I²C smartRFID Smart Sensor
      • I²C smartLED Display
      • I²C smartControls Smart Device
      • I²C smartWiFi Smart Device
      • I²C smartBLE Smart Device
      • I²C smartNode Smart Device
    • IoT Projects >
      • Remote E-Paper Weather and Message Board
      • Typie-Walkie with LoRa and E-Paper Screen
      • Typie-Walkie with E-Paper Screen
      • Remote e-Paper Pictures Panel
      • Remote e-Paper Messages Panel
      • Industrial IoT Project
      • Remote Contactless Temperature Monitor
      • Using Node-RED for IIoT
      • Low Power Home Network Weather Monitoring
      • Updated Low Power Home Network Weather Monitoring
      • Weather and Security Station with Blynk
      • SensorTag to Blynk Using Node-RED
      • Pervasive Reporting
    • AI Projects >
      • Colour Recognition with Neural Network
    • Other Projects >
      • Air Quality Monitoring
      • Driving a Large E-Paper Display with a Compact Xiao RP2040
      • Low-Power E-Paper Weather Station
      • Portable Particulate​ Matter Monitor
      • FRAM-based E-Paper Screen Controller
      • General Purpose 3.5" Screen
      • Colour Recognition with Neural Network
      • A Low Power Weather Station
      • Digital Volt-Amp-Watt Meter
      • Mobile Measurement with LCD Display
      • Screen with SRAM for GUI
      • Volt-Amp-Watt-Meter for Grove
      • Multi-Touch Project with CapTIvate

Segger J-Link Software​

Segger provides the basic J-Link Tools Suite, and more elaborate applications like Ozone, a graphical debugger.

​Most of the utilities support Windows, macOS and Linux.
Picture

J-Link Tools Suite

The software is very standard. Uploading binaries to the MCU is carried out with JLinkExe, and debugging relies on the classic server-client scheme. 

For the GDB server, I first tried OpenOCD but faced some issues. Everything was solved with the supplied JLinkGDBServer. 

I set the port to 3333 to comply with the OpenOCD standard.

​The server JLinkGDBServer runs on a first window on the left and the client arm-none-geabi-gdb on a second window on the right.
Picture
Picture

Ozone

Ozone is a free graphical debugger.

One single window displays multiple views.
  • On the left, the list of functions and the console;
  • On the centre, the code being debugged;
  • And on the right, the disassembly, the registers, the watched variables and the call stack.

Multiple additional views are available, like the list of breakpoints, memory, local data, and even graphs. Views can be re-arranged. 

On macOS, use Ozone v 2.22o or later with J-Link v 2.12i or later, as previous releases may crash.

Picture
Click to enlarge.
The configuration wizard consists on 3 screens.
​
  • The first screen asks for the device, here the generic Cortex-M3 for the Arduino Due.
  • The second screen defines the interface (JTAF or SWD) and the speed.
Picture
Picture
  • The final screen selects the .elf file.

The configuration can be saved as a .jdebug file for later re-use.


Picture
Counts, conditions and actions can be set on the breakpoints. I haven't figured out how to use the Trigger on change.

One limitation: the console and the pop-up message display the text entered, not the value of the variable.
Picture
Picture
Picture
In case the program has been modified by another application, Ozone prompts a message and asks for updating it.
Picture
Picture

​Conclusion

​The software provided by Segger is fast are reliable, along with well-written documentation. The Ozone application offers a decent graphical interface for debugging.

​Support is very responsive and provided through the Segger forum.

I've explored debugging against the Adafruit Feather M0, Adafruit Feather nRF52, Arduino Due, Arduino Primo Core boards with the Segger J-Link.
Picture

Pros

  • Software suite for Windows, Linux and macOS
  • Extensive documentation

Cons

  • Some issues with OpenOCD

Wrap-Up

  • Reliable software and extensive documentation  

Links

  • Segger website
  • J-Link page
  • Ozone page
  • Software download
  • Segger forum​
Picture

​Posted: Aug 22, 2016
Updated: 
Sept 08, 2017
Powered by Create your own unique website with customizable templates.