Forum Discussion
hello, I fellowed recommandation that there is no button and I user command line to generate C2H.mk file. There are lot of errors in Altera scripts that not find some files. After corrected access file I generated the C2H.mk and than started making compilation the make app returned : Compiling board_diag.c... nios2-elf-gcc -fno-inline -D ALTERA_HARDWARE_COMPILE -D CHAC_THIS -D '__attribute__(x)= ' -D '__restrict__= restrict' -D '__builtin_va_list = int' -D '__ULong = unsigned long' -D '_fpos_t = long' -D 'wint_t = char' -D '_flock_t= int' -D '__FILE= __SFILE' -D '__extension__= ' -D '__prompt=' -D '__const=const' -D '__inline__=' -MD -E -fno-inline -I../test1_bsp/HAL/inc -I../test1_bsp -I../test1_bsp/drivers/inc -DSYSTEM_BUS_WIDTH=32 -D__hal__ -pipe -DALT_NO_INSTRUCTION_EMULATION -DALT_SINGLE_THREADED -O0 -g -Wall -EL -mhw-div -mhw-mul -mno-hw-mulx -fno-inline board_diag.c -o obj/board_diag.c2h_pre -MF obj/board_diag.d The Nios II C2H Compiler is generating accelerator_board_diag_sqr.v... H:/altera/10.0/nios2eds/components/altera_avalon_c_hardware_accelerator/c2h-generate/c2h-generate --classpath=H:/altera/10.0/nios2eds/components/altera_avalon_c_hardware_accelerator/c2h-generate/com.altera.c2h.jar --classpath=H:/altera/10.0/nios2eds/components/altera_avalon_c_hardware_accelerator/c2h-generate/com.altera.widgets.jar --ptf=../../nios_system.sopcinfo --group=board_diag --qpf=../../DE2_70_Basic_Computer --c2h_force_recompile=TRUE --c2h_quartus_compilation=FALSE --c2h_report_only=FALSE --flow_timestamp=././c2h_hdl-t --target_cpu_name=CPU --chac_generate_script_location=H:/altera/10.0/nios2eds/components/altera_avalon_c_hardware_accelerator/chac-generate --projectname=DE2_70_Basic_Computer --accelerator=sqr,././obj/board_diag.c2h_pre,././alt_c2h_sqr.c,0sqr H:/altera/10.0/nios2eds/components/altera_avalon_c_hardware_accelerator/c2h-generate/c2h-generate --classpath=H:/altera/10.0/nios2eds/components/altera_avalon_c_hardware_accelerator/c2h-generate/com.altera.c2h.jar --classpath=H:/altera/10.0/nios2eds/components/altera_avalon_c_hardware_accelerator/c2h-generate/com.altera.widgets.jar --ptf=../../nios_system.sopcinfo --group=board_diag --qpf=../../DE2_70_Basic_Computer --c2h_force_recompile=TRUE --c2h_quartus_compilation=FALSE --c2h_report_only=FALSE --flow_timestamp=`cygpath -m "./"`/./c2h_hdl-t --target_cpu_name=CPU --chac_generate_script_location=H:/altera/10.0/nios2eds/components/altera_avalon_c_hardware_accelerator/chac-generate --projectname=DE2_70_Basic_Computer --accelerator=sqr,`cygpath -m "./"`/./obj/board_diag.c2h_pre,`cygpath -m "./"`/./alt_c2h_sqr.c,0sqr /usr/bin/sh: -c: line 0: unexpected EOF while looking for matching ``' /usr/bin/sh: -c: line 1: syntax error: unexpected end of file make: *** [c2h_hdl-t] Error 2 can you help me