john1993 and I have exchanged thoughts and his specific needs is in the area of academia where 95% is simply not good enough.I think john1993 is simply summarizing his pleasure and displeasure with the state of things
I've attached a new batch file (A.BAT) that not only compiles but can flash the chip and then run the program all with a single key. No need to touch the target board at all anymore. This has major productivity advantages compared to the popular GUI/IDE approach. One requirement is that the STM flash demo utility be installed in a root folder called "STMFLASH". Note that you now need to connect DTR from the USB/serial dongle to pin 7 (nrst)
@john1993Do you have Boot0 pulled high all the time ?As far as I can tell all that is happening is that DTR is being used to reset the device so that it goes into serial bootloader mode.So if you want to run the program, standalone you would need to connect jump-link Boot0 LOW again?
yes, you have now described the situation perfectly.turns out there is no need to keep toggling boot0. no need at all to ground during development. for stand alone there is no need to ever bring it high. you will notice in the eevblog thread it started out with a switch attached then described as hardwired later on.
stm32flash.exe -i dtr,rts,-dtr: \\.\COM21
congratulations. definitely a step in the right direction. you might investigate the one wire dtr method as a better alternative to button pushing for most windows users. no special programming required and no rts which, unlike dtr, has been proven in this forum to be unpredictable with avr arduino. a simple batch file mod integrates into rogers setup with ease.
I've no reason to believe that RTS is any more reliable than DTR, so I think I would have to say "citation needed" on that. So far I've found a thread saying it is better to use RTS than DTR. And anyway, we are doing STM32, not AVR, so any problems with AVR may not be relevant.
there are probably a few dozen "silent majority" who have spent much time lurking this forum who know exactly what im referring to. verified myself with personal experience. well documented and iirc also a part of the official arduino manuals. schedule does not allow me to do research for you atm so ill just say "google is your friend" and leave that as an after class exercise.