Jump to content

jtronix

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by jtronix

  1. I solved this problem with the help from UECIDE forum by relocating C style declarations into a separate .c file. For detailed solution see the link I posted earlier. This means that uGfx library does not require modifications, except in gdriver.h

  2. Editing only one line in gdriver.h is not a big problem, I can live with that.

    But I found one more problem related to gcc duplicate const error. Customised keyboard layout requires GVSpecialKey declaration in the main sketch. After adding #include "src/gwin/gwin_keyboard_layout.h" to the sketch, UECIDE shows the following two errors:

    • Error at line 53 in file gwin_keyboard_layout.h:
    ‣ duplicate 'const'

    • Error at line 54 in file gwin_keyboard_layout.h:
    ‣ duplicate 'const'

    Compiling Failed

    Is there any way around this issue? Perhaps adding some gcc compilation flags? I would like to avoid modifying uGFX source if possible.

  3. I'm not sure if UECIDE  treats warnings as errors, its configured as in the picture below:

    599beb8d8164f_uecideconfiguration.PNG.55ed344cec589aa095d029f9af16b7ca.PNG

    UECIDE calls pic32-g++ compiler with the following parameters:

    -mprocessor=32MX795F512L -Os -G1024 -g -fno-exceptions -ffunction-sections -fdata-sections -mno-smart-io -mdebugger -Wcast-align -fno-short-double -DF_CPU=80000000L -DARDUINO=157 -D_BOARD_MEGA_ -DMPIDEVER=10001932 -DMPIDE=157 -DOPT_BOARD_INTERNAL -DOPT_SYSTEM_INTERNAL -DIDE=UECIDE -D_USB

    UECIDE  console shows the following uFGX messages on compilation, there are more warnings but they are not relevant to uGFX:

    • Error at line 72 in file gmouse_lld_ADS7843.c:
    ‣ initialization from incompatible pointer type [enabled by default]

    • Error at line 72 in file gmouse_lld_ADS7843.c:
    ‣ (near initialization for 'GMOUSEVMT_OnlyOne[0].init') [enabled by default]


    • Error at line 90 in file gdriver.h:
    ‣ duplicate 'const'

    Compiling Failed
     

     

  4. Hi Joel, thank you for your help. I would wait until touch panel is functional before using it as an example project.

    There are two ADS7843 configurations which I can use as a starting point: FireBull-STM32F103-FB and HY-MiniSTM32V. Later I will probably need some help with function descriptions, but for now I'm ok. I will publish the results anyway.

  5. I successfully configured Arduino sketch to use GDISP module on ChipKit Max32 and TJCTM24028-SPI (ILI9341 & TS2046) hardware. I have attached a sketch folder in case somebody else finds this interesting. Use UECIDE to open it.

    Now I need to get TS2046 touch panel working. The TS2046 readme.txt file says to use the ADS783 driver due to full compatibility with the XPT2046. Is there ADS7843 board sample configuration file available for Arduino platform?

    gfx_test.sar

×
×
  • Create New...