![]() ![]() ![]() # changing these as hardfloat and softfloat are notĬFLAGS = -std=gnu99 -g -O2 -Wall -Tstm32_flash.ldĬFLAGS += -mlittle-endian -mthumb -mthumb-interwork -nostartfiles -mcpu=cortex-m4ĬFLAGS += -fsingle-precision-constant -Wdouble-promotion -DUSE_MIDIĬFLAGS += -mfpu=fpv4-sp-d16 -mfloat-abi=hardĬFLAGS += -Iinc -Ilib/Core/cmsis -Ilib/Core/stm32 # NOTE that you have to run make clan after SRCS = main.c stm32f4xx_it.c system_stm32f4xx.c ![]() Moreover, I don't even know which make command to execute to generate these 3 files. The author of the project says that I need to specify the firmware folder of my board in the makefile, but I don't know which line in the makefile to specify this? Problem, I don't understand how to use the makefile. elf file and then send it to my board via st-link. Thanks in advance.I'm trying to use the makefile of this project to generate a. Nios2-elf-g++ -t'./test2_bsp//linker.x' -msys-crt0='./test2_bsp//obj/hal/src/crt0.o' -msys-lib=hal_bsp -l./test2_bsp/ -wl,-map=test2.map -o0 -g -wall -mno-hw-div -mhw-mul -mno-hw-mulx -o test2.elf obj/default/dbc5cefa7_appl.o obj/default/aoeappl.o obj/default/bootmode.o obj/default/coeappl.o obj/default/db_nioshw.o obj/default/ecataoe.o obj/default/ecatappl.o obj/default/ecatcoe.o obj/default/ecatfoe.o obj/default/ecatslv.o obj/default/foeappl.o obj/default/mailbox.o obj/default/objdef.o obj/default/sdoserv.o -lmĬ:/altera/14.1/nios2eds/bin/gnu/h-x86_64-mingw32/bin/./lib/gcc/nios2-elf/4.8.3/./././././h-x86_64-mingw32/nios2-elf/bin/ld.exe: test2.elf section `.text' will not fit in region `onchip_memory'Ĭ:/altera/14.1/nios2eds/bin/gnu/h-x86_64-mingw32/bin/./lib/gcc/nios2-elf/4.8.3/./././././h-x86_64-mingw32/nios2-elf/bin/ld.exe: region `onchip_memory' overflowed by 93988 bytesĬollect2.exe: error: ld returned 1 exit status To build the project I am clicking on "build all" but NIOS II Eclipse environment is throwing error (Attached snapshot). In order to generate the "*.elf" file, I created new project by pointing to "*nios_cpu.sopcinfo" file and added existing source file to the project. To learn I am using the existing project and after compiling the nios project in Quartus. I am novice in NIOS II Eclipse environment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |