Skip to content

arduino-cli compile with --output-dir flag set fails to build *.with_bootloader.hex file. #276

@a7hybnj2

Description

@a7hybnj2

So, I have been using MightyCore for years and today I saw there was an update to 2.2.2 but I also saw there was an arduino cli update so I did both at once and everything broke. I realized that my arduino-cli upload command was trying to upload the with_bootloader.hex file which wasn't even being compiled out anymore.

So, I downgraded to my previous versions of both: arduino-cli Version: 0.32.2 && MightyCore:avr 2.1.3

So, it tried again and it worked but when I went through the logs it looks like it is uploading the with_bootloader.hex but at least the old version would compile out both.

I don't actually know where the error is because I think 2.2.2 introduced a new avrdude also.

Anyway my data:

programmer = usbtinyisp
compile: arduino-cli compile --fqbn $(fqbn) --output-dir $(output-dir) --verbose
upload: arduino-cli upload --fqbn $(fqbn) --input-dir $(output-dir) --programmer $(programmer) --verify --verbose

I see there is a flag for arduino-cli upload of --input-file but I have never specified it before. And I don't know why after updating to 2.2.2 and the with_bootloader file wasn't being generated anymore that it wouldn't just pull the *.hex file in the build dir.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions