https://github.com/rogerclarkmelbourne/ ... ink_upload
I replaced it with this code and it works just fine.
Code: Select all
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
Is there some reason for all the arm waving and jumping up and down? The reason I even looked at this script is because when I used to upload with the original script, the user interface gets stuck in a non responsive state for like 30-40 seconds. I just have to sit there waiting for it to do something. Often I end up manually pressing the reset button to get it to reset. If I just use my replacement script, it loads bingo bango and resets itself and life goes on in a few seconds.
Why the drama?
BTW: None of my boards have a bootloader and I mostly use a usb dongle instead of the SERIAL_USB.