Open MichaelSaur opened 2 years ago
Currently flashing over this lib is very slow, i haven't had time to continue working on that. I only tested this lib with an STM32F1 with binary sizes up to 10k, perhaps you could dump the flash with another programmer and check up to where it was written?
In the meantime I was able to use openocd and flash the STM32 that way, executing the command from within golang. I already thought it has something to do with speed. Thank you anyway for the fast answer.
I am trying to flash a STM32F417ZGT6 with your go package from a Raspberry Pi Model 3B. I connected 3V3, GRND, SWDCLK to GPIO 26 and SWDIO to GPIO 20. I used your code from the readme but changed the GPIO-ports accordingly. When I start the flashing process the command line shows "Reading DHCSR = 03030003". Then nothing happens. In my understanding this means that the CPU is haltet. After somwhere between 10 and 20 minutes it throws the Error "Error verifying Flash memory!". My Binary File, that I'm trying to flash is about 135KB in size.