ATTinyCore icon indicating copy to clipboard operation
ATTinyCore copied to clipboard

[Bug] Upload with micronucleus fails with space in build path

Open smlz opened this issue 9 months ago • 0 comments

Description Uploading a sketch fails, when there is a space character in the build path (e.g. a username containing a space, which is strangely allowed by Windows).

Only the part after the space character is subsequently used as file name for the hex file, and thus fails.

Here is an example output when uploading the Blink sketch to a Digispark board (see third last line):

Sketch uses 542 bytes (8%) of program storage space. Maximum is 6586 bytes.
Global variables use 6 bytes (1%) of dynamic memory, leaving 506 bytes for local variables. Maximum is 512 bytes.
> Please plug in the device (will time out in 60 seconds) ... 
> Device is found!
connecting: 16% complete
connecting: 22% complete
connecting: 28% complete
connecting: 33% complete
> Device has firmware version 1.6
> Available space for user applications: 6012 bytes
> Suggested sleep time between sending pages: 8ms
> Whole page count: 94  page size: 64
> Erase function sleep duration: 752ms
> Error opening Schule\AppData\Local\arduino\sketches\0F721A30CECEDFCA4360432CABE06B96/Blink.ino.hex: No such file or directory
> Error loading or parsing hex file.
Failed uploading: uploading error: exit status 1

Used software versions ATTinyCore: 1.5.2 Arduino IDE: 2.3.4 OS: OS Name Microsoft Windows 11 Pro (Version 10.0.26100 Build 26100)

Used hardware Digispark ATTiny85

smlz avatar Apr 01 '25 14:04 smlz