Description
I want to use Pico's SRAM in unstriped configuration so that I can manage who accesses which bank manually. However, using pico_set_binary_type(blink blocked_ram)
causes linking to fail with the message below (here I modified the blink example with the single additional line for demonstration and easy reproduction).
[ 0%] Linking CXX executable blink.elf
ERROR: Memory segment 21000a4c->21000d14 is outside of valid address range for device
make[2]: *** [blink/CMakeFiles/blink.dir/build.make:677: blink/blink.elf] Error 253
make[2]: *** Deleting file 'blink/blink.elf'
make[1]: *** [CMakeFiles/Makefile2:3535: blink/CMakeFiles/blink.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
The address range rejected by the linker seems to be exactly the place code should be, so I suspect the linker is just misconfigured.