digistump / DigistumpArduino

Files to add Digistump support (Digispark, Pro, DigiX) to Arduino 1.6.X (1.6.5+)
934 stars 377 forks source link

Can't use it with arduino-cli #104

Closed XhstormR closed 4 years ago

XhstormR commented 4 years ago

The following error occurs when using arduino-cli:

C:\Users\Leo\test>arduino-cli compile --fqbn digistump:avr:digispark-tiny sketch_nov14a
Sketch uses 2758 bytes (45%) of program storage space. Maximum is 6012 bytes.
Global variables use 96 bytes of dynamic memory.
Error during build: copying output file: open C:\Users\Leo\AppData\Local\Temp\arduino-sketch-900304DE8A4863510F9A5FC3C2DE273D/{recipe.output.tmp_file}: The system cannot find the file specified.

C:\Users\Leo\test>arduino-cli upload --fqbn digistump:avr:digispark-tiny sketch_nov14a -p COM1
Error during Upload: property 'recipe.output.tmp_file' not defined

I found that this bug has been fixed, see https://github.com/arduino/arduino-cli/issues/193, but it has not been released for a long time. Can you release a new version?

ryarnyah commented 4 years ago

You need to add recipe.output.tmp_file={build.project_name}.hex inside packages/digistump/hardware/avr/1.6.7/platform.txt

ArminJo commented 4 years ago

Try the optimized digistump version, it fixes the error and enables around 20% more FLASH.

ArminJo commented 4 years ago

Please could you be so kind and close the issue, since this repo is abandoned. Thank you! Armin