Open full view…

SWD (ARM Serial Wire Debug) protocol?

Maurits van Dueren
Tue, 06 Feb 2018 09:36:43 GMT

Hi. SWD is ARM and STM32 alternative to JTAG. It is what the STLink uses, and therefore pretty much the default STM32 programming method. I have an old Scanalogic-2. I realize it is old but up until now worked for me. I would consider a new ScanaQuad. But it seems the ScanaQuad (or rather Studio V3) also does not support SWD protocol. Anyone knows if that is in the works, or if there are 3rd party decoders? I did find this command line utility, but it is not as easy to use: https://github.com/hackocopter/SWD-Hacking/blob/master/SWD-Analyzer/swd_analyzer.c Thanks

Ibrahim KAMAL
Tue, 06 Feb 2018 18:34:27 GMT

Hi, Thank you for your message. SWD is on our backlog of decoders to develop. This is totally something that SQ and ScanaStudio can handle. When do you need it? I'll see if i can rush things on this decoder :)

Andrew Bish
Thu, 30 Aug 2018 03:01:05 GMT

Hi Ibrahim, how is that SWD decoder coming along (Feb?) I just bought a ScanaQuad and need to use it. thanks

Ibrahim KAMAL
Fri, 31 Aug 2018 09:37:43 GMT

I'll have a meeting with my team next week and get back to you :)

Tue, 23 Jun 2020 13:41:28 GMT

hi Ibrahim, do you have any news on this script as ive recently brought the sq100 specifically for this task, im going to attempt to write something that might work but even an unfinished version from yourself would really help in this instance

Ibrahim KAMAL
Tue, 23 Jun 2020 18:35:32 GMT

Hi, We do have someone on the team (Corentin) working full time on the scripts, he's actually working on SDIO but i believe he'll be finished soon. We hadn't decided what's planned next, but SWD would be a very good choice - I'll get that info to him right away!

Tue, 23 Jun 2020 21:42:21 GMT

i didnt expect such a fast response if im honest ahah thanks for the update. ive been banging my head against my keyboard trying to get swd working between an esp32 updating a psoc 5lp and to simply being able to snip the data while its going on to troubleshoot will really help

Ibrahim KAMAL
Tue, 23 Jun 2020 22:13:35 GMT

if you could send us a couple of ScanaStudio captures of SWD trafic (support@ikalogic.com) that would be great, we'll add it to our test cases

Tue, 23 Jun 2020 23:14:46 GMT

i shall have to once i get back into the office in the morning. The beginning acquire packet, start protocol packets and send/recieve packets are the same but there will be a little extra data within the send transmission from host to target compared to the standard SWD implementation as the target mcu in this case is a psoc 5lp which has another module that intercepts the data before its sent through to the dap connected to the cpu. just wanted to mention if you noticed irregularities

Ibrahim KAMAL
Wed, 24 Jun 2020 07:27:54 GMT

Roger that!