Troubleshooting
Why FT813 Touch Coordinates Read Zero With a Goodix Controller
Short answer
The zeros are not an encoding fault. A rendered image proves only the host-to-FT813 link; the Goodix capacitive controller needs the module vendor's initialization sequence before REG_TOUCH_CONFIG can deliver coordinates. Run that sequence, confirm the controller acknowledges its documented I2C address 0x5D, then set the acquisition mode once and read.
On this page
Zero coordinates from an FT813 that renders images correctly means the Goodix capacitive controller has not been initialized, nothing else. Your encoding is right: 0x5D shifted into bits 10-4 of REG_TOUCH_CONFIG gives 0x05D0, and you have already exhausted the vendor bit and both acquisition modes, which is exactly what a controller that never came up looks like. Rendering travels the SPI link between your host and the FT813; touch travels a separate I2C link between the FT813 touch engine and the Goodix, and that second link needs a vendor-specific initialization sequence before any coordinate register can move. The sections below keep your correct settings, add the missing sequence, and end with the decision for every result you can see on the bench.
The display path and the touch path are separate #
A working image proves one path: your host writes the FT813 over SPI, the FT813 holds its configuration, and the render pipeline runs. Touch acquisition uses a different path, where the FT813's touch engine is the I2C master to the Goodix behind the touch connector, and a rendered image exercises none of it. A disconnected, uninitialized or unsupported controller coexists with a perfect picture, and a connector that looks seated does not prove the controller acknowledges its address or produces reports.
| What you observe | What it means | Next check |
|---|---|---|
| Images render, coordinate registers stay zero | Display path proven, touch path not started | Controller identity, initialization, bus activity |
| Changing the vendor bit changes nothing | Vendor selection cannot adapt an unsupported controller | The Goodix initialization sequence for your module |
| Coordinates move but land in the wrong places | Acquisition works, mapping is at fault | Orientation and axis assignment, then calibration |
| A resistive module calibrates and works | That baseline belongs to the resistive path | Keep the two paths' settings separate |
If coordinates move but land wrong, the bring-up is finished, so separate the real causes when touch calibration fails or drifts before touching another register.
Your REG_TOUCH_CONFIG value is already correct #
Bits 10-4 hold the controller's 7-bit I2C address, and the arithmetic checks out: 0x5D is 93 decimal, a 7-bit address shifted left four places is multiplied by 16, and 93 x 16 = 1488 = 0x05D0. Setting bit 3 adds 8, giving 0x05D8. Both values you formed are correctly encoded, so stop rewriting them.
| Bits | Field, per the register description | Bring-up value |
|---|---|---|
| 15 | 0 for capacitive operation | 0 |
| 14-13 | Reserved | 0 |
| 12 | Short-circuit handling tied to the resistive path | 0 |
| 11 | Low-power mode enable | 0 until coordinates flow |
| 10-4 | 7-bit I2C address of the touch controller | 0x5D |
| 3 | Vendor select between FocalTech and AzoTech behavior | The module documentation's value |
| 2 | Suppress the 300 ms startup interval | 0 |
| 1-0 | Documented default | 0 |
Write the value with the documented access width and read REG_TOUCH_CONFIG back immediately: a mismatch is a host-access fault, and a value that matches now but differs later means a later initialization write overwrote it, so find that write in the startup code. The vendor bit is finished as a suspect. Goodix is neither FocalTech nor AzoTech, you tried both states, and neither initialized anything.
The missing step is the Goodix initialization sequence #
A capacitive module does not report until its controller has been reset, initialized and configured, in order. That sequence is module-specific, so take it from the display vendor's demo for your exact part; for EVE2-family modules with Goodix, the Basic-EVE-Demo is the identified reference containing the Goodix configuration. Bring the module up in this order:
- Identify the fitted hardware from the module marking or schematic: the capacitive Goodix, not the resistive variant.
- Verify the touch interface against the schematic: connector orientation, controller supply, common ground reference, the two I2C lines, and any reset or interrupt wiring.
- Run the demo's controller reset handling with its timing.
- Run the touch-specific initialization and configuration writes, in the demo's order.
- Confirm the demo's completion check before polling anything.
Copying an address field out of that sequence leaves every earlier dependency unresolved, which is the state your zeros describe. If the initialization reports failure, fix that before touching coordinate reads, the acquisition mode or interrupts.
Prove the bus, then test the alternate address #
Power the board down before reseating the touch connector, because the fine-pitch socket is the easiest part of the assembly to destroy. With the sequence running, watch the two I2C lines at the connector with a scope or logic analyzer and classify what you see:
- Lines never reach their idle levels: supply, pull-up or wiring fault.
- Idle levels but no transactions: the touch engine is not enabled or the initialization is not running, so return to the sequence.
- Transactions without the acknowledge bit: the controller is held in reset, unpowered, or at a different address than the one encoded.
- Acknowledged transactions: the electrical path is proven, and the remaining work is reports and decoding.
Goodix parts sit at one of two addresses depending on their reset sequence, and documentation for another platform records the same controller answering at 0x14 and 0x5D when that sequence is inconsistent. Your module documents 0x5D, so if transactions never acknowledge, encode the alternate once: 0x14 is 20 decimal, 20 x 16 = 320 = 0x0140, or 0x0148 with bit 3 set. A controller that answers only at 0x14 is a reset-timing fault to correct in the sequence, not a configuration to keep.
Set the acquisition mode once, then read #
The two-bit touch-acquisition mode register takes 0b10 for frame mode and 0b11 for continuous mode; confirm those values against your device's register description before relying on them. Use 0b11 for the validation, because continuous mode refreshes the coordinate registers the whole time a finger is down and a pressed-versus-released comparison cannot be missed by sampling. Write it, read it back, and change nothing else while testing. Two limits keep the conclusions honest: switching modes cannot repair a controller that never acknowledges, and an acknowledge proves a device answered, not that its reports are decoded.
An acknowledged, initialized controller still reports against a sensing baseline, so a shifted cover, gasket or mounting can corrupt the readings, which is the failure mode behind why capacitive touch sensors need a stable cover baseline. And once coordinates flow but buttons misbehave only near the screen edges, that is a hit-area question, the subject of why capacitive touch buttons miss presses near screen edges.
Bring-up order and the decision at each result #
The bench sequence, with the arithmetic only where it decides something:
- Keep the proven display test running as the standing reference that the host-to-FT813 path is healthy.
- Confirm from the module documentation that the fitted controller is the capacitive Goodix at its documented address.
- Write REG_TOUCH_CONFIG = 0x05D0, bit 3 as the documentation specifies, then read back and confirm the match.
- Run the vendor Goodix initialization to its completion check, then re-read REG_TOUCH_CONFIG: a changed value means a later write is overwriting it, so reorder per the demo.
- Write the acquisition mode = 0b11 and read it back.
- Poll the coordinate registers for several seconds with a finger down, then released, and watch the bus in the same window.
The decision at each result:
- Coordinates track the finger: bring-up is done. Fix orientation and mapping, then move on to tags and hit areas.
- Bus idle, no transactions: the initialization is not running, so solve enablement and the sequence before any register work.
- Transactions, never acknowledged: fix power, reset and wiring, and test 0x0140 once. If the controller answers only there, correct the reset timing and return to 0x5D.
- Acknowledged but still zero: re-run the full initialization, confirm the mode readback, and only then treat it as a report-decoding problem.
Questions asked
Does the vendor bit in REG_TOUCH_CONFIG select Goodix?
No. That bit chooses between the FocalTech and AzoTech behaviors the register description defines, and Goodix is neither, which is why both settings returned zeros. Use the value your module documentation specifies and spend the effort on the controller's initialization sequence instead: with a supported, initialized Goodix, the vendor bit is not what makes coordinates appear.
Why would the Goodix answer at a different I2C address than 0x5D?
Goodix parts take their I2C address from the reset sequence, and documentation for another platform records the same controller answering at 0x14 and 0x5D when that sequence is inconsistent. Run the reset exactly as the vendor demo times it. If 0x5D stays silent, test the alternate once, encoded in bits 10-4 as 0x0140, then fix the reset and return to the documented address.
Does this procedure apply to the resistive EVE2-70TPR?
No. That module uses the resistive path: run reg_calibrate, then read touches through reg_tag with reg_tag_mask set, exactly as its documentation describes. Calibration output is a set of transform values the controller does not retain through a power cycle, so save them and rewrite them at every startup. Those requirements are not interchangeable with the Goodix capacitive bring-up.
Should I wire the touch interrupt before testing coordinates?
Poll first. Reading the coordinate registers with a finger down and comparing against the released state validates the whole path with no interrupt logic, and a line that never asserts on an uninitialized controller tells you nothing new. Enable the touch interrupt only after polled coordinates flow; from then on, a silent line means wiring, not bring-up.
Can I leave the low-power mode bit on during bring-up?
Leave bit 11 at 0 until coordinates work. Low-power modes change when the controller samples and reports, which adds a variable exactly when you need the acquisition path repeatable. Enable it afterwards to suit the power budget, then re-verify the pressed and released readings before calling the installation finished.