When I am compiling using RV32IM, running firmware/makehex.py to create a hex file works perfectly to load into my FPGA's memory through $readmemh. However, when I am compiling using RV32IMC, due to instructions being both 16 or 32 bits, running makehex.py yields machine code that is out of order. How may one produce the hex file correctly when using the RV32 compressed instruction set?
When I am compiling using RV32IM, running firmware/makehex.py to create a hex file works perfectly to load into my FPGA's memory through $readmemh. However, when I am compiling using RV32IMC, due to instructions being both 16 or 32 bits, running makehex.py yields machine code that is out of order. How may one produce the hex file correctly when using the RV32 compressed instruction set?