Skip to content

Commit

Permalink
Change instructions since elf-to-uf2 is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
marnovandermaas committed Sep 3, 2024
1 parent 2f6bc44 commit f95e4e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions doc/exploring-cheriot-rtos.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ xmake -P cheriot-rtos/examples/05.sealing/
### Where's my UF2?

If you've followed the '[running software on the FPGA]' guide, you'll expect UF2 files as part of the build artefacts but these aren't automatically created in the [`cheriot-rtos`][] repository.
Thankfully, this repository includes a `./scripts/elf-to-uf2.sh` script that converts an ELF into a firmware a UF2 file.

[running software on the FPGA]: ./guide/running-software.md#running-on-the-sonata-fpga
You can generate it using the following commands:

```sh
xmake -P cheriot-rtos/examples/05.sealing/
./scripts/elf-to-uf2.sh build/cheriot/cheriot/release/sealing
llvm-strip build/cheriot/cheriot/release/sealing -o sealing_stripped.elf
uf2conv -b 0x0000 -f 0x6ce29e60 sealing_stripped.elf -co sealing.elf.uf2
```

[running software on the FPGA]: ./guide/running-software.md#running-on-the-sonata-fpga

0 comments on commit f95e4e6

Please sign in to comment.