platformio / platform-atmelavr

Atmel AVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelavr
Apache License 2.0
139 stars 105 forks source link

Setting fuses does not work for users with paths with spaces in their name. #184

Closed spacecowgirl314 closed 4 years ago

spacecowgirl314 commented 4 years ago

Running Set Fuses with custom fuses in the ini file or any variant task that also sets fuses results in this. Building in release mode Selected fuses: [lfuse = 0xE1, hfuse = 0xDD] avrdude -p attiny85 -C C:\Users\Chloe Stars\.platformio\packages\tool-avrdude\avrdude.conf -c usbtiny -Ulock:w:0xff:m -Uhfuse:w:0xDD:m -Ulfuse:w:0xE1:m avrdude: can't open config file "C:\Users\Chloe": No such file or directory avrdude: error reading system wide configuration file "C:\Users\Chloe"

I was able to correct the issue by manually executing and providing quotes around the config file. avrdude -p attiny85 -C "C:\Users\Chloe Stars\.platformio\packages\tool-avrdude\avrdude.conf" -c usbtiny -Ulock:w:0xff:m -Uhfuse:w:0xDD:m -Ulfuse:w:0xE1:m