diff options
author | Mike Jagdis <mjagdis@eris-associates.co.uk> | 2018-08-08 21:34:04 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-09-06 00:52:37 +0200 |
commit | 8e05502522f916972be70009bceb2e7db505a125 (patch) | |
tree | 3b648debcc7bd178fe5e5e115b19eb9e23b02c16 /swim/flash_prog/README | |
parent | 44d683521050b5ba48f367fb9cfffc6688d1318f (diff) | |
download | sigrok-dumps-8e05502522f916972be70009bceb2e7db505a125.tar.gz sigrok-dumps-8e05502522f916972be70009bceb2e7db505a125.zip |
Samples for the decoder for STM8 series MCUs SWIM protocol.
Signed-off-by: Mike Jagdis <mjagdis@eris-associates.co.uk> (github: mjagdis)
Diffstat (limited to 'swim/flash_prog/README')
-rw-r--r-- | swim/flash_prog/README | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/swim/flash_prog/README b/swim/flash_prog/README new file mode 100644 index 0000000..547d83c --- /dev/null +++ b/swim/flash_prog/README @@ -0,0 +1,39 @@ +------------------------------------------------------------------------------- +SWIM +------------------------------------------------------------------------------- + +This is a capture of an ST-Link V2 programming an STM8 using the SWIM protocol. + +Details: +https://www.st.com/content/ccc/resource/technical/document/user_manual/ca/89/41/4e/72/31/49/f4/CD00173911.pdf/files/CD00173911.pdf/jcr:content/translations/en.CD00173911.pdf + + +Logic analyzer setup +-------------------- + +The logic analyser used was a DreamSourceLab DSLogic (at 10MHz). + + Probe Target + ------------------ + 0 RST + 1 SWIM + + +sample1.sr +---------- + +Using stm8flash with an ST-Link V2 adapter to program an STM8S003F3. + +Command line: + + $ stm8flash -c stlinkv2 -p stm8s003f3 -s flash -w prog.ihx + +stm8flash is modified both for correctness and to generate the test sequences. +The updated version can be found at https://github.com/mjagdis/stm8flash. + +A complete flash programming operation. SWIM is enabled and set to high +speed mode (notice how the pulse width and period decreases after the +initial chatter). A read of the affected memory region is made, compared to +the data to be written and those blocks that contain differences are written +back. Finally an SRST SWIM command is sent to terminate the conversation +and reset the target. |