Due to a problem in the Intel® Quartus® Prime Pro Edition Software version 21.4, 22.1, and 22.2, the build error is due to the OCRAM memory size issue, 13,1072 bytes declared in the create_qsys.tcl. The memory size is insufficient to build the µC/OS-II application. The minimal OCRAM memory size required to build the application is 26,2143 bytes.
To work around this problem, modify the create_qsys.tcl script line 34 to change the memory size as shown:
“set_component_parameter_value memorySize {262143}”
This modification will generate a design with OCRAM memory size of 26,2143 bytes, which matches the memory initialization file.
Take note to change the value size from “0x1FFFF” to “0x3FFFF” when generating the .hex file from .elf.
This problem is fixed in the Intel® Quartus® Prime Software v22.3.