CrazyRedMachine / LUFAHybridFightstick

Nintendo switch AND XInput controller for Arduino Leonardo and Pro Micro
GNU General Public License v3.0
52 stars 16 forks source link

How to reflash board? #3

Closed going2town96 closed 3 years ago

going2town96 commented 3 years ago

I'm using a sparkfun qwic pro micro and the upload worked but I got the pinout wrong for my particular project and I noticed there's no COM port to upload new code anymore. How do I flash new code into the board?

CrazyRedMachine commented 3 years ago

sorry it's dead :(

nah j/k, there is a pin labeled RST, what you have to do is briefly make that pin go in contact with GND when the arduino ide is looking for the board (you can wire an arcade button between RST and GND or since they are adjacent you can just prepare a flat screwdriver or something, click upload on the arduino ide, then once it's done compiling and shows "Uploading..." you use the screwdriver to make rst and gnd touch for one sec then you remove it, the board should then start flashing and the code will be uploaded).

If that doesn't work, you can try the second method : keep RST and GND in contact, click upload, when the IDE says "uploading", you release contact, then put in contact again briefly and release again. ( basically if it were with a button it would be "hold.... release push release")

going2town96 commented 3 years ago

I tried that, didn't work. I noticed my board has its own reset button, then found out on the board documentation that you have double tap the reset button to put the board into bootloader mode. So all I had to do was tap reset twice while it's uploading. Sorry for not checking my board documentation first.