Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for menu to wait for Pro Micro and similar board that need to reset with jumper #2409

Open
3 tasks done
Thaina opened this issue Apr 2, 2024 · 0 comments
Open
3 tasks done
Labels
type: enhancement Proposed improvement

Comments

@Thaina
Copy link

Thaina commented Apr 2, 2024

Describe the request

Since there is a board that has a short period of time to reset to become serial port that ready to push and flash, I wish there could be command in IDE that can wait for specific port to exist before upload and flash command to executed

Describe the current behavior

The command to compile and upload only work immediately and throw error if the port is not yet become COM serial, which always happen when just a bit timing mismatch

Arduino IDE version

any

Operating system

N/A

Operating system version

N/A

Additional context

I can make my own batch file like this and this is behaviour I wish it should be. By specifying the COM port it should just loop to wait and see if the target COM port become existed

@echo off
FOR /L %%i in (0,0,1) DO (
	FOR /F %%p IN ('wmic path Win32_SerialPort get DeviceID') DO (
		IF %%p == %1 (
			call %avrdude%\bin\avrdude.exe -C%avrdude%\etc\avrdude.conf -p m32u4 -P %1 -c avr109 -Uflash:w:./firmware.hex:i
			EXIT 0
		)
	)
	TIMEOUT 1
)

But it would be more productive to support it inside IDE directly.

It could be option when the IDE fail to upload to target port, just retry with popup until success or cancel

Is it possible?

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details
@Thaina Thaina added the type: enhancement Proposed improvement label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

1 participant