>>>>> "Szymon" == Szymon Modzelewski <[email protected]> writes:

    Szymon> Hi all, The current openocd git doesn't have usable stlink-v1
    Szymon> support.

    Szymon> Memory writes are completely broken (meaning they don't work at
    Szymon> all).  The current code tries to issue two SG commands and check
    Szymon> the status twice, while it should: -send the command -write the
    Szymon> actual data bytes -check the status

    Szymon> After reading texane's code it seems to me that all st-link
    Szymon> commands follow this pattern (although his code doesn't): -send
    Szymon> the command -optionally send or receive data bytes (depends on
    Szymon> the command) -read the SG status (v1 only)

You can also use the V2 code path and prepend the SCSI header to V1 cables,
as I have implemented in current stlink git. So no more code duplication.

Bye
-- 
Uwe Bonnes                [email protected]

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

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to