vahid4134
-
Posts
21 -
Joined
-
Last visited
Content Type
Forums
Store
Downloads
Blogs
Posts posted by vahid4134
-
-
Hi
Is there any example use ltdc with https://github.com/ChibiOS/ChibiOS-Contrib.
I test ugfx with STM32F429i-Discovery board on chibios 3 but not work.
-
I worked to integrated fribidi to show Bidirectional (Complex RTL and LTR) language in ugfx.
This is my repository
https://bitbucket.org/vahid_sohrabloo/ugfx
I Tested on stm32f429 with ili9341 and correct work.
I create fribidi folder in 3rdparty and create one example (fonts_bidi)
Please check my code if no problem I create pull request.
-
you right.
I am php programmer . if I can help please tell me
-
Hi
I want to use custom font but any ttf file uploaded to ugfx.org/fontconvert.php say "Could not import font - bad file format?"
-
I worked on touch and widgets.
-
Finally Work. Horaaaaaaaaaaa.
Very thank you inmarket .
I very soon release my code and work on touch.
But I change very litle in ugfx.
-
are you sure you're code is correct?
I have error
./ugfx/src/gos/gos_mbed.h:52:9: error: 'gfxMutex' does not name a type
typedef gfxMutex void; -
sorry for my bad English. I have question. I Switch to Mbed 2. and try to display.
I need to use mbed data type in H file (Muttex) In example.
I don't know how to handle. I can't Use mbed.h in header but need datatype Mutex that defined in mbed.h.
Just please help in Mutex functions.
-
Thank you.
I need to use some type in mbed.h (need c++) to define in gos_xyz.h file
like this
in my header file need Mutex object type
void gfxMutexInit(Mutex *pmutex);and in my cpp file
void gfxMutexInit(Mutex *pmutex)
{
//todo
*pmutex = new Mutex;
} -
did ugfx support unicode and RTL language such as Persian, arabic and ....
-
Thank you.
I finaly compile with out error and runtime error. but on my dispay not show anything.
I create new ili9341 to work with mbed spi
void init_board(GDisplay *g){
_spi.format(8,0);
_spi.frequency(100000);
_CS=1;
_DC=1;
_reset=1;
}
void post_init_board(GDisplay *g) {
(void) g;
}
void setpin_reset(GDisplay *g, bool_t state) {
if (state == TRUE) {
_reset=0;
} else {
_reset=1;
}
(void) g;
// (void) state;
}
void setpin_dc(GDisplay *g, bool_t state) {
if (state == TRUE) {
_DC.write(1);
} else {
_DC.write(0);
}
(void) g;
// (void) state;
}
void set_backlight(GDisplay *g, uint8_t percent) {
(void) g;
(void) percent;
}
void acquire_bus(GDisplay *g) {
_CS = 0;
}
void release_bus(GDisplay *g) {
_CS = 1;
}
void write_index(GDisplay *g, uint16_t index) {
_DC.write(0); // 0=cmd
_spi.write((int)index); // write 8bit
_DC.write(1); // 1=data next
}
void write_data(GDisplay *g, uint16_t data) {
_spi.write((int)index); // write 8bit
}
void setreadmode(GDisplay *g) {
(void) g;
}
void setwritemode(GDisplay *g) {
(void) g;
}
int16_t read_data(GDisplay *g) {
return _spi.write(0);
}and in my app
coord_t width, height;
coord_t i, j;
gfxInit();
width = gdispGetWidth();
height = gdispGetHeight();
// Code Here
gdispDrawBox(10, 10, width/2, height/2, Yellow); -
I remove mbed.h and compile with gcc and not give me error.
-
I very try to fix this but I dont know how to fix.
I include drivers/gdisp/ILI9341/gdisp_lld_ILI9341.c file but I have this error again
/home/vahid/blinky2/yotta_modules/mbed-ugfx/source/src/gdisp/gdisp.c:607: undefined reference to `GDISPVMT_OnlyOne' -
My g++ version
gcc version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 224288] (GNU Tools for ARM Embedded Processors)Ok I change some code in ugfx to work correctly with g++
but now I have again problem
this is my config file
#define GFX_USE_OS_RAW32 TRUE
/* GFX sub-systems to turn on */
#define GFX_USE_GDISP TRUE
#define GFX_USE_GWIN TRUE
#define GFX_USE_GINPUT TRUE
#define GFX_USE_GEVENT TRUE
#define GFX_USE_GTIMER TRUE
#define GFX_USE_GQUEUE TRUE
/* Features for the GDISP sub-system. */
#define GDISP_NEED_VALIDATION TRUE
#define GDISP_NEED_CLIP TRUE
#define GDISP_NEED_CIRCLE TRUE
#define GDISP_NEED_TEXT TRUE
#define GDISP_NEED_CONTROL TRUE
#define GDISP_NEED_MULTITHREAD TRUE
#define GQUEUE_NEED_ASYNC TRUE
/* GDISP fonts to include */
#define GDISP_INCLUDE_FONT_UI2 TRUE
/* Features for the GWIN subsystem. */
#define GWIN_NEED_WINDOWMANAGER FALSE
#define GWIN_NEED_WIDGET FALSE
#define GWIN_NEED_BUTTON FALSE
/* Features for the GINPUT subsystem. */
#define GINPUT_NEED_MOUSE FALSE
FAILED: : && /usr/bin/arm-none-eabi-g++ -fno-exceptions -fno-unwind-tables -Wl,--gc-sections -Wl,--sort-common -Wl,--sort-section=alignment -Wl,-wrap,main -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -T"/home/vahid/blinky2/yotta_targets/stm32f429i-disco-gcc/CMake/../ld/STM32F429ZI.ld" -Wl,-Map,source/blinky2.map -Wl,--start-group source/CMakeFiles/blinky2.dir/home/vahid/blinky2/source/blinky.cpp.o ym/mbed-drivers/source/mbed-drivers.a ym/mbed-unigraphic/source/mbed-unigraphic.a ym/mbed-ugfx/source/mbed-ugfx.a ym/mbed-drivers/source/mbed-drivers.a ym/mbed-hal/yotta_dummy_lib_mbed_hal/mbed-hal.a ym/cmsis-core/yotta_dummy_lib_cmsis_core/cmsis-core.a ym/minar/source/minar.a ym/core-util/source/core-util.a ym/mbed-hal-st/yotta_dummy_lib_mbed_hal_st/mbed-hal-st.a ym/cmsis-core-st/yotta_dummy_lib_cmsis_core_st/cmsis-core-st.a ym/minar-platform/yotta_dummy_lib_minar_platform/minar-platform.a ym/mbed-hal-st-stm32f4/source/mbed-hal-st-stm32f4.a ym/cmsis-core-stm32f4/source/cmsis-core-stm32f4.a ym/minar-platform-mbed/source/minar-platform-mbed.a ym/mbed-hal-st-stm32cubef4/source/mbed-hal-st-stm32cubef4.a ym/mbed-hal-st-stm32f429zi/source/mbed-hal-st-stm32f429zi.a ym/cmsis-core-stm32f429xi/source/cmsis-core-stm32f429xi.a ym/mbed-drivers/source/mbed-drivers.a ym/mbed-hal/yotta_dummy_lib_mbed_hal/mbed-hal.a ym/cmsis-core/yotta_dummy_lib_cmsis_core/cmsis-core.a ym/minar/source/minar.a ym/core-util/source/core-util.a ym/mbed-hal-st/yotta_dummy_lib_mbed_hal_st/mbed-hal-st.a ym/cmsis-core-st/yotta_dummy_lib_cmsis_core_st/cmsis-core-st.a ym/minar-platform/yotta_dummy_lib_minar_platform/minar-platform.a ym/mbed-hal-st-stm32f4/source/mbed-hal-st-stm32f4.a ym/cmsis-core-stm32f4/source/cmsis-core-stm32f4.a ym/minar-platform-mbed/source/minar-platform-mbed.a ym/mbed-hal-st-stm32cubef4/source/mbed-hal-st-stm32cubef4.a ym/mbed-hal-st-stm32f429zi/source/mbed-hal-st-stm32f429zi.a ym/cmsis-core-stm32f429xi/source/cmsis-core-stm32f429xi.a ym/compiler-polyfill/yotta_dummy_lib_compiler_polyfill/compiler-polyfill.a ym/ualloc/source/ualloc.a ym/dlmalloc/source/dlmalloc.a -Wl,-wrap,_malloc_r -Wl,-wrap,_calloc_r -Wl,-wrap,_realloc_r -Wl,-wrap,_free_r -Wl,-wrap,_sbrk_r ym/uvisor-lib/source/uvisor-lib.a -lstdc++ -lsupc++ -lm -lc -lgcc -lstdc++ -lsupc++ -lm -lc -lgcc -Wl,--end-group --specs=nano.specs -o source/blinky2 && cd /home/vahid/blinky2/build/stm32f429i-disco-gcc/source && /usr/bin/arm-none-eabi-objcopy -O binary blinky2 blinky2.bin && cd /home/vahid/blinky2/build/stm32f429i-disco-gcc/source && /usr/bin/arm-none-eabi-objcopy -O binary blinky2 blinky2.bin
ym/mbed-ugfx/source/mbed-ugfx.a(gdisp.c.o): In function `_gdispInit()':
/home/vahid/blinky2/yotta_modules/mbed-ugfx/source/src/gdisp/gdisp.c:607: undefined reference to `GDISPVMT_OnlyOne'I use ili9341.
-
I can't use gcc beacuse I need to include mbed/mbed.h and mbed use c++ library. I must use g++
-
I have this error when compile
[11/66] Building CXX object ym/mbed-ugfx/source/CMakeFiles/mbed-ugfx.dir/drivers/gdisp/ILI9341/gdisp_lld_ILI9341.c.o
FAILED: /usr/bin/arm-none-eabi-g++ -DYOTTA_COMPONENT_VERSION=\"0.0.1\" -fno-exceptions -fno-unwind-tables -ffunction-sections -fdata-sections -Wall -Wextra -fno-rtti -fno-threadsafe-statics -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__thumb2__ -Os -g -DNDEBUG -I/home/vahid/blinky2 -I/home/vahid/blinky2/yotta_modules/mbed-drivers -I/home/vahid/blinky2/yotta_modules/mbed-unigraphic -I/home/vahid/blinky2/yotta_modules/mbed-ugfx -I/home/vahid/blinky2/yotta_modules/mbed-hal -I/home/vahid/blinky2/yotta_modules/cmsis-core -I/home/vahid/blinky2/yotta_modules/ualloc -I/home/vahid/blinky2/yotta_modules/minar -I/home/vahid/blinky2/yotta_modules/core-util -I/home/vahid/blinky2/yotta_modules/compiler-polyfill -I/home/vahid/blinky2/yotta_modules/mbed-hal-st -I/home/vahid/blinky2/yotta_modules/mbed-hal-st-stm32f4 -I/home/vahid/blinky2/yotta_modules/uvisor-lib -I/home/vahid/blinky2/yotta_modules/mbed-hal-st-stm32cubef4 -I/home/vahid/blinky2/yotta_modules/mbed-hal-st-stm32f429zi -I/home/vahid/blinky2/yotta_modules/cmsis-core-st -I/home/vahid/blinky2/yotta_modules/cmsis-core-stm32f4 -I/home/vahid/blinky2/yotta_modules/cmsis-core-stm32f429xi -I/home/vahid/blinky2/yotta_modules/dlmalloc -I/home/vahid/blinky2/yotta_modules/minar-platform -I/home/vahid/blinky2/yotta_modules/minar-platform-mbed -I/home/vahid/blinky2/yotta_modules/mbed-ugfx/mbed-ugfx/src -I/home/vahid/blinky2/yotta_modules/mbed-ugfx/mbed-ugfx/src/gdisp/mcufont -I/home/vahid/blinky2/yotta_modules/mbed-ugfx/mbed-ugfx/drivers/gdisp/ILI93xx -I/home/vahid/blinky2/yotta_modules/mbed-ugfx/mbed-ugfx/drivers/gdisp/ILI9341 -I/home/vahid/blinky2/yotta_modules/mbed-ugfx/mbed-ugfx/src/gdriver -I/home/vahid/blinky2/yotta_modules/mbed-ugfx/mbed-ugfx/src/gdisp -I/home/vahid/blinky2/yotta_modules/mbed-ugfx/mbed-ugfx/src/gwin -I/home/vahid/blinky2/yotta_modules/mbed-ugfx/mbed-ugfx -I/home/vahid/blinky2/yotta_modules/mbed-drivers/mbed -I/home/vahid/blinky2/yotta_modules/mbed-hal/mbed-hal -I/home/vahid/blinky2/yotta_modules/cmsis-core/cmsis-core -I/home/vahid/blinky2/yotta_modules/mbed-hal-st-stm32f4/mbed-hal-st-stm32f4 -I/home/vahid/blinky2/yotta_modules/mbed-hal-st-stm32cubef4/mbed-hal-st-stm32cubef4 -I/home/vahid/blinky2/yotta_modules/mbed-hal-st-stm32f429zi/mbed-hal-st-stm32f429zi -I/home/vahid/blinky2/yotta_modules/cmsis-core-stm32f4/cmsis-core-stm32f4 -I/home/vahid/blinky2/yotta_modules/cmsis-core-stm32f429xi/cmsis-core-stm32f429xi -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DMBED_OPERATORS -DTARGET_STM32F429I_DISCO -DTARGET_STM32F429ZI -DTARGET_STM32F4 -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -include "/home/vahid/blinky2/build/stm32f429i-disco-gcc/yotta_config.h" -MMD -MT ym/mbed-ugfx/source/CMakeFiles/mbed-ugfx.dir/drivers/gdisp/ILI9341/gdisp_lld_ILI9341.c.o -MF ym/mbed-ugfx/source/CMakeFiles/mbed-ugfx.dir/drivers/gdisp/ILI9341/gdisp_lld_ILI9341.c.o.d -o ym/mbed-ugfx/source/CMakeFiles/mbed-ugfx.dir/drivers/gdisp/ILI9341/gdisp_lld_ILI9341.c.o -c /home/vahid/blinky2/yotta_modules/mbed-ugfx/source/drivers/gdisp/ILI9341/gdisp_lld_ILI9341.c
In file included from /home/vahid/blinky2/yotta_modules/mbed-ugfx/mbed-ugfx/src/gdisp/gdisp_driver.h:22:0,
from /home/vahid/blinky2/yotta_modules/mbed-ugfx/source/drivers/gdisp/ILI9341/gdisp_lld_ILI9341.c:23:
/home/vahid/blinky2/yotta_modules/mbed-ugfx/mbed-ugfx/src/gdriver/gdriver.h:90:33: error: duplicate 'const'
typedef const struct GDriverVMT const GDriverVMTList[1];
^
In file included from /home/vahid/blinky2/yotta_modules/mbed-ugfx/source/drivers/gdisp/ILI9341/gdisp_lld_ILI9341.c:23:0:
/home/vahid/blinky2/yotta_modules/mbed-ugfx/mbed-ugfx/src/gdisp/gdisp_driver.h:731:17: error: duplicate 'const'
const GDISPVMT const GDISP_DRIVER_VMT[1] = {{
^
[11/66] Building CXX object ym/mbed-ugfx/source/CMakeFiles/mbed-ugfx.dir/src/gwin/gwin_wm.c.o
ninja: build stopped: subcommand failed.
error: command ['ninja'] failed -
I have one problem
mbed program language is C++
ugfx program language is C
I need to compile with g++ and ugfx have many problem to compile with g++.
do you have any solution?
-
mbedOs provice allocator manager. is this memory manager?
https://github.com/ARMmbed/ualloc
I very amatur on embeded device. but try to integrate with MbedOs and sure publish as open source.
-
Thanks for response.
I found that ugfx need thread. but mbedOs dos't have thread and just use minar
https://github.com/ARMmbed/minar
Is possible to use ugfx with minar?
-
MbedOs 3 released.
can I use µGFX with MbedOs?
ugfx LTDC and chibios
in Development and Feedback
Posted
I update repository and now works good. thank you.