Using JTAG Wiggler with STM32

There was a problem programming STM32 boards with the JTAG Wiggler device, specifically the [code]stm32f10x_pp.cfg[/code] file located under the [code]Scripts[/code] directory of any generated project needs some alterations:

Replace everything after the [code]interface[/code] section (which ends with the “[code]jtag_speed 0[/code]” line) with the following:

[code type=”python”]

use combined on interfaces or targets that can’t set TRST/SRST separately

reset_config trst_and_srst

jtag scan chain

format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)

jtag_device 4 0x1 0xf 0xe jtag_device 5 0x1 0x1 0x1e

target configuration

daemon_startup reset

target

target cortex_m3

target cortex_m3 little run_and_halt 0 run_and_halt_time 0 30

working_area 0 0x20000000 16384 nobackup

flash bank

flash bank stm32x 0x08000000 0x00010000 0 0 0 [/code]