48
7.3
CHAPTER 7
Flash programming
Background information
J-Link comes with a DLL, which allows - amongst other functionalities - reading and
writing RAM, CPU registers, starting and stopping the CPU, and setting breakpoints/
watchpoints. The standard DLL does not have API functions for flash programming.
However, the functionality offered can be used to program the flash. In that case, a
flashloader is required.
7.3.1
How does flash programming via J-Link work ?
Flash programming via J-Link requires extra code. This extra code typically down-
loads a program into the RAM of the target system, which is able to erase and pro-
gram the flash. This program is called RAM code and "knows" how to program the
flash; it contains an implementation of the flash programming algorithm for the par-
ticular flash. Different flash memory devices have different programming algorithms;
the programming algorithm also depends on other things such as endianess of the
target system and organization of the flash memory (for example 1 * 8 bits, 1 * 16
bits, 2 * 16 bits or 32 bits). The RAM code requires data to be programmed into the
flash memory.
7.3.2
Data download to RAM
Data (or part of it) is downloaded to another part of the RAM of the target system.
The program counter (PC) is then set to the start address of the RAM code, the CPU
is started executes the RAM code. The RAM code, which contains the programming
algorithm for the flash memory device, copies data into the flash. The CPU is stopped
after this. This process might have to be repeated until the entire data is pro-
grammed into the flash.
7.3.3
Available options for flash programming
There are different solutions available to program internal or external flashes con-
nected to ColdFire ? cores using J-Link. The different solutions have different fields of
application, but of course also some overlap.
7.3.3.1 Flash loader of compiler / debugger vendor such as IAR
A lot of debuggers (some of them integrated into an IDE) come with their own flash
loaders. The flash loaders can of course be used if they match your flash configura-
tion, which is something that needs to be checked with the vendor of the debugger.
J-Link ColdFire BDM 26 (UM08009)
? 2004-2009 SEGGER Microcontroller GmbH & Co. KG
相关PDF资料
8-1437020-8 CONN RECEPT 20POS 30GOLD BLUE
80081001 MOTOR BLDC GEAR IC KEY 80W 24V
80089704 MOTOR BLDC GEAR IC KEY 80W 24V
80089705 MOTOR BLDC GEAR IC KEY 80W 24V
80089706 MOTOR BLDC GEAR IC KEY 80W 24V
80141001 MOTOR BLDC GEAR IC KEY 32W 24V
80141002 MOTOR BLDC GEAR IC KEY 32W 24V
80141003 MOTOR BLDC GEAR IC KEY 32W 24V
相关代理商/技术参数
8.12.00 制造商:SEGGER 功能描述:EMULATOR J-LINK PRO 制造商:SEGGER 功能描述:JTAG EMULATOR J-LINK PRO USB 制造商:SEGGER 功能描述:JTAG EMULATOR, J-LINK, PRO, USB, ENET 制造商:SEGGER 功能描述:JTAG EMULATOR, J-LINK, PRO, USB2.0, ETHERNET; IC Product Type:USB JTAG Emulator; Features:Supports ARM, Cortex-M, Cortex-A, RX000 Series & Cortex-R4 MCUs, USB 2.0 & Ethernet Interface
8.12.00 J-Link PRO 功能描述:仿真器/模拟器 RoHS:否 制造商:Blackhawk 产品:System Trace Emulators 工具用于评估:C6000, C5000, C2000, OMAP, DAVINCI, SITARA, TMS470, TMS570, ARM 7/9, ARM Cortex A8/R4/M3 用于:XDS560v2
8.12.00 J-LINK PRO 制造商:SEGGER 功能描述:JTAG EMULATOR J-LINK PRO USB2.0 ETHE
8.13.00 制造商:SEGGER 功能描述:JTAG EMULATOR J-TRACE CORTEX 制造商:SEGGER 功能描述:EMULATOR J-TRACE FOR CORTEX-M 制造商:SEGGER 功能描述:JTAG EMULATOR, J-TRACE, FOR CORTEX-M 制造商:SEGGER 功能描述:JTAG EMULATOR, J-TRACE, USB, FOR CORTEX-M; IC Product Type:USB JTAG Emulator; Features:Supports Cortex-M and ARM Series Cores, USB 2.0 Interface
8.13.00 J-TRACE CORTEX-M 制造商:SEGGER 功能描述:JTAG EMULATOR J-TRACE FOR CORTEX-M 制造商:SEGGER 功能描述:JTAG EMULATOR, J-TRACE, FOR CORTEX-M
8.13.00 J-Trace for Cortex-M 功能描述:仿真器/模拟器 RoHS:否 制造商:Blackhawk 产品:System Trace Emulators 工具用于评估:C6000, C5000, C2000, OMAP, DAVINCI, SITARA, TMS470, TMS570, ARM 7/9, ARM Cortex A8/R4/M3 用于:XDS560v2
8.13.00 J-TRACE FOR CORTEX-M3 功能描述:EMULATOR JTAG/SWD CORTEX M3 RoHS:是 类别:编程器,开发系统 >> 内电路编程器、仿真器以及调试器 系列:- 产品变化通告:Development Systems Discontinuation 19/Jul/2010 标准包装:1 系列:* 类型:* 适用于相关产品:* 所含物品:*
8.13.14 J-Trace for Cortex-M/Pro Bundle 功能描述:仿真器/模拟器 RoHS:否 制造商:Blackhawk 产品:System Trace Emulators 工具用于评估:C6000, C5000, C2000, OMAP, DAVINCI, SITARA, TMS470, TMS570, ARM 7/9, ARM Cortex A8/R4/M3 用于:XDS560v2