With both picotool and elf2uf2-rs, I get the error message "entry point is not in mapped area of file". I have tried experimenting with various values for offset option, even leaving it to default, but no change. I think I'm missing something basic. Any ideas?
Perhaps you could share a code repo that demonstrates the issue? Someone may not have hit the same exact combination that creates the error condition.
To start with, what does your build.rs
file look like? Do you have any unusual linker shenanigans going on? What command are you using the build and run the package for pico?
I don't find a top level build.rs, only for all the crates I've used. An update, however: the uf2 conv program does generate a uf2 file that "looks" ok, compared the file produced by the pico-sdk (C/C++). The picotool and elf2uf2-rs programs refused to generate a uf2 file at all. The only linker flag I added to .cargo/config.toml was to generate a link map.
That would read "uf2conv".
That might be the problem. There is a minimum configuration required, e.g. rp2040-project-template/memory.x at main ยท rp-rs/rp2040-project-template
Try to build an existing project instead of writing one from scratch?
Thanks, I'll give that a try.