Skip to content

elf2uf2 incorrectly detects binaries using LMAs #689

@silversquirl

Description

@silversquirl

When trying to convert a binary, I got this strange error:

ERROR: Memory segment 10000000->10000100 is outside of valid address range for device

Running with -v outputs Detected RAM binary, despite my binary storing all sections in flash.

I'm using LMAs in my linker script to indicate that sections are stored in flash, but copied to sram before execution. It seems like elf2uf2 incorrectly detects this as being a RAM binary, since the entry address points to SRAM.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions