mean00 / swindle

A custom version of the blackMagic probe with rust in it
5 stars 1 forks source link

How high the frequency of RVSWD can achieve till now? #1

Open llinjupt opened 2 months ago

llinjupt commented 2 months ago

Hi mean00,

First of all, thanks for you great effort and hardwork.

I wonder how high the frequency of RVSWD CLK can achieve till now? I have noticed that there are variants of probes from WCH, such as WCH-LINK and WCH-LINKE. After observing on a scope, it seems that WCH-LINK only works at about 1MHz but WCH-LINKE can work at about 7-8MHz. From a bit of researching, WCH-LINKE seems it can switch to the faster frequqncy by configuring some extra registers.

Does swindle support the faster version like WCH-LINKE? Thanks.

mean00 commented 2 months ago

Hi At the moment it does not go very high (like < 1 Mhz) there are errors when going higher I dont know if it is because the protocol has been only partially reverse engineered (timing issue ?, signal integrity ?) or if there is another reason. That means an overall flashing speed of only ~ 5 kB/s, which is very low. NB: To have a faster workflow, i put the code in ram, it is very fast to upload code there , debug it, and when happy put it in flash. (I added support for sw breakpoint to swindle in order for it to work).

mean00 commented 1 month ago

I did a quick check, it works up to ~ 1.5 Mhz then it doesnt Do you have info about these extra registers ?

mean00 commented 1 month ago

Nb: This is true for WCH mode, in ARM mode it can go higher