Re: [Openocd-development] Disable stm32x block write by default?

2010-11-14 Thread Øyvind Harboe
On Sun, Nov 14, 2010 at 10:58 PM, Freddie Chopin wrote: > On 2010-11-14 18:49, Øyvind Harboe wrote: >> >> The problem is that the target is crashing while executing the programming >> algorithm, so it never completes. > > You mean crashing like having Hard Fault exception or sth like this? Yes.

Re: [Openocd-development] Disable stm32x block write by default?

2010-11-14 Thread Freddie Chopin
On 2010-11-14 18:49, Øyvind Harboe wrote: The problem is that the target is crashing while executing the programming algorithm, so it never completes. You mean crashing like having Hard Fault exception or sth like this? 4\/3!! ___ Openocd-development

Re: [Openocd-development] Disable stm32x block write by default?

2010-11-14 Thread Øyvind Harboe
> As I cannot reproduce, if this one is repeating at your side, maybe try > injecting some messages around there to see whether that's the exact point > of problems? The problem is that the target is crashing while executing the programming algorithm, so it never completes. -- Øyvind Harboe Ca

Re: [Openocd-development] Disable stm32x block write by default?

2010-11-14 Thread Freddie Chopin
On 2010-11-09 10:16, Øyvind Harboe wrote: Error: 793 186992 stm32x.c:582 stm32x_write_block(): error executing stm32x flash write algorithm Error: 794 186993 core.c:98 flash_driver_write(): error writing to flash at address 0x0800 at offset 0x (-302) On 2010-11-14 16:13, Øyvind Harb

Re: [Openocd-development] Disable stm32x block write by default?

2010-11-09 Thread freddie_chopin
Default stm32.cfg script, STM32F103RB chip, OpenOCD build from 28.10.2010. Everything works perfectly fine without any changes. Open On-Chip Debugger > reset halt JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3) JTAG tap: stm32.bs tap/device found: 0x16410041

[Openocd-development] Disable stm32x block write by default?

2010-11-09 Thread Øyvind Harboe
If I disable block writes, then the sequence below works fine. This is with a STM32F103ZEH6 and the default target/stm32.cfg script. The flash programming algorithm crashes with a "double fault". Reducing WORKAREASIZE to 0x1000 did not help. reset halt flash probe 0 stm32x unlock 0 reset init fla