Yes it can. Normally used with an .elf or .uf2 file that has the addresses inside, you can also use it with a raw .bin file and --address on the command line to place it at a given address. And then using -x allows you to execute it.Keeping things very simple for now, could Picotool be used to place a program in RAM at a specific starting point like this?
So combined with a simple .ld file in your link command to get the addresses right, this is probably the purest way to get your simple piece of assembly source running on the hardware without other things in the way. There's still a little bit of smoke-and-mirrors around how picotool gets it in there, but less than the other options.
Snag is how you then know what your program is actually doing. Maybe attach a few more LEDs and a button, get them to implement 'duckshoot'?
The other alternative (instead of Picotool) is debug probe and GDB, which would let them single step and see what's in registers etc. Closer to the simulation environment but takes more setting up and less of a raw experience.
Statistics: Posted by arg001 — Tue Jun 18, 2024 9:00 am