Hi,

I'm using your OpenOCD tool with Eclipse IDE
At the moment I'm working on the STM3220-G Eval board with the STM32F207IG 
microcontroller on it.
After I launched the OpenOCD tool the following messages are displayed:

Open On-Chip Debugger 0.5.0-dev (2010-10-28-22:42)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
Info : clock speed 1000 kHz
Info : JTAG tap: stm32.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 
0xba00, ver: 0x4)
Warn : JTAG tap: stm32.cpu       UNEXPECTED: 0x4ba00477 (mfg: 0x23b, part: 
0xba00, ver: 0x4)
Error: JTAG tap: stm32.cpu  expected 1 of 1: 0x3ba00477 (mfg: 0x23b, part: 
0xba00, ver: 0x3)
Info : JTAG tap: stm32.bs tap/device found: 0x06411041 (mfg: 0x020, part: 
0x6411, ver: 0x0)
Warn : JTAG tap: stm32.bs       UNEXPECTED: 0x06411041 (mfg: 0x020, part: 
0x6411, ver: 0x0)
Error: JTAG tap: stm32.bs  expected 1 of 5: 0x06412041 (mfg: 0x020, part: 
0x6412, ver: 0x0)
Error: JTAG tap: stm32.bs  expected 2 of 5: 0x06410041 (mfg: 0x020, part: 
0x6410, ver: 0x0)
Error: JTAG tap: stm32.bs  expected 3 of 5: 0x16410041 (mfg: 0x020, part: 
0x6410, ver: 0x1)
Error: JTAG tap: stm32.bs  expected 4 of 5: 0x06414041 (mfg: 0x020, part: 
0x6414, ver: 0x0)
Error: JTAG tap: stm32.bs  expected 5 of 5: 0x06418041 (mfg: 0x020, part: 
0x6418, ver: 0x0)
Error: Trying to use configured scan chain anyway...
Warn : Bypassing JTAG setup events due to errors
Info : stm32.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection from 3333
Info : device id = 0x20016411
Warn : Cannot identify target as a STM32 family.
Error: auto_probe failed -902

I looked in the stm32x.c source code and saw that the STM2xx (0x411 type) is 
not handled by the static int stm32x_probe(struct flash_bank *bank) function.
The main difficulty comes from the flash memory architecture from the 
STM32F207; the flash page size is not the same for all pages: 4x16K, 1x64K, 
7x128K
(RM0033 Reference manual from ST)
Table 2. Flash module organization

Block Name      Block base addresses            Size
Main memory
Sector 0        0x0800 0000 - 0x0800 3FFF       16 Kbyte
Sector 1        0x0800 4000 - 0x0800 7FFF       16 Kbyte
Sector 2        0x0800 8000 - 0x0800 BFFF       16 Kbyte
Sector 3        0x0800 C000 - 0x0800 FFFF       16 Kbyte
Sector 4        0x0801 0000 - 0x0801 FFFF       64 Kbyte
Sector 5        0x0802 0000 - 0x0803 FFFF       128 Kbyte
Sector 6        0x0804 0000 - 0x0805 FFFF       128 Kbyte
......
Sector 11       0x080E 0000 - 0x080F FFFF       128 Kbyte


System memory 0x1FFF 0000 - 0x1FFF 77FF         30 Kbyte
OTP             0x1FFF 7800 - 0x1FFF 7A0F       528 bytes
Option bytes    0x1FFF C000 - 0x1FFF C00F       16 bytes

I don't know how modifying OpenOCD to get this case with different page size 
managed?
I'll try to modify my stm32x_probe function (OpenOCD STM32x.c) to get my 
evaluation working.
If you need more information about my case, please ask me per mail.

Best regards.

Sylvain Weber



_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to