Jump to content

Joel Bodenmann

Administrators
  • Posts

    2,620
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Joel Bodenmann

  1. I am sorry for my late reply. I have been quite busy these days.

    Module name

    As it makes sense to keep the module name as short as possible (see the following point), I'd strongly prefer to call the module GCONF instead.

    API

    I totally agree with the API listed by steved. However, the API style of uGFX is as the following: (); using camelCase. Following these rules, the API has to look like the following:


    bool_t gconfWrite(uint16_t tag, const void *data, uint8_t size);
    uint8_t gconfRead(uint16_t tag, void *data, uint8_t size);
    uint8_t gconfSize(uint16_t tag);

    I'm sorry but I am very pedantic when it comes to API and naming convention. I am already struggling with the older GDISP code that does not fit into the current naming style. However, this will be updated with the next major release.

    Edit: I just realize that inmarket already adjusted the API naming accordingly in his second last post.

    With everything else I agree. This looks like a solid base to start.

    ~ Tectu

  2. I am AWFULLY sorry. I actually had "make sure that GDISP_RAM is correct" in the list from the other post, but for some reason I deleted the wrong line.

    But I'm glad to hear that it is working now :)

    Feel free to open a new thread for any question you might have.

    ~ Tectu

  3. I'm sorry, I meant "Call gdispClear() after gfxInit()", not gdispInit() (there even isn't such a thing).

    At the moment I cannot see any reason why your board_init() does not get called. Please step through your code and show us your trackback / calltree if necessary.

    Setting the backlight there does not seem to be a very good idea to make sure that the function is being executed as the backlight settings will probably be overwritten after that call. Step through your code instead (or light up an LED if you're not able to properly debug it).

    Well, when it's an ILI9320 then you should probably also know that there have already be an awful lot of problems with the ILI93xx drivers. It looks like there are MANY different revisions of that chip out there. I myself even had the problem that I received an ILI9325 and the chinese person told me it's an ILI9320 and vice-versa.

    What I strongly recommend you to do is replace the initialization code inside gdisp_lld_init() and replace it with the working ones you have.

    ~ Tectu

  4. It looks like you're using the wrong driver. The web site you linked says that the board uses an SSD1289 controller, but inside your board.mk you include the ILI9320 one. Please make sure that you include the right driver. Change the board file accordingly.

    Other things I have noticed:

    • Disable all the other subsystems until you have your GDISP module working
    • Don't uncomment values in the gfxconf.h file when you leave it to the default value anyway (talking about GDISP_TOTAL_XXX
    • Call gdispClear() after gdispInit(). I recommend to take some vibrant color for debugging (like blue or red).

    ~ Tectu

    Edit: fixed typo gdispInit() -> gfxInit()

  5. Using the GFILE to be able to read and write these configs to any file sounds sane. However, I'd definitely keep the GFILE magic hidden behind a real uGFX configuration API. This could become part of the core system (gfx.c) in form of:


    gfxConfigSave()
    gfxConfigRead()
    gfxConfigXxx()

    About the buffer size: I'd recommend to make the first few bytes the information about the size of the actual content. One could then read out these few bytes, allocate the space and continue reading. This could either be implemented in form of gfxConfigGetSize() or simply doing it manually in gfxConfigRead().

    ~ Tectu

  6. Could you please attach your project? The important files are:

    • main.c (any any other related sources)
    • Makefile
    • gfxconf.h
    • board files

    One more thing to check: Can you please make sure that the backlight is on? You should try to manually enable it in your main source files first. It's very likely that your display is actually displaying it but you just can't see it as the backlight is off. Also, when the backlight is on the screen might either be white or filled with garbage. The later would indicate a successful display controller initialisation.

    We're more than happy to help where we can.

    ~ Tectu

  7. Hello himsha and welcome to the community!

    I am working with SSD1963 7" 800x480 TFT. Refresh that I am able to get is ~8FPS using FSMC. How ever it is seem that maximum FPS that can be achieve is ~30 FPS. Is any here able to achieve this FPS?

    We need a lot more information to help you with this one.

    • uGFX version (or repository state)
    • Underlying operating system used (the GOS port you use)
    • The microcontroller that you are using
    • The clock setup of your microcontroller

    And the most important thing: Please attach your board file (gdisp_lld_board.h).

    And 2nd how µGFX embedded GUI is helpful in designing TFT source code?

    I don't understand your question, I'm sorry. Could you try to rephrase it?

    ~ Tectu

  8. Hello Wolf,

    Sorry for our late reply but as we mentioned in the Announcement section we were not only for a couple of days.

    Do you still have the problem? I took out my STM32F407-Discovery board with the same Embest baseboard + LCD module and everything works as expected here. Could you please attach your main.c (test case) and your gfxconf.h?

    ~ Tectu

  9. I won't be online at all until the 16th of June, 2014. All posts will be handled after that date for sure.

    The second uGFX maintainer, Andrew aka inmarket, will have a look at the forum during his spare time and handle posts accordingly.

    Thank you for your understanding.

    ~ Tectu

  10. Hello pgeiem and welcome to the community!

    Looks like you're just in time! We have added a generic framebuffer driver for the GDISP module just yesterday. You can find it under /drivers/gdisp/framebuffer: https://bitbucket.org/Tectu/ugfx/src/1f ... ?at=master

    To use it, you only have to write the board file. The board file is the interface between the software driver and your actual hardware. You can find a corresponding template in the drivers directory.

    About the GOS port: You can use the raw32 port which is also part of the official uGFX repository. The port allows it to run uGFX on any bare-bone system. To make it run, you only have to implement/provide the following two functions inside your project:


    systemticks_t gfxSystemTicks(void);
    systemticks_t gfxMillisecondsToTicks(delaytime_t ms);

    The first routine gets a "tick" time from the hardware. The 2nd routine converts a number of milliseconds to a number of ticks (normally just a division by a fixed number).

    I hope that helps. Let us know should you face any problems.

    ~ Tectu

  11. I just gave it a quick try on the Embest-STM32-DMSTF4BB board (the STM32F407-Discovery with the LCD extension) and the demo works nicely out of the box.

    Could you track down the problem any further in the meantime? Have you tried a custom image instead?

    Does another demo, for example the list widget demo, work without any problems?

    Edit: There was a bug fix in the mean time. Can you please update to the latest master branch?

    ~ Tectu

  12. I'm currently on the road so I can only test with the simulator and there everything works just nicely.

    I assume that the problem is with the color format. Have you tried to convert and display an image on your own?

    Either way, I'll be at home in about one hour so I can have a closer look.

    Edit: This might take some longer than expected - I turned sick.

    ~ Tectu

  13. Either that or we could also probably just take out the definitions for TRUE and FALSE from the generic GOS code and put it into the actual port. This way one could simply do the following in the freertos.h file:


    #define TRUE pdTRUE
    #define FALSE pdFALSE

    ~ Tectu

×
×
  • Create New...