Jump to content


  • Content count

  • Joined

  • Last visited

About nquantum

  • Rank
  1. Support for STM32F469i-Discovery

    Yes that correct I write to buffer and LTDC use its AHB and FIFO stuff trough FMC/QUADSPI interface to take care of update screen. Then LTDC automatic send to DSI HOST stream to panel trough serial bus. But smooth or not so sure. I should lag for some I think since it trough 2process, LTDC and DSI HOST. Since I only experiment with still picture only. Never try animation yet. Normally microcontrollers they direct use their I/O to interface with TFT/LCD? They have no LTDC? I never experience other TFT before only basic character LCD in those 8bit micro. This is my first TFT panel with 32bit micro. (very happy already to start to see 1st picture in TFT myself ) You quite correct. I also attach pictures for reference. For video mode LTDC generate sync signals to DSI HOST then DSI stream serial to panel. For command mode send command and data to update GRAM of panel then panel controller take care of update panel. Qualcomm datasheet give info quite clear. (ST make me so headache) The DSI is a specification by the MIPI and is targeted at reducing the cost of the display subsystem in mobile and embedded-computing devices. It defines a serial bus and communication protocol between the host and the device (client). The bus includes one high-speed clock lane and one or more data lanes. Each lane is carried on tow wires and uses low voltage, differential signaling. So I think that why they do care on price than performance. By reduce pin count can reduce complex of system also cost. I think it just like parallel port change to serial port that it. And for command mode they do need panel to manage more thing: GRAM, controller. Instead video mode so that it can use dumb display only to display streaming.
  2. Support for STM32F469i-Discovery

    Update driver files after I see: https://community.ugfx.io/topic/413-ft6x06-driver/ STM32F469 Discovery use FT6206. The compatible of FT5x06 and FT6x06 I read from this topic let me check datasheet of both. There is difference FT5x06 can have touch point up to 10 but FT6x06 only 2. Also little bit difference in register. Some doesn't exist (according to datasheet) in FT6x06. So I update the define value. However after test with demos/tools/touch_driver_test I found out that some of those don't exist register and compensate setting from FT5x06 do have positive effect. So I keep those compensate setting and give comment information in to file and also adjust some register. Also found out that the precise touch of manual crosshair calibration effect whether I can touch near the edge of screen or not. According from drawing page. The more precise touch I do also proper GMOUSE_FT6x06_FINGER_CALIBRATE_ERROR and GMOUSE_FT6x06_PEN_CALIBRATE_ERROR value do effect the precise of touch result and near edge of screen touch. Drawing page let me verify those calibration. And I can see manual calibration does better job than auto calibration. The precision is better. ft6x06.h gmouse_lld_FT6x06.c gmouse_lld_FT6x06_board.h
  3. Support for STM32F469i-Discovery

    I've finish let try these files. Thank for Maytham this is base from him. Thank for suggest of Joel Bodenmann and inmarket for detail information. Driver depends on ST HAL , Component , BSP also I take auto-calibrate function from FT6x06 driver supply by ST. Take a look and please comment/review. Also still curious to know this. For benchmark tools I got 123,227,408 Pixels/s. It not a refresh rate. How can I measure refresh rate? Or 123,227,408/(800x480) ? ft6x06.h gmouse_lld_FT6x06.c gmouse_lld_FT6x06_board.h
  4. Support for STM32F469i-Discovery

    For benchmark tools I got 123,227,408 Pixels/s. It not a refresh rate. How can I measure refresh rate? Or 123,227,408/(800x480) ?
  5. Support for STM32F469i-Discovery

    I found info in CMSIS I will try replace: DWT_CYCCNT to DWT->CYCCNT DWT_CTRL to DWT_CTRL Then compile no error. I haven't bring ST board now. Will try test result tonight.
  6. Support for STM32F469i-Discovery

    That a good question! I should ask myself. After think a lot don't know how to measure it! I search from forum If refresh rate come from initial code in driver then. - DSI HOST upto 500Mbits/lane > I use 2 lanes. > 1Gbits total - I use RGB888 so 24bpp - LTDC clock is 27.429MHz So for DSI HOST 1Gbist/800x480pixelsx24bpp = 108Hz , And for LTDC 27.429M/800x480=71.429Hz >> So if not wrong calculate I should get >60Hz. I think. Is there a way to verify this? In case of demo/benchmarks I get error on 'DWT_CYCCNT' undeclared (first use in this function) 'DWT_CTRL' undeclared (first use in this function) Thank you, inmarket. I can see the output onscreen solid and good. That clearly ugfx manage well. However I do record clips vdo to more clearly explain. So that you can see if this is normal or not. And you can see in the begining the 2048 value... clip1 clip2 Please take a look and suggest/comment.
  7. Support for STM32F469i-Discovery

    Take a break: A pic with create from uGFX Studio. Look nice :-) No action code for touch-button event yet (still learning) :-)
  8. Support for STM32F469i-Discovery

    Okay thank Now I see that PEN/FINGER. Been busy these days. Now I can use auto-calibrate from ST FT6x06 without problem. Have to say there is hard to find detail in datasheet even hard to find data sheet/application note. Only get little strange: test demos/tools/touch_raw_readings they seem to skip calibration 4-spot touch when power on unlike others demos but that okay. The initial display after uGFX screen show x = 2048, y = 0, z = 1 meaning MSB 12th bit in x is set. Just like someone touch. But there isn't. Once I press any place then it show number of place as normal for example x = 125 ,y = 111 ,z = 1 and back to x = 0, y = 0, z = 0 then no touch. Every time like this so not random issue. Still find what cause this. From what I test I seem like nature of controller since position reading work as normal, also writing. Still look into it more. Do u think of anything?
  9. Support for STM32F469i-Discovery

    I think I get it the reason to call read_word , another function than read_byte coz this will take care of the coordination.
  10. Support for STM32F469i-Discovery

    I have some question. Okay GMOUSE_FT6x06_PEN_CALIBRATE_ERROR, GMOUSE_FT6x06_FINGER_CALIBRATE_ERROR 1. I've increase GMOUSE_FT6x06_PEN_CALIBRATE_ERROR value when I use finger in touch calibration now it pass. But try with GMOUSE_FT6x06_FINGER_CALIBRATE_ERROR is not. So question is how ugfx know I use finger or pen? In GINPUT? In what file/function it make decision? I try to find but not found. Or it is decide in board driver file? 2. In driver GINPUT I've check detail about read x,y,z is it okay to only XH, YH register? No need XL, YL? /* Get the X, Y, Z values */ pdr->x = (coord_t)(read_word(m, FT6x06_TOUCH1_XH) & 0x0fff); pdr->y = (coord_t)read_word(m, FT6x06_TOUCH1_YH); pdr->z = 1; Even it work well but I see in datasheet there is XH,YH for 4MSB bit and XL,YL for 8LSB bit. No need to get that value? Or it is enough already to get only XH,YH register? And yet also FT5x06, FT6x06, FT5336 in ugfx/drivers/ginput/touch seem to be like this also (read from XH,YH). Also in XH bit 7-4 is for other thing not position also YH bit7-4. There no need to mask those and ugfx can understand? Yes driver I test it almost work well now only I check for detail and check in the auto-calibration but these question are still in my curiosity.
  11. Support for STM32F469i-Discovery

    Thread solved! Thank you for your real detail. (how can you spot problem so quick!?) I try sourcetree and master repository already. Great even it not solve this problem. However set the GFX_CPU to GFX_CPU_CORTEX_M4_FP in gfxconfig.h does solve problem. Now thread working. Then I go back and try GINPUT again and it work now! Wow! I not yet touch GFX_COMPILER but it seem to work well now. gmouse_lld_FT6x06_board.h Come with self-calibration #define GMOUSE_FT6x06_SELF_CALIBRATE FALSE//TRUE when it set to true. Out put from demos/tools/touch_raw_reading resolution is limited 644-798 / 0-58 but once I set self-calibration to false then it seem to be 800 / 480 same as display. I will check into detail. Also when self-calibration is false , calibration display-page is apear after power-on/ugfx logo. Only it calibration failed every time I do calibrate even slow/long press touch. I going to see it.
  12. Support for STM32F469i-Discovery

    I've read the book about stm32/freertos don't know something to do with RAW32 or not. Since I also use stm32 and also systick
  13. Support for STM32F469i-Discovery

    Thank for quick respond! I use GNU ARM Embedded Toolchain 5-2016-q3-update , or 5.4.1 20160919 to be exactly. With Eclipse. For uGFX I use master branch download zip file from https://git.ugfx.io/uGFX/uGFX even I just try download while ago. Still same result I told you Hardfault on two thread (no thread or 1 thread there is no hardfault) Keep in mind that GFX_OS_USE_KEIL is not necessarily the correct setting when using Keil µVision. That setting is used when using the Keil RTX (CMSIS compatible) RTOS. It's possible to use any underlying system such as FreeRTOS or even just running baremetal in a Keil µVision project. The GFX_COMPILER and GFX_CPU macros are the ones you want to worry about in this case. For this I will try and also search into forum also. And I will let you know. To be clear. This issue is coming from threading thing in RAW32 right? Meaning if I try switch Chibi os or freeRtos then it might no problem about this? I'm new to both RTOS so sooner or later I will try that. Maybe I start with freeRTOS 1st since there is more document and last time I try ChibiStudio I got a lot of error to fix and hunt. For now I try to stick and solve RAW32 1st.
  14. Support for STM32F469i-Discovery

    I run demos\modules\gos\threads : If both threads then it hardfault (I place trace_printf in location of hardfault call routine) SEGGER J-Link GDB Server V6.12f - Terminal output channel thread 1 thread 2 thread main HardFault! If none thread then no problem SEGGER J-Link GDB Server V6.12f - Terminal output channel thread main thread main thread main thread main thread main If either 1 thread then also no problem SEGGER J-Link GDB Server V6.12f - Terminal output channel thread 1 thread main thread 1 thread 1 thread main thread 1 SEGGER J-Link GDB Server V6.12f - Terminal output channel thread 2 thread main thread 2 thread main thread 2 thread 2 thread main So that meaning of this? Thread don't work properly? Cause of this is? RAW32 have problem? Systick setting have problem? I guess that is relate to demo/tools/touch_raw_reading right? But how come demo/tools/touch_driver_test ?
  15. Support for STM32F469i-Discovery

    Problem with hardfault. Still don't know why? I use RAW32. I try with: /demos/tools/touch_calibration_brabber /demo/tools/touch_driver_test /demo/tools/touch_raw_readings All can compile without error. The touch_calibration_brabber and touch_raw_readings got HardFault exception at same line : m = (GMouse *)gdriverGetInstance(GDRIVER_TYPE_MOUSE, 0); For touch_driver_test can run without HardFault on that problem line with previous 2. But when I try to delete the rest of program start from this line to the end, in another word retain code only beginning until this line just for test/isolate problem. Then I get HardFault! Just same file only I delete the rest then HardFault come!? How can this be? Where the problem come from? I try to step into those line , it seem before hardfault , compiler can't see the value of type. So after this line: if (pd->vmt->type == type) { it jump to hardfault. But touch_driver_test when it run compiler seem to see value of type like the picture below. But I don't know when I just delete the rest of program can try compile then the 3 picture , no longer can see value of type. The driver seem to work even not yet full range since I get reading value show in touch_driver_test. Only problem is about the hardfault. What cause of this? How to solve?