2009-09-20 11:47 PM
Programming Flash with JTAG - Not enough information
2011-05-17 04:21 AM
Have a look at openocd, it already implements the jtag layer and has support for programming stm32 micros.
http://openocd.berlios.de Cheers sjo2011-05-17 04:21 AM
I have STM32F103VC and VD devices. I need to develop a model for an in-circuit tester that will program the flash through the JTAG port.
I have the Flash Programming Manual PM0042, that shows me all of the FPEC registers and flow charts that show me the programming and erase procedures. I have the Reference Manual RM0008 that describes the JTAG port and its 2 TAP controllers and how to access them. There does not seem to be enough information that will show me how to access the FPEC registers with the JTAG, and program/read-back the flash with the JTAG. Where is this documented?2011-05-17 04:21 AM
Hi Dudley:
Here are some information you might need to: 1. Cortex-M3 Technical Reference Manual:http://infocenter.arm.com/help/topic/com.arm.doc.ddi0337e/DDI0337E_cortex_m3_r1p1_trm.pdf
. You can refer to the chapter 10--Core Debug,chapter 11--System Debug,chapter 12--Debug Port. 2. ARM Debug Interface v5 Architecture Specification:http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ihi0031a/index.html
3. If you have installed Keil MDK, you will find ready-made Flash programming algorithm on \Keil\ARM\Flash\STM32F10x, this source may help you. 4. You can visit for more information,there is an open emluator for ARM Cortex M3--CooCox Colink, which may help you. ----------- , Cooperate on Cortex, open emluator and open RTOS for Cortex M3.2011-05-17 04:21 AM
No help
Your Flash Programming manual says: '' The in-circuit programming (ICP) method is used to update the entire contents of the Flash memory, using the JTAG, SWD protocol or the bootloader to load the user application into the microcontroller. ICP offers quick and efficient design iterations and eliminates unnecessary package handling or socketing of devices.'' But no other document gives me any clue whatsoever about how to do it. Do you have anything similar to the TI document that I just attached? Dudley2011-05-17 04:21 AM
Hello Dudley,
if you need to program via JTAG the STM32F103VC at the in-circuit tester I would suggest to consider FlashRunner the production in-circuit programmer from SMH. FlashRunner easily integrates into a tester and is a fast programming tool. You can find out more at www.smh-tech.com. Regards. [ This message was edited by: paolo.dalben on 21-09-2009 12:18 ]