Jump to content

fastlink30

Members
  • Posts

    80
  • Joined

  • Last visited

Everything posted by fastlink30

  1. and was like this, but i must put on first place the path to the files..
  2. done, the first path in the makefile must be where is the romfs_files, otherwise search for the files fails..
  3. found the problem, is a path problem, i put an absolute path on include inside gfile\gfile_fs_rom.c (i know is really not good idea, but i want found the problem), and now the file is found, read, and i hope also played on the makefile there are the path to the files romfs_files.h, so i not understand why is not included... must investigate more
  4. the function ROMOpen not found the file in ROM, all the parameters seems good, so i think the files are not included on compilation there are some particular things to do, to use GFILE functions? maybe i forgot some particular, i have enabled this 'flags' #define GFILE_NEED_NATIVEFS FALSE #define GFILE_NEED_ROMFS TRUE #define GFX_USE_GAUDIO TRUE on chibios (3.0.3) i do nothing, to compile i use makefile, maybe this do some difference? compilation not show errors, and firmware correctly work
  5. #define MY_PLAY_FILE "allwrong.wav" removed the inclusion and add #warning to romfs_files.h no warning message shown can be my makefile? the path to romfs_files.h there are
  6. ok, done, but i have problem to load the file from ROM gfxBufferAlloc is ok when i try to open the file with gfileOpen, function fail (tryed with 'r' & 's') i have used the same file on the example dir of demos\modules\gaudio\play-vs1053\ ronfs_files.h & romfs_allwrong.h then included the file on the main.c with #include "romfs_files.h" (the bin file become more big, so datas are on the rom) #define GFILE_NEED_NATIVEFS FALSE #define GFILE_NEED_ROMFS TRUE #define GFX_USE_GAUDIO TRUE #define GFX_USE_GFILE TRUE #define GAUDIO_NEED_PLAY TRUE #define GAUDIO_NEED_RECORD FALSE #define GQUEUE_NEED_BUFFERS TRUE #define GQUEUE_NEED_GSYNC TRUE ..... if (!gfxBufferAlloc(4, 512)) { errmsg = "Err: No Memory"; goto theend; } repeatplay: // Open the wave file if (!(f = gfileOpen(MY_PLAY_FILE, "r"))) { errmsg = "Err: Open WAV"; goto theend; }
  7. fastlink30

    PWM Audio

    i'm trying to use audio with ugfx, to be more precise, i want use a piezo buzzer controlled with pwm, i looked example play-vs1053, but not understand how to selected the type of hardware to use (VS1053,pwm,adc), in this example is loaded the file audio, played etc, but how to set the port where to send 'audio'? there are other simple audio example with pwm? maybe i'm wrong but i not see thanks
  8. fastlink30

    label color

    maybe stupid question, but how to change color of label text from code? thanks
  9. 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 makefile now 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 status make: *** [bin/Debug/OVEN_STM32F103R8.elf] Error 1 c:/EmBitz/OVEN_STM32F103R8/ext/Tectu-ugfx-ddf79cd411e2/tools/gmake_scripts/compiler_gcc.mk:282: recipe for target 'bin/Debug/OVEN_STM32F103R8.elf' failed before this error, the compilation was ok, seems some library are missing..
  10. compiled! i have on makefile GFXBOARD = MULTIBOARD_F407 but 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.
  11. 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/MULT IBOARD_F407 -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/drivers/gdis p/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/ARMCM x/devices/STM32F4xx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/ext/CMSIS/i nclude -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/o s/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/MULTI BOARD_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/C hibiOS_3.0.2/os/hal/ports/STM32/LLD/GPIOv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/Chibi OS_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/o s/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/port s/STM32/LLD/TIMv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM 32/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_STM32F 4_DISCOVERY -DGFX_USE_CHIBIOS=TRUE -DGFX_USE_OS_CHIBIOS=TRUE -DCORTEX_USE_FPU=FA LSE -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/MULT IBOARD_F407 -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/drivers/gdis p/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/ARMCM x/devices/STM32F4xx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/ext/CMSIS/i nclude -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/o s/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/MULTI BOARD_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/C hibiOS_3.0.2/os/hal/ports/STM32/LLD/GPIOv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/Chibi OS_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/o s/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/port s/STM32/LLD/TIMv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM 32/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_STM32F 4_DISCOVERY -DGFX_USE_CHIBIOS=TRUE -DGFX_USE_OS_CHIBIOS=TRUE -DCORTEX_USE_FPU=FA LSE -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 -L c:/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: und efined reference to `gdisp_lld_draw_pixel' collect2.exe: error: ld returned 1 exit status c:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/tools/gmake_scripts/compil er_gcc.mk:282: recipe for target '.build/MULTIBOARD_F407.elf' failed make: *** [.build/MULTIBOARD_F407.elf] Error 1 sure 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
  12. 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 was thanks
  13. i can't is too big the file as .zip
  14. new link http://expirebox.com/download/6917447f0 ... 7102f.html
  15. yes, i have replaced makefile with the new yes, paths are ok project download link: http://expirebox.com/download/6064c0440 ... 48a8a.html (after 2 days is automatically deleted)
  16. thank you tectu, now the example compile i have updated the makefile file but my project not compile, the error is the same as you can see (up) the problem is to found the path to the include directory if i add attachment with my project can help?
  17. i have added in the path variable of system and 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 -fd ata-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/STM32F4 29i-Discovery -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/drivers/gdisp/STM32F429iDisco very -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_F40 7/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/o s/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/MULTI BOARD_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/C hibiOS_3.0.1/os/hal/ports/STM32/LLD/GPIOv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/Chibi OS_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/o s/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/port s/STM32/LLD/TIMv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM 32/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_STM32F 4_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 -fd ata-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/STM32F4 29i-Discovery -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/drivers/gdisp/STM32F429iDisco very -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_F40 7/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/o s/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/MULTI BOARD_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/C hibiOS_3.0.1/os/hal/ports/STM32/LLD/GPIOv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/Chibi OS_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/o s/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/port s/STM32/LLD/TIMv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM 32/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_STM32F 4_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/ST M32F407xG.ld -Lc:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/common/ports/ARMCM x/compilers/GCC .build/obj/fakethumbfile.o -o .build/MULTIBOARD_F407.elf . Compiling c:/EmBitz/MULTIBOARD_F407/ext/ugfx/src/gfx.c In 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: reci pe for target '.build/obj/GFXLIB/src/gfx.o' failed make: *** [.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 ok but 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\ directory wich is quite different from the example, also (i think) is specifically made to compile chibios 3 & ugfx togheter by calling only this makefile thanks
  18. 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 settings ifeq ($(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.ld endif i 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
  19. i'm trying to use emblitz with ugfx (and chibios 3.0), taked makefile from the stm32f4 discovery directory first run, i get error ... , so i changed line in makefile to CHIBIOS_PORT = v7m before was CHIBIOS_PORT = stm32f4xx now, when i compile, i get c:\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
  20. ok, switched to fats & chibios, sdio mode 1 bit, seems functional, fs is mounted correctly, not have more time for today. next days i try re-implement gfile, if is all ok (sure yes) the next step is try to understand why spi mode not functioning. thanks for support.
  21. tectu, i have disabled gfile and 'installed' the chibios fatfs 0.9 patched, also i connected oscilloscope to spi out and signal is ok, but nss signal is not generated, is always high, and sure this is not good. maybe is the sd-card module that not let pin a4 to go down becouse there are pull-up resistor on it.... 8-) tomorrow i check anyway i have unconnected the nss signal on the sd-card board but anyway signal not change state. question: but the nss signal is drived by chibios/fatfs or not? the test-code program is here to check signal out of spi, to check nss i have commented this line and used the 'standard' code to mount the fs my initialization code /* Maximum speed SPI configuration (18MHz, CPHA=0, CPOL=0, MSb first).*/ static SPIConfig hs_spicfg = {NULL, GPIOA, 4, SPI_BaudRatePrescaler_32}; /* Low speed SPI configuration (281.250kHz, CPHA=0, CPOL=0, MSb first).*/ static SPIConfig ls_spicfg = {NULL, GPIOA, 4, SPI_BaudRatePrescaler_128}; /* MMC/SD over SPI driver configuration.*/ static MMCConfig mmccfg = {&SPID1, &ls_spicfg, &hs_spicfg}; .... // function alternate per spi1 palSetPadMode(GPIOA, 4, PAL_MODE_OUTPUT_PUSHPULL | PAL_STM32_OSPEED_HIGHEST); // NSS palSetPadMode(GPIOA, 5, PAL_MODE_ALTERNATE(5) | PAL_STM32_OSPEED_HIGHEST); // SCK palSetPadMode(GPIOA, 6, PAL_MODE_ALTERNATE(5) | PAL_STM32_OSPEED_HIGHEST); // MISO palSetPadMode(GPIOA, 7, PAL_MODE_ALTERNATE(5) | PAL_STM32_OSPEED_HIGHEST); // MOSI palSetPad(GPIOA, 4);// set NSS high /* * Initializes the MMC driver to work with SPI1 */ mmcObjectInit(&MMCD1); mmcStart(&MMCD1, &mmccfg); // test code for (i = 0; i < sizeof(txbuf); i++) txbuf[i] = (uint8_t)i; spiAcquireBus(&SPID1); /* Acquire ownership of the bus. */ while (TRUE) { //palClearPad(GPIOD, GPIOD_LED5); /* LED OFF. */ spiStart(&SPID1, &ls_spicfg); /* Setup transfer parameters. */ spiSelect(&SPID1); /* Slave Select assertion. */ spiExchange(&SPID1, 512, txbuf, rxbuf); /* Atomic transfer operations. */ spiUnselect(&SPID1); /* Slave Select de-assertion. */ } spiReleaseBus(&SPID1); /* Ownership release. */ inmarket, as i write before, now i can't look becouse i have installed fatfs on chibios, anyway if i not have success in these days, i try to remount gfile and do what you suggest
  22. gfile_fatfs_diskio_chibios,c is ok to use directly (without modification), if i have understood well, when i compile, i not have error or warnings. if i debug the code the state of MMCD1 is BLK_ACTIVE, this means only that the driver is initialized only when gfileOpen() try to mount the volume and arrive to disk_initialize function, the state is BLK_ACTIVE, so after all the things fail and can't open file
  23. after a long time, i restart do test with mm-card, to do this i decide to use gfile (seems very simple to use), but i'm stuck on that connected mmc to spi1, stmf4 discovery, em-blocks ide, ugfx 2.2, chibios 2.6.6 gfxconf.h: GFX_USE_GFILE TRUE GFILE_NEED_FATFS TRUE mcuconf.h: STM32_SPI_USE_SPI1 TRUE /* Maximum speed SPI configuration (18MHz, CPHA=0, CPOL=0, MSb first).*/ static SPIConfig hs_spicfg = {NULL, GPIOA, 4, 0}; /* Low speed SPI configuration (281.250kHz, CPHA=0, CPOL=0, MSb first).*/ static SPIConfig ls_spicfg = {NULL, GPIOA, 4, SPI_CR1_BR_2 | SPI_CR1_BR_1}; /* MMC/SD over SPI driver configuration.*/ static MMCConfig mmccfg = {&SPID1, &ls_spicfg, &hs_spicfg}; ..... // function alternate per spi1 palSetPadMode(GPIOA, 4, PAL_MODE_OUTPUT_PUSHPULL | PAL_STM32_OSPEED_LOWEST); // NSS palSetPadMode(GPIOA, 5, PAL_MODE_ALTERNATE(5) | PAL_STM32_OSPEED_LOWEST); // SCK palSetPadMode(GPIOA, 6, PAL_MODE_ALTERNATE(5) | PAL_STM32_OSPEED_LOWEST); // MISO palSetPadMode(GPIOA, 7, PAL_MODE_ALTERNATE(5) | PAL_STM32_OSPEED_LOWEST); // MOSI palSetPad(GPIOA, 4);// set NSS high mmcObjectInit(&MMCD1); mmcStart(&MMCD1, &mmccfg); GFILE *f; f = gfileOpen("config.cfg", "r"); if (!f) { errmsg = "Err: Open WAV"; } else { gfileRead(f,fbuff,20); gfileClose(f); } i must use function mmcObjectInit() etc.? these are chibios functions. i looked in demo dir,demos/modules/gaudio/play-wave, nothing is initialized (how to choose what spi to use?), after prepare buffer, start to open file on card directly, i not understand how he know what spi use and how he initialize things. Anyway in the piece of code i write up there, everytime f = 0 , if i leave mmc... functions or not, result is the same. maybe i have forgot some step to make functional this? there are only some few example about gfile. thanks
×
×
  • Create New...