i tried that on another .bin of mine, and ran into some confusing issuesIf that came via Pavel Kirienko - https://gist.github.com/pavel-kirienko/6835194423df07f6160af19f7ea33a4d - The '.data' address needs to change. This is what my tools use -I tried arm-none-eabi-objcopy -I binary -O elf32-little --change-section-address .data=0x08000000 pt52lua_lostver.bin output.elf
but then radare2 -w arm -b 16 output.elf doesn't seem to work.But I'm not sure what the status of that '.elf' is, how well it will work with other tools. And, as others have said, it will contain only the executable binary, not all that was in the original '.elf' created by Pico SDK.Code:
arm-none-eabi-objcopy -I binary -O elf32-little --change-section-address .data=0x10000000 input.bin output.elf
with certain params, it creates the section of the right size, but its empty
you can check that with "hexdump -C out.elf" and see if the data is actually present or not
Statistics: Posted by cleverca22 — Sun Mar 17, 2024 6:24 pm