What would I need to do to have LiteOs .bin programs run without boot.bin #118
-
I am using a soft processor running on the Digilent Arty which I generated using this LiteX command:
I want to be able to send binaries directly to the soft processor on the Arty without the need to unplug the SD card from the Arty and into my laptop to copy the binary files across. When I run
in an attempt to directly run a LiteOS program without using boot.bin my program doesn't run. What am I missing here? I can see that I can potentially batch files together using a .json description file: https://github.com/enjoy-digital/litex/wiki/Load-Application-Code-To-CPU but I am not sure how to calculate the memory locations that go alongside the file names. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi, The FemtOS elf binaries and the binaries that you can send directly to LiteX through litex_term have a different memory map (different linker script, different makefiles). If you want to compile a program that you can directly send to litex_term, you can use this one as an example (in addition, it is interfaced with LiteX command line facilities, so that you can have several functionalities in your firmware, like different commands). It is what I was using before developing FemtOS. Another option is using a ULX3S: it has an ESP32 that can be used to directly transfer ELF binaries on the SDCard. |
Beta Was this translation helpful? Give feedback.
Hi,
The FemtOS elf binaries and the binaries that you can send directly to LiteX through litex_term have a different memory map (different linker script, different makefiles).
If you want to compile a program that you can directly send to litex_term, you can use this one as an example (in addition, it is interfaced with LiteX command line facilities, so that you can have several functionalities in your firmware, like different commands). It is what I was using before developing FemtOS.
Another option is using a ULX3S: it has an ESP32 that can be used to directly transfer ELF binaries on the SDCard.