At the moment I have resorted to using an external USB-serial adapter and set up my code to use Serial1 instead of Serial, but having an extra dongle is an ugly workaround. Is there some way of forcing renumeration at boot, and is there something that could be done about the ~17 seconds wait-time, or is it just something one has to live with?
But i cant quite recall if you need to add just the one about Serial USB or whether you need to also add the one about the bootloader to the STLInk upload menu option.
To be honest, these definitions have confusing names, and we should probably clean up the code and change the names..
But most people use Serial USB when they are using the bootloader
But I am pretty sure that the latest code is enumerated correctly while usb is connected and the st-link is used for download. Compiler 4.9 is also working….
I am compiling source code by codeblocks, but I think this is irrelevant of enumeration anyway…..
BTW: If you have the Arduino Serial Console open when you press reset, it is going to probably enumerate on a different ttyACM number
#!/bin/bash
openocd -f ~/openocd_cfg/ebay_stlink.cfg -c "program $4 verify reset exit 0x08000000"
exit
#!/bin/bash
openocd -f interface/stlink-v2.cfg -f board/stm32100b_eval.cfg -c 'reset_config none' -c "program $4 verify reset exit 0x08000000"
exit $?
I merged the development branch into the master a few months ago.
Actually,i think the development branch is behind the master, as there have been a few minor changes in the last few weeks and I have not merged the master back into the development branch.
However, because I forgot to merge back into the development branch recently, it does rule out the recent changes to making some vars in the USB code into volatile ( which was to fix issues with gcc 4.9 optimisation)
you could try checking out an older version ? ( though Im not sure how far you would need to go back), to see if this ever worked
-rick
I noticed the latest version of the STM windows Stlink CLI, changed so that it requires a keystroke (enter) to exit, which was causing problems for the IDE.
But as I copied the CLI exe into the repo for the libmaple core, months ago, I didnt think it was an issue with that core. (As people would, on windows, be running the old version)
When i was messing around with the HALMAX core, I ended up removing the Run command as the reset command on its own seemed to be all that was needed, to get it to run the binary that had just been uploaded.
But the HALMX core doesn’t have Serial USB at the moment, so I wasn’t testing that aspect.
For those running modem manager there is a udev env variable that can be set to inform modem manager that the maple serial port isn’t a modem. It skips the AT cmd dance altogether. I took the simpler route and just uninstalled modem manager.
<…> I took the simpler route and just uninstalled modem manager.



