JoNil / elf2uf2-rs

BSD Zero Clause License
81 stars 31 forks source link

elf2uf2 refuses to upload binaries using USB RAM #11

Closed cbiffle closed 2 years ago

cbiffle commented 2 years ago

To use the USB SRAM up in the 0x5000_0000 range, I've defined it in my linker script, and I'm assigning buffer structures to it with link_section. This works fine, until I try to load the binary using elf2uf2, which says:

Error: "Memory segment 0x50100100->0x50100140 is outside of valid address range for device"

Given that this is an uninitialized segment that won't be loaded, I'd rather this were exempted from the address range check. (I use this same pattern to map peripherals to appropriate places in the address space.)