Hi, Im trying to get openocd to work with a Jlink and an STM32F102R4  
processor.
When I connect to the device and issue a flash probe 0, I get the  
following output:

 > flash probe 0
device id = 0x10006412
STM32 flash size failed, probe inaccurate - assuming 32k flash
flash size = 32kbytes
flash 'stm32x' found at 0x08000000

 >

Here is the output from openocd:

500 kHz
Info : J-Link ARM V6 compiled Feb 17 2009 16:41:40
Info : Vref = 3.267 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 1 TRST = 1

Info : J-Link JTAG Interface ready
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (Manufacturer:  
0x23b, Part: 0xba00, Version: 0x3)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.bs tap/device found: 0x06412041 (Manufacturer:  
0x020, Part: 0x6412, Version: 0x0)
Info : JTAG Tap/device matched
Warn : no telnet port specified, using default port 4444
Warn : no gdb port specified, using default port 3333
Warn : no tcl port specified, using default port 6666
Info : accepting 'telnet' connection from 0
Info : device id = 0x10006412
Warn : STM32 flash size failed, probe inaccurate - assuming 32k flash
Info : flash size = 32kbytes
flash 'stm32x' found at 0x08000000


The device I am connected to only has 16K of flash, so this fails when  
I try to program the part.
The source is checked out from svn.

If I add "flash bank stm32x 0x08000000 0x4000 0 0 0" to my config  
file, I still have the same issue.

When I try to program the device, I get the following output:

auto erase enabled
Info : device id = 0x10006412
Warn : STM32 flash size failed, probe inaccurate - assuming 32k flash
Info : flash size = 32kbytes
Warn : writing 32768 bytes only - as image section is 536871180 bytes  
and bank is only 32768 bytes
Warn : not enough working area available(requested 16384, free 16336)
Error: jlink_jtag_write illegal out_length=3262 (max=2048)
Error: usb_bulk_write failed (requested=3262, result=-1)
Error: jlink_tap_execute, wrong result -107 (expected 1629)
Error: jlink_tap_append_step: overflow
Segmentation fault



Thanks,
Ed Despard
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to