Re: [Openocd-development] Flashing STM32 F2

2011-12-15 Thread Mathias K.
Hello,

you can try to use the offset parameter (flash bank address):

flash write_image image 0x0800


Regards,

Mathias

On 15.12.2011 01:31, Damjan Marion wrote:
 
 Hi,
 
 I tried to flash STM32 F2 in the same way like i do on F1 devices and hit 
 some issues:
 
 My 1st try was with stm32f2x mass_erase 0 but seems that there is no 
 subcommands registered.
 
 Help lists:
 
 stm32f2x
  stm32f2x flash command group (command valid any time)
 
 stm32f2x.c:
 
 static const struct command_registration stm32x_exec_command_handlers[] = {
   COMMAND_REGISTRATION_DONE
 };
 
 When I try to use flash write_image erase FILE i got:
 
 flash write_image erase hello.bin
 auto erase enabled
 wrote 0 bytes from file hello.bin in 0.000433s (0.000 KiB/s)
 
 Is this expected behavior or I'm hitting some specific issue?
 
 Thanks,
 
 Damjan
 
 
 
 ___
 Openocd-development mailing list
 Openocd-development@lists.berlios.de
 https://lists.berlios.de/mailman/listinfo/openocd-development

___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


Re: [Openocd-development] Flashing STM32 F2

2011-12-15 Thread Laurent Charpentier
 I tried to flash STM32 F2 in the same way like i do on F1
 devices and hit some issues:
 
 My 1st try was with stm32f2x mass_erase 0 but seems that
 there is no subcommands registered.

You can use the following command instead:
monitor flash erase_sector 0 0 11

Laurent

___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


Re: [Openocd-development] Flashing STM32 F2

2011-12-14 Thread Mathias K.
Hello,

the commands doesn't work for me too. You can use flash erase_sector and flash 
write_bank.


Regards,

Mathias

On 15.12.2011 01:31, Damjan Marion wrote:
 
 Hi,
 
 I tried to flash STM32 F2 in the same way like i do on F1 devices and hit 
 some issues:
 
 My 1st try was with stm32f2x mass_erase 0 but seems that there is no 
 subcommands registered.
 
 Help lists:
 
 stm32f2x
  stm32f2x flash command group (command valid any time)
 
 stm32f2x.c:
 
 static const struct command_registration stm32x_exec_command_handlers[] = {
   COMMAND_REGISTRATION_DONE
 };
 
 When I try to use flash write_image erase FILE i got:
 
 flash write_image erase hello.bin
 auto erase enabled
 wrote 0 bytes from file hello.bin in 0.000433s (0.000 KiB/s)
 
 Is this expected behavior or I'm hitting some specific issue?
 
 Thanks,
 
 Damjan
___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development