3183 views|0 replies

227

Posts

0

Resources
The OP
 

Technical article | How to use J-Link to burn SPI Flash [Copy link]

J-Link not only supports the burning of the Flash on the MCU , but also can directly burn the SPI Flash through the SPI protocol. Because the SPI protocol is used , even if the MCU connected to the SPI Flash is not within the support range of Segger , the SPI Flash can still be directly burned through the SPI protocol without the participation of the MCU . This article will take J-Link Plus as an example to introduce how to directly burn the SPI Flash .

J-Link version requirements:

To burn SPI Flash directly , you need to use the PC software J-Flash SPI , which is supported by the corresponding J-Link models in the figure below. Basic models such as J-Link Base and EDU are not supported.

Figure 1

Hardware Connection:

J-Link supports the SPI protocol, and some interfaces are multiplexed as SPI functions.

For the standard 20-pin JTAG pins, the pins that need to be connected when burning SPI Flash are as follows:

Figure 2

Pin 1—Vtref pin: connected to the Vdd pin of the target device, used to detect whether the target device is powered

Pin 5—DI data input pin: connected to the SPI Flash data input pin ( MOSI ), used to transfer data to the Flash

Pin 7—nCS chip select pin : connected to the CS pin of the SPI Flash chip

Pin 9—CLK clock signal pin: connected to the CLK pin of SPI Flash

Pin 13—DO data output pin: connected to the data output pin of SPI Flash ( MISO )

Pin 15—nRESET reset pin: If there is another control device for SPI Flash , such as SPI Flash connected to MCU , the nRESET pin of J-Link should be connected to the reset pin of MCU to ensure that J-Link can keep the MCU in reset state when programming SPI Flash , as shown in the following figure:

Figure 3

Flashing firmware

( 1 ) Connecting devices

Open the J-Flash SPI software on the computer , click Target->Connect option, connect the target Flash , Segger can automatically identify the supported Flash chips, the list of Flash chips supported by Segger can be viewed by opening the link:

https://www.segger.com/products/debug-probes/j-link/technology/cpus-and-devices/supported-spi-flashes/

If the connection is successful, the log interface will display information about the Flash chip model. In this example, the one used is Spansion S25FL064K .

Figure 4

(2) Open the program file to be burned

Click File->Open data file to open the program file to be burned . It supports files in various formats such as hex , bin , ELF , etc.

Figure 5

(3) Download the application

Click Target->Auto to download the program to the Flash chip. After the burning is completed, you can see the prompt of successful burning in the log window.

Figure 6

Figure 7

Personal signature

欢迎关注“麦克泰技术”

 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list