Forum Discussion
Compilation issue
- 3 years ago
Hi,
Firstly, remove the/all unnecessary files in the "Files" tab in Quartus after you generate HDL in Platform Designer.
Then locate the .qip files in the "synthesis" folder directory that you generated from Platform Designer above.
Add the .qip file in the "Files" tab. And compile your Quartus.
p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.
Hi,
Sorry for the delay of my reply and Thank you very much for the reply. It compiled but I did not have top file selected for the project is that okay?
Other thing is when we create the nios II project, what is the project template we should select? .is it float2 functionality, float2 GCC or float2 performance to print our floating point calculation results to the console?
I created project using float2 GCC because it was mentioned that it infer floating point operations provided
by the Floating Point Hardware 2 component.
The try to build project after modifying float_gcc.c file as bellow giving print command
#include <stdio.h>
#include <math.h>
#include "system.h"
#include "float2_gcc.h"
int main(void)
{
int ret = show_gcc_inference();
printf("Result: %d\n", ret);
return ret;
}
but I got error as below
' -msys-lib=hal_bsp -L../ode_bsp/ -L../ode_bsp//newlib/nios2-elf/lib -Wl,-Map=ode.map -O0 -g -Wall -mno-hw-div -mhw-mul -mhw-mulx -mgpopt=global -fno-math-errno -mcustom-fabss=224 -mcustom-fadds=253 -mcustom-fcmpeqs=227 -mcustom-fcmpges=228 -mcustom-fcmpgts=229 -mcustom-fcmples=230 -mcustom-fcmplts=231 -mcustom-fcmpnes=226 -mcustom-fdivs=255 -mcustom-fixsi=249 -mcustom-floatis=250 -mcustom-fmuls=252 -mcustom-fnegs=225 -mcustom-fsubs=254 -o ode.elf obj/default/float2_gcc.o obj/default/float2_gcc_no_custom.o -lm -msys-lib=m
c:/intelfpga/18.0/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: ode.elf section `.text' will not fit in region `onchip_memory2_0'
c:/intelfpga/18.0/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: address 0x1cff0 of ode.elf section `.rwdata' is not within region `onchip_memory2_0'
c:/intelfpga/18.0/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: address 0x1ec4c of ode.elf section `.bss' is not within region `onchip_memory2_0'
c:/intelfpga/18.0/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: address 0x1cff0 of ode.elf section `.rwdata' is not within region `onchip_memory2_0'
c:/intelfpga/18.0/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: address 0x1ec4c of ode.elf section `.bss' is not within region `onchip_memory2_0'
c:/intelfpga/18.0/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: region `onchip_memory2_0' overflowed by 66260 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [ode.elf] Error 1
is this mean my nios 2 onchip memory is not enough? I am using Stratix iv 230 and I set onchip memory as 27000 .
Hope you can give me some advice.
Thank you