FAQ: How to flash/download a FW on AX8052F143 using AXSDB command line debugger

Introduction
For programming and debugging ON Semiconductor`s AX8052F143 SoC customers can use our AXDBG Debug Adapter board AXDBG-2-GEVK.

The AXDBG is a very flexible programmer/debugger that can be used directly via AX-RadioLab, or via AXCodeBlocks IDE if debugging is needed. Additionally the AXDBG can be controlled via AXSDB commands. AXSDB is the AX8052 Symbolic Command Line debugger and it is fully scriptable, thanks to its built-in Tool Control Language (TCL) scripting engine. More details on the AXSDB can be found at https://www.onsemi.com/pub/collateral/and9370-d.pdf

One common usage of the AXDBG+AXSDB is for Production Programming by enabling FW upload/download via command line. A dedicated app-note with detailed commands can be found at https://www.onsemi.com/pub/collateral/and9330-d.pdf.

How to Upload (Flash) a FW via AXSDB
After compiling a project in AX-RadioLab/AX-CodeBlocks the obtained HEX binary can be flashed directly using axsdb command tool interface.

  1. Connect the DUT (e.g. AX8052F143) to the AXDBG board;
  2. Open a CMD tool window;
  3. Type the following to flash the HEX file: axsdb.exe −−oldkeys 0xffffffffffffffff −−newkey 0xffffffffffffffff −−flashprog <path>\file.hex

How to Download (Backup) a FW via AXSBD
The flashed HEX contained in the DUT`s flash can be saved on the local PC by using the axsdb command tool interface.

  1. Connect the DUT (e.g. AX8052F143) to the AXDBG board;
  2. Open a CMD tool window;
  3. Type the following to flush the whole flash content into a HEX file: axsdb.exe --savefullhex <path>\file.hex