Run with a pre-built container with all the tools, including toolchain and python:
docker run -it --rm --name mpsoc_sw -v $(pwd):/test -w /test aignacio/mpsoc_sw bashOnce the container is up and running, proceed executing all the steps within the container terminal. In order to run the makefile, first generate with cmake through these cmds:
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug|Release Finally build the app with this make all:
make all -j24If you have the NoX SoC HW flashed in a FPGA device and the tile is running the bootloader app, you can easily transfer the binary with the bootloader script below. Please note that the bootloader script is considering the memory map address below and the uart speed equal to 8-N-1 / 115200 bits/s.
python3 scripts/bootloader_elf.py --elf build/nox_freertos.elf --device /dev/ttyUSB1Most of the portable code such as the startup and the main code was copied from NEORV32 repository and adapted the the NoX SoC.