ST's STFM32 range of micros

I don’t think these are supported, so how would I go about adding support ?

Can someone give me some quick pointers about what I need to do, obviously reading the existing code is a good place to start.

many thanks

Ben

I am currently adding support for this, so should not be to long a wait.

Regards

Spen

I am currently adding support for this, so should not be to long a wait.

Regards

Spen

STM32 support has now been added to the svn trunk (rev 177).

This device has two jtag taps, so note the two two jtag devices defined below.

important parts of config are:

jtag_device 4 0x1 0xf 0xe

jtag_device 5 0x1 0x1 0x1e

target cortex_m3 little run_and_init 0

working_area 0 0x20000000 16384 nobackup

flash bank stm32x 0x08000000 0x00010000 0 0 0

see wiki for full details.

Cheers

Spen

Maybe this is a bit offtopic for OpenOCD but

does anyone have info about devboards:

suppliers, price avaliability and comments,

for the STM32 chips ?

Regards,

Magnus

we have 3 STM32 development boards with prices in range $33-$80

the information will be uploaded this week on our web.

STM32 devices will be in range of $3-$4 for 1K order

ST will start shipping them in September this year

Hi,

I try to compile the latest SVN 189 and connect to my STM32 but fail. The error message shows wrong IR setting. My cfg file:

#daemon configuration

telnet_port 4444

gdb_port 3333

#interface

interface parport

parport_port 0x378

parport_cable wiggler

jtag_speed 0

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

reset_config trst_and_srst srst_pulls_trst

#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 arm7tdmi

target cortex_m3 little run_and_init 0

working_area 0 0x20000000 16384 nobackup

#flash configuration

flash bank stm32x 0x08000000 0x00010000 0 0 0

and the error message:

D:\ftp\bin\Release>myocd -f ./STM32F10x.cfg -d 0

Info: openocd.c:92 main(): Open On-Chip Debugger (2007-07-31 19:00 CEST)

Debug: jtag.c:1407 jtag_init(): -

Debug: parport.c:380 parport_init(): requesting privileges for parallel port 0x378…

Debug: parport.c:390 parport_init(): …privileges granted

Debug: parport.c:215 parport_reset(): trst: 0, srst: 0

Debug: jtag.c:295 jtag_call_event_callbacks(): jtag event: TRST asserted

Debug: jtag.c:1197 jtag_reset_callback(): -

Debug: jtag.c:1197 jtag_reset_callback(): -

Debug: jtag.c:295 jtag_call_event_callbacks(): jtag event: TRST asserted

Debug: jtag.c:1197 jtag_reset_callback(): -

Debug: jtag.c:1197 jtag_reset_callback(): -

Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x07ff

Debug: jtag.c:295 jtag_call_event_callbacks(): jtag event: TRST asserted

Debug: jtag.c:1197 jtag_reset_callback(): -

Debug: jtag.c:1197 jtag_reset_callback(): -

Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x07ff

Debug: jtag.c:295 jtag_call_event_callbacks(): jtag event: TRST asserted

Debug: jtag.c:1197 jtag_reset_callback(): -

Debug: jtag.c:1197 jtag_reset_callback(): -

Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x07ff

Debug: jtag.c:295 jtag_call_event_callbacks(): jtag event: TRST asserted

Debug: jtag.c:1197 jtag_reset_callback(): -

Debug: jtag.c:1197 jtag_reset_callback(): -

Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x07ff

Debug: jtag.c:295 jtag_call_event_callbacks(): jtag event: TRST asserted

Debug: jtag.c:1197 jtag_reset_callback(): -

Debug: jtag.c:1197 jtag_reset_callback(): -

Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x07ff

Debug: jtag.c:295 jtag_call_event_callbacks(): jtag event: TRST asserted

Debug: jtag.c:1197 jtag_reset_callback(): -

Debug: jtag.c:1197 jtag_reset_callback(): -

Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x07ff

Error: jtag.c:1442 jtag_init(): Could not validate JTAG chain, exit

D:\ftp\bin\Release>

Can somebody please direct me where should I modify?

Thanks and Regards,

Sam

you should not need the srst_pulls_trst option for the cortex.

Try slowing the jtag clock down while you are testing.

Cheers

Spen

ntfreak:
you should not need the srst_pulls_trst option for the cortex.

Try slowing the jtag clock down while you are testing.

Cheers

Spen

Thanks! I remove the srst_pulls_trst and function works.