---

** [tickets:#300] Incorrect flash detection, stm32f07x**

**Status:** new
**Milestone:** 0.11.0
**Created:** Sun Mar 28, 2021 02:33 PM UTC by Alex
**Last Updated:** Sun Mar 28, 2021 02:33 PM UTC
**Owner:** Spencer Oliver


With 0.10.0 which i build from git, all works as expected

~~~
> flash info 0
device id = 0x20016448
flash size = 64kbytes
#0 : stm32f1x at 0x08000000, size 0x00010000, buswidth 0, chipwidth 0
        #  0: 0x00000000 (0x800 2kB) not protected
        #  1: 0x00000800 (0x800 2kB) not protected
        #  2: 0x00001000 (0x800 2kB) not protected
        #  3: 0x00001800 (0x800 2kB) not protected
        #  4: 0x00002000 (0x800 2kB) not protected
        #  5: 0x00002800 (0x800 2kB) not protected
        #  6: 0x00003000 (0x800 2kB) not protected
        #  7: 0x00003800 (0x800 2kB) not protected
        #  8: 0x00004000 (0x800 2kB) not protected
        #  9: 0x00004800 (0x800 2kB) not protected
        # 10: 0x00005000 (0x800 2kB) not protected
        # 11: 0x00005800 (0x800 2kB) not protected
        # 12: 0x00006000 (0x800 2kB) not protected
        # 13: 0x00006800 (0x800 2kB) not protected
        # 14: 0x00007000 (0x800 2kB) not protected
        # 15: 0x00007800 (0x800 2kB) not protected
        # 16: 0x00008000 (0x800 2kB) not protected
        # 17: 0x00008800 (0x800 2kB) not protected
        # 18: 0x00009000 (0x800 2kB) not protected
        # 19: 0x00009800 (0x800 2kB) not protected
        # 20: 0x0000a000 (0x800 2kB) not protected
        # 21: 0x0000a800 (0x800 2kB) not protected
        # 22: 0x0000b000 (0x800 2kB) not protected
        # 23: 0x0000b800 (0x800 2kB) not protected
        # 24: 0x0000c000 (0x800 2kB) not protected
        # 25: 0x0000c800 (0x800 2kB) not protected
        # 26: 0x0000d000 (0x800 2kB) not protected
        # 27: 0x0000d800 (0x800 2kB) not protected
        # 28: 0x0000e000 (0x800 2kB) not protected
        # 29: 0x0000e800 (0x800 2kB) not protected
        # 30: 0x0000f000 (0x800 2kB) not protected
        # 31: 0x0000f800 (0x800 2kB) not protected
STM32F07x - Rev: unknown (0x2001)
~~~

but with 0.11.0 from homebrew i got

~~~
> flash probe 0
device id = 0x20016448
flash size = 64kbytes
flash 'stm32f1x' found at 0x08000000

> flash info 0
#0 : stm32f1x at 0x08000000, size 0x00010000, buswidth 0, chipwidth 0
        #  0: 0x00000000 (0x2000 8kB) not protected
        #  1: 0x00002000 (0x2000 8kB) not protected
        #  2: 0x00004000 (0x2000 8kB) not protected
        #  3: 0x00006000 (0x2000 8kB) not protected
        #  4: 0x00008000 (0x2000 8kB) not protected
        #  5: 0x0000a000 (0x2000 8kB) not protected
        #  6: 0x0000c000 (0x2000 8kB) not protected
        #  7: 0x0000e000 (0x2000 8kB) not protected
STM32F07x - Rev: unknown (0x2001)
~~~

block size is incorrect, according to ST reference manual, page size is 2kb, 
not 8kb.


---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to