Arduino leonardo not detected after upload a hex file

hello everyone, i have a problem with arduino leonardo, i successfully uploaded a .hex file using xloader. but the problem is that after success, it is not detected anymore, i hope you guys understand what i mean and give me advice, thank you

I am curious what this hex file was? Is there a reason you can't use the Arduino IDE?

If you quickly press the reset button twice does the board show up?

yes, it show up as bootloader

Upload something like the Blink example, then the board should be ok.

Was the hex file you uploaded compiled for a Leonardo (atmega32u4)? If not, then it will not work.

i can upload example project in IDE normally.
here the video i make https://www.youtube.com/watch?v=tQDTLt0bnnM

i just follow the tutorial how to make steering wheel using arduino from here [DIY] Steering Wheel + Pedal gas & rem + Shifter | KASKUS

I assume that you mean "after (double-)tapping the reset on the Leonardo".

When compiling in the IDE for a 32U4 based board like the Leonardo, part of the code that is compiled contains functionality for detection of the serial port on the board and for reaction on the reset.

  1. The hex file that you did upload using Xloader might not have that functionality in it and as a result the board's serial port is no longer detected when the board is connected. This will be the case if that hex file was not generated by the IDE on your system and you don't know what exactly is in it.
  2. Bugs in the code can prevent the operating system from detecting the board or from reacting on the software reset.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.