Jump to content

fastlink30

Members
  • Posts

    80
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  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. thanks
  9. fastlink30

    label color

    maybe stupid question, but how to change color of label text from code? thanks
  10. 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..
  11. 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.
  12. 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
  13. 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
  14. i can't is too big the file as .zip
  15. new link http://expirebox.com/download/6917447f0 ... 7102f.html
×
×
  • Create New...