Skip to content

Arduino-cli doesn't generate hex files with bootloader if build.project_name specified #3108

Description

@gwilherm

Describe the problem

When I build my project 5 files are generated:

  • my-project.ino.eep
  • my-project.ino.elf
  • my-project.ino.hex
  • my-project.ino.with_bootloader.bin
  • my-project.ino.with_bootloader.hex

When I add --build-property build.project_name=newname option 3 files are generated:

  • newname.eep
  • newname.elf
  • newname.hex

To reproduce

Without build.project_name property:

$ arduino-cli compile --build-path build/ src/my-project/
$ ls build/
$ tree -L1 build/
build/
├── build.options.json
├── compile_commands.json
├── core/
├── includes.cache
├── libraries/
├── libraries.cache
├── my-project.ino.eep
├── my-project.ino.elf
├── my-project.ino.hex
├── my-project.ino.with_bootloader.bin
├── my-project.ino.with_bootloader.hex
└── sketch/

With build.project_name property:

$ arduino-cli compile --build-path build/ src/my-project/ --build-property build.project_name=newname
$ tree -L1 build/
build/
├── build.options.json
├── compile_commands.json
├── core/
├── includes.cache
├── libraries/
├── libraries.cache
├── newname.eep
├── newname.elf
├── newname.hex
└── sketch/

Expected behavior

I expected to find the following files:

  • newname.eep
  • newname.elf
  • newname.hex
  • newname.with_bootloader.bin
  • newname.with_bootloader.hex

Arduino CLI version

1.4.0-1

Operating system

Linux

Operating system version

Manjaro Linux

Additional context

Still occurs when using the nightly build

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of project

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions