I thought I ought to start up something new & challenging, so – try extending my Cortex GNAT RTS to use a RISC-V chip† (the inexpensive ESP32-H2).
So far,
- built the cross-compiler. I targeted
riscv-elf
, others have usedriscv32-elf
,riscv64-elf
; since the 64-bit version can generate 32-bit code, what’s the difference? (I suppose the 32-bit version won’t generate 64-bit code??) - that means that as far as
gprbuild
is concerned, the compiler won’t generate libraries. This is down to a regexp in thegprconfig
database which insists on seeing 32 or 64. - the SVD for the ESP32-H2 includes the
%s
symbol for arrays and lists whichsvd2ada
doesn’t handle - @Irvise has already come across this. - there are some assembly files in the FreeRTOS portability layer which the compiler complains about.
- trouble getting
gdb
to work. I guess I need to try actually creating a binary of my own first. Also, re-re-reading the documentation.
† that will of course mean changing the name of the project! I understand that Github retains links under the old name, here’s hoping