p1ne / arduino-leonardo-uploader

Simple wrapper for avrdude to allow firmware upload to Arduino Leonardo from command line
9 stars 13 forks source link

Get Errors when run the bat file #5

Open ashasingh2018 opened 6 years ago

ashasingh2018 commented 6 years ago

Hi, I am running this on Windows 10. I get the below error when I run my modified upload.bat file:

I downloaded it and modified it for my files and com port. But I get below failure C:\Users\asingh\Downloads\arduino-leonardo-uploader-master\windows>upload.bat find: USB Serial Device (COM10): No such file or directory find: Arduino Leonardo bootloader: No such file or directory

I am attaching the zip file of my modified version of the uploader. I see my device through this command C:\Users\asingh\Downloads\arduino-leonardo-uploader-master\windows>wmic path Win32_SerialPort get DeviceID^,Caption^,Description^,Name^,ProviderType /format:list

Caption=USB Serial Device (COM10) Description=USB Serial Device DeviceID=COM10 Name=USB Serial Device (COM10) ProviderType=Modem Device

Is there a way you could see what I am doing wrong? Thank you for help, Asha

arduino-leonardo-uploader-master.zip Thank you for your help, Asha

p1ne commented 6 years ago

Can you try to run bat file from Administrator? I will check on Win 10, but no earlier than next week

ashasingh2018 commented 6 years ago

Hi, Thank you for your reply.
I created another bat file from https://stackoverflow.com/questions/43016993/how-can-i-force-a-leonardo-to-reset-with-avrdude/44823174#44823174 into the attached temp.bat and modified using findstr instead of FIND and it worked for me. Thank you for your help in other files. Appreciate.

temp.bat.TXT

bleughb commented 3 years ago

Hi, Thank you for your reply. I created another bat file from https://stackoverflow.com/questions/43016993/how-can-i-force-a-leonardo-to-reset-with-avrdude/44823174#44823174 into the attached temp.bat and modified using findstr instead of FIND and it worked for me. Thank you for your help in other files. Appreciate.

temp.bat.TXT

THANKYOU for this.....it worked wonderfully for me

mcuee commented 2 years ago

Similar experience here, I am using a different fix though -- but the same thing is to add a delay.

But I think my fix is not proper and the above temp.bat may be a better one.