How to debug AXM0F343 code generated in AX Configuration Utility and imported in ON IDE?

Introduction
The AX-Configuration Utility is a hands-on configuration and firmware source code generation tool for the AXM0F343.
Projects generated with AX-Configuration Utility can be imported in the OnsemiIDE ready to be flashed and debugged.

Problem
During debugging, when single stepping across the project code, the following error appears not allowing to inspect the source code of lower level code (e.g. CMU driver):

Solution
The reason for this error is that the Source Lookup Path of projects imported from AX-Configuration Utility is wrong.
The issue can be solved by clicking on “Edit Source Lookup Path” and inserting the correct path, but this workaround would have to be repeated for every project.

In order to fix this issue once for all, please follow the following steps:

  • From the main toolbar, navigate to Window → Preferences to open the Eclipse settings. Then go to C/C++ → Debug → Source Lookup Path and click ADD (Step 1)
  • Choose Path Mapping (Step 2)
  • Add a new entry with:
    • Compilation path: C:/Users/fg8y4b/ON_Semiconductor/PACK
    • Local file system path: C:/Users/<your-user-folder.>/ON_Semiconductor/PACK , or another path where your CMSIS packs are stored.
  • Click OK and then Apply and Close.

Now you will be able to fully debug any project created using the AX-Configuration Utility.

1 Like