Hello,

i try to figure out if your v2 code path works with stm8l (stlink v1) too. What 
i can see, except
some not supported things, the get version command works, the correct buffer 
was returned (0x10 0x03
0x83 0x04 0x44 0x37).

So things can be made simpler in openocd.


Regards,

Mathias

On 21.02.2012 11:58, Uwe Bonnes wrote:
>>>>>> "Mathias" == Mathias K <[email protected]> writes:
> 
>     Mathias> Hello, this doesn't work for stm8l yet:
> 
>     Mathias> 2012-02-21T11:37:53 DEBUG src/stlink-common.c: st vid = 0x0483
>     Mathias> (expect 0x0483) 2012-02-21T11:37:53 DEBUG src/stlink-common.c:
>     Mathias> stlink pid = 0x3744 2012-02-21T11:37:53 DEBUG
>     Mathias> src/stlink-common.c: stlink version = 0x1 2012-02-21T11:37:53
>     Mathias> DEBUG src/stlink-common.c: jtag version = 0x0
>     Mathias> 2012-02-21T11:37:53 DEBUG src/stlink-common.c: swim version =
>     Mathias> 0x3
> 
> What did you try? Texane stlink doesn't handle the STM8 in any way, beside
> being able to talk with the stlink-v1. But it doesn't do any sensible stm8
> commands, and so the stall seems sensible.
> 
> Here a test with a stm32 discovery board:
> 
>> /spare/bon/stm/stlink/flash/st-flash read test 0x08000000
> 2012-02-21T11:54:17 INFO src/stlink-common.c: Loading device parameters....
> 2012-02-21T11:54:17 INFO src/stlink-common.c: Device connected is: \
>  F1 Medium-density Value Line device, id 0x10016420
> 2012-02-21T11:54:17 INFO src/stlink-common.c: SRAM size: 0x2000 bytes \
>  (8 KiB), Flash: 0x20000 bytes (128 KiB) in pages of 1024 bytes
>> xxd test |head
> 0000000: 0020 0020 2100 0008 8100 0008 8300 0008  . . !...........
> 0000010: 024b 00e0 00bf 013b fcd2 7047 a086 0100  .K.....;..pG....
> 0000020: 144b 10b5 9a69 0024 42f0 1402 9a61 124b  .K...i.$B....a.K
> 0000030: 1122 5a60 114b 0d3a 1a60 fff7 e9ff 0134  ."Z`.K.:.`.....4
> 0000040: 14f0 010f 0d4b 0c4a 14bf 4ff4 8071 4ff0  .....K.J..O..qO.
> 0000050: 8071 14f0 040f 9b68 1161 05d0 13f0 010f  .q.....h.a......
> 0000060: 02d1 4ff4 0072 01e0 4ff0 0072 024b 1a61  ..O..r..O..r.K.a
> 0000070: e3e7 00bf 0010 0240 0010 0140 0008 0140  .......@...@...@
> 0000080: 7047 7047 0063 3461 3134 6266 3466 6634  pGpG.c4a14bf4ff4
> 0000090: 3830 3731 3466 6630 3830 3731 3134 6630  80714ff0807114f0
> 
> Bye


------------------------------------------------------------------------------
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