fastlink30 Posted July 31, 2015 Report Posted July 31, 2015 (edited) i'm trying to use emblitz with ugfx (and chibios 3.0), taked makefile from the stm32f4 discovery directoryfirst run, i get error ... , so i changed line in makefile toCHIBIOS_PORT = v7mbefore wasCHIBIOS_PORT = stm32f4xx now, when i compile, i getc:\EmBitz\MULTIBOARD_F407\ext\ugfx\tools\gmake_scripts\compiler_gcc.mk|193|recipe for target 'builddirs' failed|seems that builddirs is not defined somewhere, how to correct this?thanks Edited August 19, 2015 by Guest
Joel Bodenmann Posted August 2, 2015 Report Posted August 2, 2015 Hello fastlink,Can you please show us the full compiler output that you are getting?What example are you using? We are successfully using the STM32F4 Makefile template with ChibiOS/RT 2.x but we have not tested it that much with 3.x. It is very possible that there might be something wrong in there.~ Tectu
fastlink30 Posted August 3, 2015 Author Report Posted August 3, 2015 part of the makefile: OPT_OS = chibios OPT_THUMB = yes OPT_LINK_OPTIMIZE = yes OPT_CPU = stm32m4# uGFX settings # See $(GFXLIB)/tools/gmake_scripts/library_ugfx.mk for the list of variables GFXLIB = c:/EmBitz/MULTIBOARD_F407/ext/ugfx GFXBOARD = STM32F429i-Discovery GFXDEMO = modules/gdisp/basics# ChibiOS settingsifeq ($(OPT_OS),chibios) # See $(GFXLIB)/tools/gmake_scripts/os_chibios.mk for the list of variables CHIBIOS = c:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.0 CHIBIOS_VERSION = 3 CHIBIOS_BOARD = ST_STM32F4_DISCOVERY CHIBIOS_CPUCLASS = ARMCMx CHIBIOS_PLATFORM = STM32/STM32F4xx CHIBIOS_PORT = v7m <--- changed here CHIBIOS_LDSCRIPT = STM32F407xG.ldendifi have re-copied the makefile over the old on my project folder, now the error change (probably some wrong char on makefile, when i try to modify parameter)now the error is:||=== MULTIBOARD_F407, Debug ===|c:\EmBitz\MULTIBOARD_F407\ext\ChibiOS_3.0.0\os\rt\include\ch.h|71|fatal error: chconf.h: No such file or directory|c:\EmBitz\MULTIBOARD_F407\ext\ugfx\tools\gmake_scripts\compiler_gcc.mk|233|recipe for target 'bin/Debug/obj/GFXLIB/src/gfx.o' failed|||=== Build finished: 2 errors, 0 warnings (0 minutes, 1 seconds) ===|i use the 'example' on boards/base and using stm32f429i-discovery\chibios_3.x makefile
inmarket Posted August 5, 2015 Report Posted August 5, 2015 It is saying you don't have a chconf.h file in your project directory. This is a required ChibiOS file. ChibiOS will also require a halconf.h and mcuconf.h file in your project directory.
fastlink30 Posted August 19, 2015 Author Report Posted August 19, 2015 i have added in the path variable of systemand is little better, but now i recevice this error:C:\EmBitz\MULTIBOARD_F407>make.C Compiler Options....arm-none-eabi-gcc -c -ggdb -O0 -mcpu=cortex-m4 -falign-functions=16 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -ffunction-sections -fdata-sections -fno-common -flto -MMD -MP -MF .build/dep/fakethumbfile.o.d -I. -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/3rdparty/tinygl-0.4-ugfx/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/boards/base/STM32F429i-Discovery -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/drivers/gdisp/STM32F429iDiscovery -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/demos/modules/gdisp/basics -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/rt/ports/ARMCMx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/rt/ports/ARMCMx/compilers/GCC -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/rt/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/osal/rt -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/common/ARMCMx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/STM32F4xx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/DACv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/GPIOv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/I2Cv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/OTGv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/RTCv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/SPIv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/TIMv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/USARTv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/FSMCv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/boards/ST_STM32F4_DISCOVERY -DGFX_USE_OS_CHIBIOS=TRUE -DGFX_USE_OS_CHIBIOS=TRUE -DCORTEX_USE_FPU=FALSE -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB fakethumbfile.c -o .build/obj/fakethumbfile.o.Assembler Options.....arm-none-eabi-gcc -c -ggdb -O0 -mcpu=cortex-m4 -falign-functions=16 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -ffunction-sections -fdata-sections -fno-common -flto -MMD -MP -MF .build/dep/fakethumbfile.o.d -I. -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/3rdparty/tinygl-0.4-ugfx/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/boards/base/STM32F429i-Discovery -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/drivers/gdisp/STM32F429iDiscovery -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/demos/modules/gdisp/basics -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/rt/ports/ARMCMx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/rt/ports/ARMCMx/compilers/GCC -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/rt/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/osal/rt -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/common/ARMCMx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/STM32F4xx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/DACv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/GPIOv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/I2Cv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/OTGv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/RTCv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/SPIv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/TIMv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/USARTv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/FSMCv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/boards/ST_STM32F4_DISCOVERY -DGFX_USE_OS_CHIBIOS=TRUE -DGFX_USE_OS_CHIBIOS=TRUE -DCORTEX_USE_FPU=FALSE -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB fakethumbfile.s -o .build/obj/fakethumbfile.o.Linker Options........arm-none-eabi-gcc -Wl,--defsym=__process_stack_size__=0x400 -Wl,--defsym=__main_stack_size__=0x400 -mcpu=cortex-m4 -nostartfiles -mthumb -Wl,--gc-sections -T/STM32F407xG.ld -Lc:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/common/ports/ARMCMx/compilers/GCC .build/obj/fakethumbfile.o -o .build/MULTIBOARD_F407.elf.Compiling c:/EmBitz/MULTIBOARD_F407/ext/ugfx/src/gfx.cIn file included from c:/EmBitz/MULTIBOARD_F407/ext/ugfx/src/gfx.c:16:0:./gfx.h:164:33: fatal error: src/gos/sys_options.h: No such file or directory #include "src/gos/sys_options.h" ^compilation terminated.c:/EmBitz/MULTIBOARD_F407/ext/ugfx/tools/gmake_scripts/compiler_gcc.mk:242: recipe for target '.build/obj/GFXLIB/src/gfx.o' failedmake: *** [.build/obj/GFXLIB/src/gfx.o] Error 1(copy & paste from command line, i made make command)compiler can't reach the files on the src directory, how i can include this path for compiler?compiler, assembler & linker for chibios are okbut when start compile for ugfx (by compiler_gcc.mk) i get this error.i looked the link you provide me on the other forum (http://wiki.ugfx.org/index.php?title=ChibiOS/RT)but this not help much, becouse the makefile i use, is what i found on the ugfx\boards\base\STM32F429i-Discovery\example_chibios_3.x\ directorywich is quite different from the example, also (i think) is specifically made to compile chibios 3 & ugfx togheter by calling only this makefilethanks
Joel Bodenmann Posted August 20, 2015 Report Posted August 20, 2015 I will try compiling a ChibiOS/RT 3.x application using the Makefile from our repository this Sunday. Please stay tuned.~ Tectu
Joel Bodenmann Posted August 24, 2015 Report Posted August 24, 2015 We gave it a try and it seems like we definitely have to modify our Makefiles to be compatible with the latest ChibiOS/RT 3.x.We will get this done in the following days.~ Tectu
Joel Bodenmann Posted August 29, 2015 Report Posted August 29, 2015 I made some changes to the build system for ChibiOS . Internally ChibiOS 2.x and ChibiOS 3.x are treated differently. There are now working examples for both ChibiOS 2.x and 3.x in the STM32F429i-Discovery board directory.As inmarket did not review the changes yet it might be that there will be some more changes as he is the one who originally implemented our build system. However, this way you can at least continue with your project.Sorry that this took so long. Let me know whether you got it working.~ Tectu
fastlink30 Posted September 1, 2015 Author Report Posted September 1, 2015 thank you tectu, now the example compilei have updated the makefile filebut my project not compile, the error is the same as you can see (up) the problem is to found the path to the include directoryif i add attachment with my project can help?
Joel Bodenmann Posted September 1, 2015 Report Posted September 1, 2015 Did you replace the Makefile of your project with the new one from the repository?Did you make sure that you set the paths to GFXLIB and CHIBIOS correctly?When you verified this and it is still not working please upload a .zip of your project.~ Tectu
fastlink30 Posted September 1, 2015 Author Report Posted September 1, 2015 yes, i have replaced makefile with the newyes, paths are okproject download link:http://expirebox.com/download/6064c0440 ... 48a8a.html(after 2 days is automatically deleted)
fastlink30 Posted September 3, 2015 Author Report Posted September 3, 2015 new linkhttp://expirebox.com/download/6917447f0 ... 7102f.html
Joel Bodenmann Posted September 3, 2015 Report Posted September 3, 2015 Can you please upload the ZIP archive as an attachment to your post?We will have a look at this during the weekend. Sorry for the delay.~ Tectu
fastlink30 Posted September 4, 2015 Author Report Posted September 4, 2015 i can't is too big the file as .zip
Joel Bodenmann Posted September 5, 2015 Report Posted September 5, 2015 The file gfx.h is not supposed to be in your project directory. What gave you the impression that you should copy it?Remove it and the error is gone.~ Tectu
fastlink30 Posted September 6, 2015 Author Report Posted September 6, 2015 i've removed gfx.h. i not know why i put there, probably some test and after forget to remove now i have another problem, but is related with embitz ide, on 2 different computer the same project compilation give me error, on first computer, error are related to some define not present on the board include (i must make a specific directory for my custom board, not use discovery stm32f409i), on second computer i have error on the makefile, but probably need to set paths to different directory, anyway something not related to ugfx.1 curiosity, why there aren't board directory for discovery stm32407 (my custom board is very similar)? too old board? if i remember good on the previous versions of ugfx there wasthanks
Joel Bodenmann Posted September 6, 2015 Report Posted September 6, 2015 now i have another problem, but is related with embitz ide, on 2 different computer the same project compilation give me error, on first computer, error are related to some define not present on the board include (i must make a specific directory for my custom board, not use discovery stm32f409i), on second computer i have error on the makefile, but probably need to set paths to different directory, anyway something not related to ugfx.We cannot help you unless you post the compiler output logs.In case of you used 'very old' uGFX version before you updated to the latest master I would recommend you copying the latest board file templates and compare them to your current ones. There were some changes regarding the board files a few versions ago.Also, note that you don't have to create a board file directory for your custom board inside of the uGFX library directory. Just place the board files somewhere in your application/project directory and add them to your Makefile as any other source files.You should never ever modify the content of the uGFX library directory. Otherwise upgrading to a newer version can be very very cumbersome.1 curiosity, why there aren't board directory for discovery stm32407 (my custom board is very similar)? too old board? if i remember good on the previous versions of ugfx there wasThere is no STM32F407 Discovery board file in the uGFX repository because this board does not have a display.There is however a board file for the Embest board which is an STM32F407 with an add-on. Furthermore, there are board files for dev-boards without a display but where a display can easily be added such as: ugfx\boards\addons\gdisp\board_SSD1289_stm32f4discovery.h. I assume that this is the board file from the 'previous version of ugfx' that you are referring to.~ Tectu
fastlink30 Posted September 23, 2015 Author Report Posted September 23, 2015 after much time i can dedicate some time to compilation of this project, now i have this problem.C Compiler Options....arm-none-eabi-gcc -c -ggdb -O0 -mcpu=cortex-m4 -falign-functions=16 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -MMD -MP -MF .build/dep/fakethumbfile.o.d -I. -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8 -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/3rdparty/tinygl-0.4-ugfx/include -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/boards/base/MULTIBOARD_F407 -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/drivers/gdisp/SSD1289 -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/demos/modules/gdisp/basics -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/common/ports/ARMCMx/devices/STM32F4xx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/ext/CMSIS/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/ext/CMSIS/ST -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/rt/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/rt/ports/ARMCMx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/rt/ports/ARMCMx/compilers/GCC -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/osal/rt -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/common/ARMCMx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/STM32F4xx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/DACv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/GPIOv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/I2Cv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/OTGv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/RTCv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/SPIv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/TIMv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/USARTv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/FSMCv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/boards/ST_STM32F4_DISCOVERY -DGFX_USE_CHIBIOS=TRUE -DGFX_USE_OS_CHIBIOS=TRUE -DCORTEX_USE_FPU=FALSE -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB fakethumbfile.c -o .build/obj/fakethumbfile.o.Assembler Options.....arm-none-eabi-gcc -c -ggdb -O0 -mcpu=cortex-m4 -falign-functions=16 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -MMD -MP -MF .build/dep/fakethumbfile.o.d -I. -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8 -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/3rdparty/tinygl-0.4-ugfx/include -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/boards/base/MULTIBOARD_F407 -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/drivers/gdisp/SSD1289 -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/demos/modules/gdisp/basics -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/common/ports/ARMCMx/devices/STM32F4xx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/ext/CMSIS/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/ext/CMSIS/ST -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/rt/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/rt/ports/ARMCMx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/rt/ports/ARMCMx/compilers/GCC -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/osal/rt -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/common/ARMCMx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/STM32F4xx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/DACv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/GPIOv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/I2Cv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/OTGv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/RTCv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/SPIv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/TIMv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/USARTv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/FSMCv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/boards/ST_STM32F4_DISCOVERY -DGFX_USE_CHIBIOS=TRUE -DGFX_USE_OS_CHIBIOS=TRUE -DCORTEX_USE_FPU=FALSE -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB fakethumbfile.s -o .build/obj/fakethumbfile.o.Linker Options........arm-none-eabi-gcc -Wl,--defsym=__process_stack_size__=0x400 -Wl,--defsym=__main_stack_size__=0x400 -mcpu=cortex-m4 -nostartfiles -mthumb -Tc:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/common/ports/ARMCMx/compilers/GCC/ld/STM32F407xG.ld -Lc:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/common/ports/ARMCMx/compilers/GCC .build/obj/fakethumbfile.o -o .build/MULTIBOARD_F407.elf.Linking .build/MULTIBOARD_F407.elf.build/obj/GFXLIB/src/gdisp/gdisp.o: In function `drawpixel':c:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/src/gdisp/gdisp.c:128: undefined reference to `gdisp_lld_draw_pixel'collect2.exe: error: ld returned 1 exit statusc:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/tools/gmake_scripts/compiler_gcc.mk:282: recipe for target '.build/MULTIBOARD_F407.elf' failedmake: *** [.build/MULTIBOARD_F407.elf] Error 1sure is stupid problem, but i not see where must be this function (drawpixel), also another thing, i have put my board files under ugfx directory / boards/base, but (as you say) i want put outside the ugfx dire, how i can change the makefile to compile correctly?thanks
Joel Bodenmann Posted September 23, 2015 Report Posted September 23, 2015 .build/obj/GFXLIB/src/gdisp/gdisp.o: In function `drawpixel':c:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/src/gdisp/gdisp.c:128: undefined reference to `gdisp_lld_draw_pixel'sThe function gdisp_lld_draw_pixel() is a function that is part of the GDISP board file. If you get this error the linker couldn't find a valid board file.In order to use a custom board file that is part of the project/application all you have to do is placing the board file in your project directory and making sure that it gets compiled (the path containing the board file must be in your include path (usually INCDIR, INCS or something similar when using a Makefile).Note that you must not define the GFXBOARD variable in your board file when using a custom board file. Just leave the variable empty or don't declare it at all in your makefile.~ Tectu
fastlink30 Posted September 23, 2015 Author Report Posted September 23, 2015 compiled! i have on makefile GFXBOARD = MULTIBOARD_F407but on board.h#define BOARD_NAME "Multiboard F407"changed to#define BOARD_NAME "Multiboard_F407"compile is ok thank you tectu, now i must test how to include my program, not only ugfx & chibios.
Joel Bodenmann Posted September 23, 2015 Report Posted September 23, 2015 Glad to hear that you finally managed to get your project compiling.We hope that everything else works out for you.~ Tectu
fastlink30 Posted October 9, 2015 Author Report Posted October 9, 2015 (edited) today i have designed some screens with the ugfx studio, all ok, exported the files, removed the main from ugfx_gui.c and linked compile file on makefilenow when i compile i receive this error:c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-openr.o): In function `_open_r':openr.c:(.text._open_r+0x10): undefined reference to `_open'c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-unlinkr.o): In function `_unlink_r':unlinkr.c:(.text._unlink_r+0xc): undefined reference to `_unlink'c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-linkr.o): In function `_link_r':linkr.c:(.text._link_r+0xe): undefined reference to `_link'c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-statr.o): In function `_stat_r':statr.c:(.text._stat_r+0xe): undefined reference to `_stat'collect2.exe: error: ld returned 1 exit statusmake: *** [bin/Debug/OVEN_STM32F103R8.elf] Error 1c:/EmBitz/OVEN_STM32F103R8/ext/Tectu-ugfx-ddf79cd411e2/tools/gmake_scripts/compiler_gcc.mk:282: recipe for target 'bin/Debug/OVEN_STM32F103R8.elf' failedbefore this error, the compilation was ok, seems some library are missing.. Edited October 10, 2015 by Guest
Joel Bodenmann Posted October 10, 2015 Report Posted October 10, 2015 If this is a problem related to the code generated by the uGFX-Studio then please ask for advice in the appropriate forum.Also, please use code tags in the future if you want to include code or compiler output logs in your posts.The forum is also a source of knowledge for other people when they use the forum search trying to find an answer for their problem. Therefore we want to keep this forum as structured and organized as possible Generally having one "support thread per user" is not a helpful approach in that regard.~ Tectu
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now