>>>>> "Andreas" == Andreas Fritiofson <[email protected]> writes:

    Andreas> On Thu, Apr 9, 2015 at 3:50 PM, Uwe Bonnes <
    Andreas> [email protected]> wrote:

    Andreas>     ...      Uwe> Why isn't the mww broken down as two mwb?
   
    Andreas>     Digging deeper, both mwh and mwb returned a Verify error,
    Andreas> as PLLON set PLLRDY and readback got 0x3(PLLRDY|PLLON) versus
    Andreas> 0x1 (PLLON) written.

    Andreas> WTF is the STLink doing here? Why readback a write?? Is the
    Andreas> firmware or our driver the culprit?

At first, it is clearly the firmware. The reply sent a JTAG Status code 
#define STLINK_JTAG_WRITE_VERIF_ERROR   0x0D

Otherwise OpenOCD doesn't know of this error and so perhaps reacts
inadequat. Maybe openocd should simply treat STLINK_JTAG_WRITE_VERIF_ERROR
as success.

I downgraded the firmware on a F4 Discovery to something really old and still
the error happens:
...
Info : 253 4 stlink_usb.c:515 stlink_usb_version(): STLINK v2 JTAG v21 API v2 
SWIM v0 VID 0x0483 PID 0x3748
...
Debug: 728 4942 hla_target.c:766 adapter_write_memory(): adapter_write_memory 
0x40023808 1 1
Debug: 729 4943 stlink_usb.c:394 stlink_usb_error_check(): unknown/unexpected 
STLINK status code 0xd
Debug: 730 4943 command.c:628 run_command(): Command failed with error code -4
User : 731 4943 command.c:546 command_print(): in procedure 'reset'
in procedure 'ocd_bouncer'
in procedure 'ocd_process_reset'
in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", 
line 246
in procedure 'stm32f4x.cpu' called at file "embedded:startup.tcl", line 368
in procedure 'ocd_bouncer'
in procedure 'mwb'

Bye
-- 
Uwe Bonnes                [email protected]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to