I SYST logo

MANUAL GUIDE
Firmware debugging with Eclipse
Version 1.0

Revision history

Version  Date Note Contributor(s) Approver
1 12 May 2021 Initial version Nguyen Hoang Hoan Nguyen Hoang Hoan

Copyright © 2019 I-SYST, all rights reserved.
3514, 1re Rue, Saint-Hubert, QC., Canada J3Y 8Y5
This document may not be reproduced in any form without, express written consent from I-SYST.

Introduction

This document shows step-by-step how to debug and flash the firmware with Eclipse IDE and Iosonata which was installed in the Installation guide “Eclipse IDE in firmware development with IOsonata”.

Debugging and Flashing Firmware with Eclipse IDE

I SYST Debugging and Flashing Firmware with Eclipse IDE - Fig 1

Connect IDK-BLYST-NANO to your computer.

Debugging Firmware with OpenODC

We will start with Blinky Project as an example.
Select Blinky Project, Right-click select Debug Configuration

I SYST Debugging and Flashing Firmware with Eclipse IDE - Debug Configuration

I SYST Debugging and Flashing Firmware with Eclipse IDE - Debug Configuration 1

Double click on GDB OpenOCD Debugging
In the Main tab, at C/C++ Application click Search Project

I SYST Debugging and Flashing Firmware with Eclipse IDE - Search Project

Select Blinky. elf

I SYST Debugging and Flashing Firmware with Eclipse IDE - Debugger tab

In the Debugger tab, set Config options
-f “interface/cmsis-dap.cfg”
-f “target/nrf52.cfg”
Browse the OpenOCD executable file and ARM GDB executable file.
Click Debug

I SYST Debugging and Flashing Firmware with Eclipse IDE - Debug

After you start the debugger, it will stop at main(). Now you can debug the firmware
by clicking the step button (F5, F6) to trace your source code line by line.

Flashing Firmware

Click the Run button to run the firmware on your device

I SYST Debugging and Flashing Firmware with Eclipse IDE - Run button

I SYST Debugging and Flashing Firmware with Eclipse IDE - Fig 2

Debugging and Flashing BleAdvertiser Firmware

BleAdvertiser requires NRF SDK softdevice components so we have to flash softdevice first. Use
IDAPnRFProg to flash NRF softdevice using IDAP-Link. Download here: IDAP-Link/M – Browse/Windows at SourceForge.net
Run IDAPnRFProg by following command line:
$.\IDAPnRFProg.exe D:\i_syst\external\nRF5_SDK\components\softdevice\s132\hex\s132_nrf52_7.2.0_softdevice.hex

I SYST Debugging and Flashing Firmware with Eclipse IDE - command line

I SYST Debugging and Flashing Firmware with Eclipse IDE - command line 1

After flashing Bluetooth Low Energy Module in IDK-BLYST-NANO with IDAPnRFProg, we can now debug and flash firmware BleAdvertiser on IDK-BLYST-NANO

Documents / Resources

I-SYST Debugging and Flashing Firmware with Eclipse IDE [pdf] User Manual
Debugging and Flashing Firmware with Eclipse IDE

References

Leave a comment

Your email address will not be published. Required fields are marked *