Jump to content

Using uGFX on bare metal


Pablo2048

Recommended Posts

It is not possible for us to check and fix your include path.

However, you need more than just the path to the uGFX top level directory. You take a look at each modules Makefile (sys_make.mk) and the toplevel Makefile (gfx.mk) to see what needs to be included.

Note that you also need to manually add all the related source files manually to your IDEs file tree. That's the pain (and price) you have to pay for using an IDE :-P

Also make sure that the relative path that you showed in the image posted above is correct. The undefined reference error that you are getting is because the gfx.h file is not being included properly in your inclusion path.

~ Tectu

Link to comment
Share on other sites

We appreciate feedback like this as we see where we have to improve our documentation.

The file board_ssd1289.h is a board file. You have to write the board file yourself as this depends on your wiring (how the display is connected to your microcontroller). You can find a template at /drivers/gdisp/SSD1289/board_ssd1289_template.h. Simply copy the file to your project directory, name it board_ssd1289.h and fill in the routines.

In order to see if everything compiles fine, I strongly recommend to just compile the template without filling in anything yet until it compiles.

~ Tectu

Link to comment
Share on other sites

Some of the better known development boards have sets of board files predefined for them. You can find those in the boards/base directory.

Some extra board files for various situations have also been put in the boards/addons directory.

If you are lucky you will find exactly what you are looking for in one of those two places.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...