i just replaced the msys-1.0.dll with one that wasnt corruptedOh weird, which DLL did you replace with what?
also, not directed towards you, but how should i go about uploading the hex file i built to a leonardo r3?
i just replaced the msys-1.0.dll with one that wasnt corruptedOh weird, which DLL did you replace with what?
Ah ok, cool.i just replaced the msys-1.0.dll with one that wasnt corrupted
also, not directed towards you, but how should i go about uploading the hex file i built to a leonardo r3?
yeah, im using avrdude, but which command specifically would i use for a leonardo r3? i cant find much documentation on it and im inexperiencedAh ok, cool.
For the Arduino part, I'd recommend avrdude. It can flash hex files whereas the Arduino IDE cannot.
So apparently the Leonardo works a bit differently than other boards, in which a reset is required to actually upload to the baord. avrdude can't trigger this reset on its own, but someone made a wrapper that could help:yeah, im using avrdude, but which command specifically would i use for a leonardo r3? i cant find much documentation on it and im inexperienced
this kinda confuses me even more, so to flash joystick.hex to my r3, i want to rename it to firmware.hex, same folder as the .bat, and run that, but then what? reset the board using the button? sorry for all the questions >_>So apparently the Leonardo works a bit differently than other boards, in which a reset is required to actually upload to the baord. avrdude can't trigger this reset on its own, but someone made a wrapper that could help:
https://github.com/p1ne/arduino-leonardo-uploader
The .bat should do it on its own I think. I don't have a Leonardo to test with but I can take a look at the code.this kinda confuses me even more, so to flash joystick.hex to my r3, i want to rename it to firmware.hex, same folder as the .bat, and run that, but then what? reset the board using the button? sorry for all the questions >_>
that's what i did, but whenever i run it, the window says find: arduino leonardo: no such file or directory, and the same thing for the bootloader right below it, i thought i was doing this right, heres two screenshots for reference: https://i.snag.gy/P4cMlj.jpg https://i.snag.gy/Ms9z65.jpgThe .bat should do it on its own I think. I don't have a Leonardo to test with but I can take a look at the code.
Ok, you'll want to open the Windows device manager and find your device. Open the .bat file in a text editor and look for the text "SparkFun Pro Micro" and replace that with what your Arduino shows up as in the device manager. Then run the .bat
That looks right tho... Maybe try using the regular avrdude command and hitting the reset button manually? Might take a few tries to get the timing rightthat's what i did, but whenever i run it, the window says find: arduino leonardo: no such file or directory, and the same thing for the bootloader right below it, i thought i was doing this right, heres two screenshots for reference: https://i.snag.gy/P4cMlj.jpg https://i.snag.gy/Ms9z65.jpg
i finally got it to flash after forcing bootloader mode (pressing the button 3 times seems to be the combo for that) but now after plugging it into my switch (handheld mode) the light turns on, but nothing has happened for like 5 min, did i do something wrong?That looks right tho... Maybe try using the regular avrdude command and hitting the reset button manually? Might take a few tries to get the timing right
Might have to hit the reset button once more once it's plugged in. if not, I'd try remaking your image.c file and running the "make all" command again then re-flashingi finally got it to flash after forcing bootloader mode (pressing the button 3 times seems to be the combo for that) but now after plugging it into my switch (handheld mode) the light turns on, but nothing has happened for like 5 min, did i do something wrong?
still nothing after reflashing/trying the button/trying the default image, is this how the flashing should look? otherwise, im not really sure what else to tryMight have to hit the reset button once more once it's plugged in. if not, I'd try remaking your image.c file and running the "make all" command again then re-flashing
Looks like it flashed correctly. Could be an issue with something on your end. Try this hex file I compiled for the 32u4still nothing after reflashing/trying the button/trying the default image, is this how the flashing should look? otherwise, im not really sure what else to try
tried it, flashed it, and still no dice, maybe it doesnt work on 3.0.1 or i got a bad board? no ideaLooks like it flashed correctly. Could be an issue with something on your end. Try this hex file I compiled for the 32u4
usb c to usb a, which is plugged into the usb a to microusb cable for the board, and i put it directly into the switch, maybe i need to remove the joycons or something?Hmmm... Are you using a USB C to A adapter in handheld mode or the dock's USB ports?
No, that should work. I just compiled a new .hex file with the alternate repo instead of Shiny's, maybe it'll work:usb c to usb a, which is plugged into the usb a to microusb cable for the board, and i put it directly into the switch, maybe i need to remove the joycons or something?
that actually worked just fine, which is great, but my issue now is that im getting the same error from before using that build (but not shiny's)No, that should work. I just compiled a new .hex file with the alternate repo instead of Shiny's, maybe it'll work:
http://www.mediafire.com/file/pt9txl57q35dkce/Joystick.hex
So the hex file I compiled worked, but when you try and make a new one you get the error?that actually worked just fine, which is great, but my issue now is that im getting the same error from before using that build (but not shiny's)
yeah, but only using the secondary build, not shiny's (but shiny's doesnt work with my switch)So the hex file I compiled worked, but when you try and make a new one you get the error?
Ok, I see. Sounds like something might be installed improperly... MinGW is installed, right?yeah, but only using the secondary build, not shiny's (but shiny's doesnt work with my switch)