How to use the SEGGER J-Flash software to download files for programing a target board

Talking About Open Source Of Anet 3D Printer
Post Reply
User avatar
AnetLau
Posts: 816
Joined: 2020-06-24 1:56

This is an introduction about how to use the SEGGER J-Flash software to download files for programing a target board.

Requirements:



Windows O.S: Windows 7

Hardware Debugger Driver: J-Link-OB

Software: J-Flash ARM V4.68

Debugger Driver Connection Method: SWD

Target Board: STM32F103C8T6 Minimum System Board(ST)

Power Supply: J-Link-OB


Image


STM32F103C8T6 Minimum System Board (ST) Download:



Before downloading, please confirm if the J-Flash ARM and J-Link driver are already installed, and also check if the J-Link debugger driver is well connected with the target board.
Start the J-Flash ARM V4.68 software.


Image



I - Settings

Click on “Options” and then “Project Settings” (or press Alt + F7 for shortcut) to enter settings interface.

1. J-Link Setting: select the default settings (USB - Device 0).


Image



2. Target Connection Type & Speed setting: jump to “Target Interface” and set both “SWD speed before init” and “SWD speed after init” to “Auto selection”.


Image



3. Click on “CPU” button and select “ST STM32F103C8” among the drop-down list as the “Device” version. And then click on “Apply” and “Confirm”.


Image



II - J-Link & Target Board Connection


Click on “Target” menu and then the “Connect” button, “Emulation Selection” interface will appear and click on “OK” to connect the J-Link and target board.


Image



If they’re well connected, you can see updated LOG information at the bottom of the software.


Image



III - Download Hex File


Click on “File” at the main menu, and then click on “Open data file” and select the needed “hex” file to open for flashing the target board.


Image



Programing “hex” file: click on “Target” and then select “Program” (or Program&Verify or Auto) to program the file into the target board.


Image



Note: click on “Y” to confirm to erase the affected area, or the programing fails with informed message as above picture.


Image



PS:
J-Link is available in our store, just go to the homepage and search for it.


Post Reply