-
-
Notifications
You must be signed in to change notification settings - Fork 71
Arduino Digispark support #364
Comments
@per1234 I saw you marked it as a bug, why so? |
In the case of DigiSpark is a vUSB device, The micronucleus uploader doesn't use This requirement means the only way to upload to a pure USB device is to select some random serial port, even though it won't be used for the upload. Some people might not even have a serial port available for this purpose. A workaround the platform author to get around this limitation might be to not define the The Arduino IDE can handle this sort of use case fine, so it's certainly achievable. |
@per1234 |
@per1234 I have been researching this case. from the CLI, running Maybe there's something wrong with the upload recipe in the platform definition? |
Same here.
This is because the platform is not designed for use with "Upload Using Programmer". I don't know why they added that "micronucleus" programmer because it can't be used. You need to do a standard "Upload":
Remove the
|
@per1234 |
For the record; to properly support this use-case in the new IDE, we have to remove all premature checks on the IDE side before giving back the control to the CLI to verify/upload. This means we cannot warn the user if a board is not selected and the user verifies. We also cannot notify the user if she wants to upload and no board/port is picked. Current state: |
Proposed changes: As one can see 👆, we cannot distinguish between the "no board was selected" and "the core is not installed for the selected board" cases. Both results in a no FQBN was set error. This is tricky, when no programmer is selected, the upload using programmer will trigger an upload. There is no dedicated gRPC API for upload using programmer, this means, if the user does not set a programmer but performs upload using programmer, it will result in a common upload call on the CLI. |
I did another iteration with arduino/arduino-cli#1045 and it works as expected:
I see the expected error, instead of the silent upload. |
Hey dudes, is there already any nightly build containing support for Digispark board? 😅 Thank you! |
@silvanocerza, could you try with the latest nightly build? |
|
@kittaakos, I have been trying the latest build ( The full steps used to try the Arduino Digispark ATtiny85:
At this step, the IDE reported the following errors:
Additional information:
|
Thanks for getting back with the details, @silvioprog. I wanted to verify it with the CLI, I do not have the board, but I could not even compile the sketch.
|
@ubidefeo, could you please help to verify the compilation with the CLI? The IDE cannot do much with the |
It would be nice to add Arduino Digispark support (ATtiny85-based board).
When we try to upload the firmware (just a blink example), it raises the following error:
however, when we try to configure the port, it shows only
NO PORTS DISCOVERED
, as following:The text was updated successfully, but these errors were encountered: