Jump to content

blacktronics

Members
  • Posts

    15
  • Joined

  • Last visited

Posts posted by blacktronics

  1. Oh i mis-read that initially as needing to be in there, removing it fixed it, it builds now.

    However, once flashed the display only shows garbage similar to what is seen during startup of the example project you provided.
    Looking at the structure of the garbage, it looks like some horizontal misalignment.
    a40a57628f71dd2f32cd11a366676b9f.png.2c213b6a2d0fb8515381c454e8b8b56d.pngIMG_20170531_150947.thumb.jpg.ff4c782308f145f134e8db2fdb50a04d.jpg

  2. Okay, sorry to bother you again - the template you provided works fine. 
    However, how do I now use the output from studio? 
    I just copied the contents of the output folder into my inc folder, and copied the code from main_example.c into main.c 
    It went apocalypse on me:

    fe3c0b3fc57b9fe5a5c87d33ed1329e6.thumb.png.e24cc3202e5cb51d336ab87f53a01a7c.png

  3. Ok i am giving in, i am starting to lose my mind. 
    I can't seem to get uGFX to actually work on a STM32F746G-DISCOVERY, i've documented the steps I took in pictures: 
    I am not sure if this is an issue related to this board specifically or not, but i figured adding to this thread makes more sense than making a new one.
    I mostly followed the eclipse guide.
    I first created a project using the new c project wizard:

    bda46015711b7523b4567e2c8736e1f2.png.d21139962413b2914f7ac63e0c9527ce.png

    15f4159c9156a3947bd3f79af4420fe6.png.1cffea2cf017a8d7aeff5f8ced18840d.png

    e46fab3329ae163ad636159f7950aa74.png.5700026815c367bea4a611bfed7f3ea5.png

    778bb5187e6e29348c7e461f329ee863.thumb.png.2b225453b81894b1a2256024fe756d6d.png

    I then imported uGFX as described in the guide and excluded everything except for \src\gfx_mk.c

    47ad62fadbba3598170cca6983d4a47d.png.ed561de55bf2040088954684814c4ab8.png

    cbda6e8a7be5e87ee9ba49c86e00b48e.thumb.png.08d56133d6f1203e20c8b8fb00a2e2f9.png
    c1e8c84da378b0a280c0ee47f5226111.thumb.png.0533d4f1866052d75f8349292e2bc9bc.png
    268747690ca136e9d65c9131a9a3251f.thumb.png.72000b9f76fec86afd23216ef230dda3.png

    I then copied and edited gfxconf.h as per the guide, and included gfx.h in main.c, with a call to gfxInit();
    It compiles without errors.
    a313d9a9ed92478ef54e55a4013a0c15.thumb.png.8254e0d1a6bd48ca259962b2fde94c06.png

    So I went on to including the drivers for the board. i removed the drivers/ filter and added all the other filters so drivers/gdisp/STM32LTDC and drivers/ginput/touch/FT5336 are allowed

    e051aaf9dce2e19bf78120f247021513.thumb.png.ea298e376fb5e2a4150da1ffc350e5e7.png

    After this step, the project still compiles, although i do not have the board file included yet - most likely no relevant function calls yet.
    At this step i am not quite sure which board files to include, here is what I did though: 
    I copied the following files from boards/STM32F746-Discovery to my inc folder:

    • board_STM32LTDC.h
    • stm32f7_i2c.c
    • stm32f7_i2c.h
    • stm32f746nghx_flash.ld

    I am uncertain what do do with stm32f7xx_hal_conf.h from example_raw32, does that go into HAL_Driver/Inc/ ?

    I also copied gmouse_lld_FT5336_board.h to uGFX/drivers/ginput/touch/FT5336 and deleted gmouse_lld_FT5336_board_template.h

    Everything still compiles fine.

    After that, i grabbed the while loop from main.c and the gfxconf.h from this template:

    When i now try to compile it does this:
    77981beed621781ba75b45f09316222e.thumb.png.e4f0dba3cd2e1ccac4a15b00d2693446.png

    I am completely stuck, really close to setting stuff on fire, send help.

×
×
  • Create New...