I'll try to describe the situation, the sequence of our actions and questions.
We run the uGFX library on Xilinx ML506 board:
- processor core Microblaze (32-bit),
- IDE XilinxSDK 14.7 based on Eclipse
- GCC compiler
- no operating system
- the display device driver – framebuffer.
1. As you know the GCC compiler uses makefiles, but there are problems with the paths to the header files when we add the uGFX in project (the IDE does not see header files, even though they were registered in the corresponding makefiles), e.g.:
https://pp.vk.me/c631527/v631527291/46353/5LJ2VlW0J7U.jpg
This problem we solve by writing manually the paths to the necessary files, or as it did now, we solve the problem by putting in the project settings the paths to the necessary header files:
https://pp.vk.me/c631527/v631527291/4635d/R1x5Lpzqr0E.jpg
https://pp.vk.me/c631527/v631527291/46367/d4Hq-Mv2X_g.jpg
To do in this way is not quite right, but, unfortunately, we don't know why the makefiles don't work correctly.
System configuration file gfxconf.h the following:
#ifndef _GFXCONF_H
#define _GFXCONF_H
/* The operating system to use. One of these must be defined - preferably in your Makefile */
//#define GFX_USE_OS_CHIBIOS FALSE
//#define GFX_USE_OS_WIN32 FALSE
//#define GFX_USE_OS_LINUX FALSE
//#define GFX_USE_OS_OSX FALSE
#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_GMISC TRUE
/ Features for the GDISP sub-system. /
#define GDISP_NEED_VALIDATION TRUE
#define GDISP_NEED_CLIP TRUE
/ Features for the GWIN subsystem. /
#define GWIN_NEED_WINDOWMANAGER TRUE
#define GWIN_NEED_GRAPH TRUE
/ Features for the GMISC subsystem. /
#define GMISC_NEED_FASTTRIG TRUE
#endif / _GFXCONF_H /
2. We use the version without an operating system. For this we implemented the functions gfxMillisecondsToTicks() and gfxSystemTicks() in the file "src\gos\gos_raw32." and the function board_init () in the file "drivers\gdisp\framebuffer\board_framebuffer.h"
The problem is that the function board_init() is not compiled due to the fact that the code in #ifdef GDISP_DRIVER_VMT not active: https://pp.vk.me/c631527/v631527291/4633f/_jDE7TNe6_E.jpg
But at the same time #define IN_DRIVER in the file "src/gdisp/gdisp_driver.h" is defined.
See screenshot:
https://pp.vk.me/c631527/v631527291/46349/v5vj5Pa0hYI.jpg
Had someone experience with uGFX on Microblaze core in the development environment based on Eclipse?
I'm attaching to the message the archive with the project in Xilinx SDK 14.7, the source code files are in the archive: “..\workspace\ugfx\src\”
SDK_xilinx_standart.zip