Back to project journal
20 Aug 2026

Integrating Touch Sensor

completed the driver for touch and started the QSPI for flash

  • firmware
baremtal RCC
Finished writing driver for the TSC2007 Resistive touch Controller

Today, I received the TSC2007 touch Sensor, so i started integrating, this was a weird sensor, this was a new kind of sensor for me gave me a hard time, then figured it out eventually, then figured out how it works and did finish writing the driver, then integrated with the my_touchpad_read() function, to the lvgl library. I have attached the picture of the gui shoing the x and y axis of the touch. Also i noticed that there is a flicker in the display even though it is tunnin gin 52fps, i figured out that i should have provided the second layer frame buffer, the issue is i was not able to do that, while compling there was not enough space. basically the RAM_D1 got almost full, so i was not able to create the second fb for the layer2. to sore a full rgb888 image in the a fb for 480 x 272 display i would need, 480 * 272 * 3 * 1 Bytes = 391680 Bytes, which is 391.68 KB, the RAM_D2 is also 288KB, and D3 is 64KB, so i dont have enough space that why i stared wokring in the external memory peripherals in my boards, FK743, i have an 32KB RAM connected though FMC, and the flash of 8MB connected through QSPI. I have firsted started out with the QSPI now.

What I did

  • Completed integrating touch sensor and the driver.
  • Started with the qspi for flash.

Next

  • start firmware/ software for QSPI & FMC.
touch1
My workstation.