>>>>> "Claudio" == Claudio Lanconelli <[email protected]> 
>>>>> writes:

    Claudio> On 15/06/2016 11:45, Andreas Fritiofson wrote: Didn't you say
    Claudio> you had some corrupted option bytes on the target that failed
    Claudio> programming? Have you restored them? Or do they keep getting
    Claudio> corrupt? Especially the HW IWDG option can/will interfere with
    Claudio> the flashing algorithm. I suspect the "unlock" argument if the
    Claudio> option bytes get corrupted by OpenOCD. That step is not
    Claudio> performed as part of GDB load. Perhaps write (un-)protection is
    Claudio> not supported for the F7, Uwe?

    Claudio> Yes, I can confirm that on stm32f746 both 'write_image flash
    Claudio> erase unlock' and 'flash protect 0 0 last off' corrupt the
    Claudio> option bytes (IWDG_STOP IWDG_STDBY and WWDG_SW) and further
    Claudio> programming doesn't work anymore.

So some contribution to fix that issue is welcome!

    Claudio>     By the way, for flashing from the command line, use the
    Claudio> "program" script. E.g.
   
    Claudio>     openocd -f board/stm32f7discovery.cfg -c
    Claudio> "program Debug-MB1191B-0/LCDTest.elf verify reset exit"
   
    Claudio>     /Andreas

    Claudio> Interesting, where I can find the program script?

"-c " denotes an internal command, no script.

Bye
-- 
Uwe Bonnes                [email protected]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to