Jump to content

chankour

Members
  • Content Count

    6
  • Joined

  • Last visited

About chankour

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Arduino Due with RA8875 SPI LCD and FT5206 capacitive touchscreen driver. The RA8875 is working fine, I tried adding support for touch input: 1. I initialed the FT5206 controller and read the touch coordinates independently from uGFX without an issue (using I2C commands directly), so the hardware is working. 2. I added gmouse_IId_FT5x06.c and gmouse_IID_FT5x06_board.h to gfx\ugfx\drivers\ginput\touch\FT5x06 3. I added under gfx driver_FT5x06.c (That's where my other working driver_RA8875.c file is) with a single line pointing to the above #include "ugfx/drivers/ginput/touch/FT5x06/gmouse_lld_FT5x06.c". 4. I have a #define GMOUSE_DRIVER_VMT GMOUSEVMT_FT5x06 in gmouse_IID_FT5x06_board.h 5. I set both GFX_USE_GINPUT and GINPUT_NEED_MOUSE to true in gxfconf.h When I build, I get: libraries\gfx\gfx.c.o: In function `_gmouseInit': <...>\Documents\Arduino\libraries\gfx\ugfx/src/ginput/ginput_mouse.c:653: undefined reference to `GMOUSEVMT_OnlyOne' After searching and reading through the threads, the general reason behind this error is usually that I enabled the mouse input, but didn't define/add files for the driver/board. I believe that I did, but I am sure I missed something in the process. I looked at ugfx\boards\addons\ginput\touch and there seem to be an MCU and ADS7843 folders there, since I could not find any documentation, I tried creating an FT5x06 folder there and putting my board.h file there, but how do I include it in the build(like done in step 3. above). Any help would be appreciated. Thanks, Wahran.
  2. chankour

    ILI9341 SPI on STM32F7 and System Workbench

    I did check that I wasn't inadvertently selecting anything else, and I would always go visually inspect the list of folders in the filter box to make sure after all the selections/deselections are ultimately what they are supposed to be. Anyway, it's building now, time to pull out the logic analyzer to figure out what's going on on the SPI bus.
  3. chankour

    ILI9341 SPI on STM32F7 and System Workbench

    Ok, filter problem solved, if anyone has a similar problem: I was doing a click top item, Shift, then click last item to select everything under drivers, after, I click on CTRL and the item I want to exclude, it looks fine under the filters, but it doesn't get excluded in project explorer. Manually clicking on every item and skipping the excluded one under filter seems to work, or maybe I was doing something wrong with my shift selection? Thanks again CPU20 for your help, It builds now. Chafik
  4. chankour

    ILI9341 SPI on STM32F7 and System Workbench

    Thanks for the suggestions, it makes sense now that you mentioned it, that fixed the errors I was getting, now I got a completely different problem. Throwing it in here maybe someone has a clue. I believe I know what the problem is, but not sure how to fix it: According to the instructions; in the filters, you remove /drivers, then you selectively filter everything out under /drivers, except your actual driver, in my case ILI9341, I did that, and made sure it's no longer greyed out in the project explorer. The undefined errors below seem to point to this folder, I checked it, and it is greyed out again, I checked my filters, and it is the only one not listed there, so it shouldn't be.... I cleared all filters and re-did them again, and it is still greyed out... Building target: Nucleo.elf Invoking: MCU GCC Linker arm-none-eabi-gcc -mcpu=cortex-m7 -mthumb -mfloat-abi=hard -mfpu=fpv5-d16 -specs=nosys.specs -specs=nano.specs -T"../STM32F767ZITx_FLASH.ld" -Wl,-Map=output.map -Wl,--gc-sections -o "Nucleo.elf" @"objects.list" -lm uGFX/src/gfx_mk.o: In function `hline_clip': D:\STM32F7\Nucleo\Debug/../uGFX/src/gdisp/gdisp.c:319: undefined reference to `gdisp_lld_write_start' D:\STM32F7\Nucleo\Debug/../uGFX/src/gdisp/gdisp.c:320: undefined reference to `gdisp_lld_write_color' D:\STM32F7\Nucleo\Debug/../uGFX/src/gdisp/gdisp.c:321: undefined reference to `gdisp_lld_write_stop' uGFX/src/gfx_mk.o: In function `gdispGClear': D:\STM32F7\Nucleo\Debug/../uGFX/src/gdisp/gdisp.c:1051: undefined reference to `gdisp_lld_write_start' D:\STM32F7\Nucleo\Debug/../uGFX/src/gdisp/gdisp.c:1059: undefined reference to `gdisp_lld_write_color' D:\STM32F7\Nucleo\Debug/../uGFX/src/gdisp/gdisp.c:1060: undefined reference to `gdisp_lld_write_stop' uGFX/src/gfx_mk.o: In function `_gdispInit': D:\STM32F7\Nucleo\Debug/../uGFX/src/gdisp/gdisp.c:606: undefined reference to `GDISPVMT_OnlyOne' collect2.exe: error: ld returned 1 exit status make: *** [Nucleo.elf] Error 1
  5. chankour

    ILI9341 SPI on STM32F7 and System Workbench

    Additional info: uGFX/src/gfx_mk.c was greyed out for some reason, so I went back to the filters and "unfiltered" it. Now, a couple errors are gone: rc/main.o: In function `main': D:\STM32F7\Nucleo\Debug/../Src/main.c:61: undefined reference to `gdispOpenFont' D:\STM32F7\Nucleo\Debug/../Src/main.c:62: undefined reference to `gdispOpenFont' D:\STM32F7\Nucleo\Debug/../Src/main.c:64: undefined reference to `gdispDrawString' D:\STM32F7\Nucleo\Debug/../Src/main.c:65: undefined reference to `gdispDrawString' D:\STM32F7\Nucleo\Debug/../Src/main.c:66: undefined reference to `gdispDrawString' collect2.exe: error: ld returned 1 exit status make: *** [Nucleo.elf] Error 1 I also checked the Debug compiler output folder, and there are objects files under uGFX/drivers and uGFX/src, but nothing for uGFX/src/gdisp (where the "undefined" errors point to), I do have have: #define GFX_USE_GDISP TRUE set in my gfxconf.h.
  6. Hi, I am trying to get uGFX working using an ILI9341 in SPI mode on an STM32F767 Nucelo board. I am getting stuck compiling what I put together, and would appreciate any help or pointers. I followed the instructions at this link (single file inclusion) https://wiki.ugfx.io/index.php/Using_Eclipse I am attaching a snapshot of the eclipse project (eclipse.jpg) that combines the main.c source code, the project tree on the left (showing what is included and filtered) and the error messages at the bottom. I looks like the uGFX\src folder is not being build, but I did filter out the gfx_mk.c file there, see attchment filters.jpg showing that this is the case. Path for uGFX is included as well in "Include directories". What am I missing? Thanks, Chafik
×