Quote:It sounds like you need to buy an avrisp mkII or jtag ice3 and to use a normal Atmel Studio project without Visual Micro (and Arduino) and without serial upload.
I -can- already program the Pro Micro by running the avrdude command while the Pro Micro is in bootloader mode (for 8 seconds). That mode can be 'called' with the 1200 baud port open/close and with a double-tap on reset. (more info here:
https://dlnmh9ip6v2uc.cloudfront.net/datasheets/Dev/Arduino/Boards/32U4Note.pdf). So, basically, I can flash with avrdude while the board is in the bootloader mode. The thing is, visual micro does that MUCH, MUCH better (not overriding the bootloader, opening/closing the port at 1200 baud, letting me pick the port much easily)
Quote:I don't understand, if you loose the COM port how does Visual Micro or the Arduino Ide upload?
(as far as I know, this is the same with the Leonardo, to which the Pro Micro is very much alike) There are two ports, one for the normal usage and one for the bootloader. The 1200 baud connection is opened on the normal port, the board resets and the program is uploaded on the bootloader port. Again, this works flawlessly with Visual Micro/Arduino IDE. When my port is gone, I manually reset the board (double-tap on the reset button) and I upload a blank sketch with the arduino IDE or Visual Micro. This fixes everything.
Quote:There are rules for an Arduino code. It is not just a matter of adding your own core unless you have defined it in the correct location with an arduino.h. In Visual Micro this is more configurable than in the Arduino ide but I don't think this is what you need to do.
(I might not understand correctly what you mean) I am already 'set' on port manipulation, I can pull the init() function from the source code, the delay() function (or write my own). I can #define HIGH, LOW, INPUT, whatever. I don't really need access to the main() function, but it would be a bonus. I asked this question because I've seen just how configurable Visual Micro is and I've wondered if there is a way to use a trick (either with a custom board or with something else) to keep the uploading functionality, but not to be forced to use the arduino headers and core (just plain AVR C), because this kind of bloats the code. Basically to use an empty core.
Thanks for the extension, it's very useful even if I can't find a solution to this.