Design an offline programmer for MB9AF116N

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,I want to design an offline programmer for MB9AF116N.

Write the HEX file to Flash using the SWD protocol. Like Jlink,

does anyone know the programming principle of Jlink?

thks

0 Likes
1 Solution
DavidZuo
Employee
Employee
Welcome! First solution authored First reply posted

Hello,

First, you need a memory (for example: SD card) to storage the HEX file on the offline programmer. Then you need to write an ram code (This FW will running on the MB9AF116N SRAM) to program hex data to MB9AF116N flash.

When update the MB9AF116N flash, the offline programmer firstly download the ram code to MB9AF116N SRAM by SWD and let the ram code to run, then the offline programmer write hex data to MB9AF116N SRAM, finally the ram code write these hex data to flash.

This is the ARM Debug Interface Architecture Specification: ARM Debug Interface Architecture Specification ADIv6.0 – Arm Developer

About the SWD interfaces, you can check this source code: DAPLink/source/daplink/cmsis-dap at master · ARMmbed/DAPLink · GitHub

Thanks.

View solution in original post

2 Replies
DavidZuo
Employee
Employee
Welcome! First solution authored First reply posted

Hello,

First, you need a memory (for example: SD card) to storage the HEX file on the offline programmer. Then you need to write an ram code (This FW will running on the MB9AF116N SRAM) to program hex data to MB9AF116N flash.

When update the MB9AF116N flash, the offline programmer firstly download the ram code to MB9AF116N SRAM by SWD and let the ram code to run, then the offline programmer write hex data to MB9AF116N SRAM, finally the ram code write these hex data to flash.

This is the ARM Debug Interface Architecture Specification: ARM Debug Interface Architecture Specification ADIv6.0 – Arm Developer

About the SWD interfaces, you can check this source code: DAPLink/source/daplink/cmsis-dap at master · ARMmbed/DAPLink · GitHub

Thanks.

Anonymous
Not applicable

Your suggestion is very helpful to me

thank you very much

0 Likes