Hi,

The information presented by flash info about the protection status
points to something faulty. My target is a HITEX STR710 evalboard.
I am using v0.4.0-rc1-154-g3172be8 . The configuration script is the
default one from target/str710.cfg
This is the test case:

> flash protect_check 0
successfully checked protect state
> flash info 0
#0 : str7x at 0x40000000, size 0x00040000, buswidth 0, chipwidth 0
        #  0: 0x00000000 (0x2000 8kB) protected
        #  1: 0x00002000 (0x2000 8kB) protected
        #  2: 0x00004000 (0x2000 8kB) protected
        #  3: 0x00006000 (0x2000 8kB) protected
        #  4: 0x00008000 (0x8000 32kB) protected
        #  5: 0x00010000 (0x10000 64kB) protected
        #  6: 0x00020000 (0x10000 64kB) protected
        #  7: 0x00030000 (0x10000 64kB) protected
str7x flash driver info
> flash protect 0 0 last off
cleared protection for sectors 0 through 7 on flash bank 0
> flash protect_check 0
successfully checked protect state
> flash info 0
#0 : str7x at 0x40000000, size 0x00040000, buswidth 0, chipwidth 0
        #  0: 0x00000000 (0x2000 8kB) protected
        #  1: 0x00002000 (0x2000 8kB) protected
        #  2: 0x00004000 (0x2000 8kB) protected
        #  3: 0x00006000 (0x2000 8kB) protected
        #  4: 0x00008000 (0x8000 32kB) protected
        #  5: 0x00010000 (0x10000 64kB) protected
        #  6: 0x00020000 (0x10000 64kB) protected
        #  7: 0x00030000 (0x10000 64kB) protected
str7x flash driver info

At the last flash info 0 command I would have expected to get
"unprotected" for all the sectors.

Regards,
Edgar

-- 
Edgar Grimberg
System Developer
Zylin AS
ZY1000 JTAG Debugger http://www.zylin.com/zy1000.html
Phone: (+47) 51 63 25 00
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to