Repository navigation
Troubleshooting
Hyacinthe-primus edited this page Nov 12, 2026
·
3 revisions
| Symptom | Likely cause |
|---|---|
No card reads, LCD shows PN532 NOT FOUND briefly |
DIP switches are not set to SPI, or MISO/MOSI are swapped. The boot log's rfid_.begin() OK line is printed even after a failed check, so ignore it. |
| LCD blank or boxes | Wrong I2C address. Try 0x3F instead of 0x27 in Config.h; run an I2C scanner sketch if needed. |
| No buzzer sound | The buzzer must be passive and connected to GPIO 6. |
| Upload fails | Some ESP32-S3 boards need the BOOT button held while the upload starts. |
| Sketch will not open or build | Open gatecore-firmware/gatecore-firmware.ino and keep the folder name gatecore-firmware. |
esp32:esp32 not found |
The board index is not registered. Run ./gatecore-firmware/uploader.sh --setup or follow Installation. |
| Garbled serial output | The monitor is not at 2000000 baud. The CLI and monitor helpers default to that speed. |
users.bin is empty after flashing |
A partition-table change erases LittleFS. Restore with gatecore-cli import backup.bin. |
| Every normal card is denied with "No Time Sync" | Wi-Fi is not configured or the board cannot reach an NTP server. Admin badges still work. |
| Cards expire earlier or later than expected | The device timezone differs from the machine that stamped the dates. Run gatecore-cli timezone --offset SECONDS. |
LCD shows LOCKED - TOO MANY / TRIES (Ns)
|
Five denied cards in a row. The lockout lasts 30 seconds; serial commands still work. |
| Reader stays paused after a failed import | Firmware 1.2 aborts an unfinished import after two minutes without serial traffic. On older firmware, reboot the board. |
| Symptom | Likely cause |
|---|---|
| "No ESP32 detected", or no port found | Run gatecore-cli list-ports, then pass --port or set RFID_PORT. |
| Every command times out | Wrong port, or the baud rate does not match SERIAL_BAUD on both sides. Use the UART bridge, not native USB. |
| The first command after flashing takes a long time | The first boot formats the 12 MB LittleFS. The CLI waits up to 45 seconds for status. |
failed to open ...: busy or "access denied" |
Another program owns the port: Arduino serial monitor, PuTTY, or a second gatecore-cli. |
| "name ... is N UTF-8 bytes (max 48)" | The limit is bytes, not characters. Accented and non-Latin names use 2 to 4 bytes per character. |
| "not a valid UID" | UIDs are 8 to 20 hex digits with an even count. :, - and spaces are accepted as separators. |
| "Duplicate UID" during import | The file contains the same UID twice. The device keeps the first occurrence. sync instead keeps the last. |
| "device stores at most 70000" | The file, or the file plus the existing users, exceeds the limit. Use --clear, split the file, or remove users first. |
| Import or export "stalled" | A raw transfer timed out. It cannot be resynchronized; reconnect and retry. |
Message too long or "Malformed JSON" from the device |
A control line exceeded the 16 KB buffer, the board rebooted mid-line, or debug output polluted the serial line. |
remove --force or import --clear aborts with "automatic backup failed" |
The backup failed, so nothing was deleted. Fix the disk or permissions, or pass --no-backup. |
remove --except refuses |
None of the keep UIDs exist on the device. Check them for typos. It does not take a backup. |
.bin rejected with "record size doesn't match" |
The file was produced with different MAX_NAME_LEN or UID length settings. Rebuild the CLI and firmware with matching limits. |
| Tag renewal shows "ACCESS DENIED" | The badge is not in the database. Add it first. Admin badges are skipped by renewal, and an unsynced clock refuses each card. |
| Garbled colours in a log file | Use --no-color, or set NO_COLOR=1. Non-TTY output is plain by default. |
| Symptom | Likely cause |
|---|---|
| No COM port in Device Manager | Install the CP210x (Silicon Labs) or CH34x (WCH) driver. Try a different USB cable; some are charge-only. |
| Several COM ports | Unplug the board and see which port disappears, or use gatecore-cli list-ports. |
uploader.ps1 cannot be loaded because script execution is disabled |
powershell -ExecutionPolicy Bypass -File .\gatecore-firmware\uploader.ps1 ... |
SmartScreen blocks gatecore-cli.exe
|
"More info", then "Run anyway". Release binaries are not signed. |
Linker link.exe not found |
Install the Visual Studio C++ Build Tools. rustup offers this during setup. |
| Symptom | Likely cause |
|---|---|
"Permission denied" on /dev/ttyUSB0
|
Add your user to dialout (uucp on Arch), then log out and back in. |
| Port disappears after plugging in a CH340 |
brltty is claiming it. Remove brltty or mask its udev rule. |
| Port is busy for a few seconds or drops after opening | ModemManager is probing it. Stop or disable ModemManager if you do not use it. |
Build fails because libudev.pc is missing |
Install libudev-dev and pkg-config (systemd-devel on Fedora). |
Prebuilt binary cannot load libudev.so.1
|
Install the runtime package (libudev1 on Debian/Ubuntu). |
uploader.sh: "Permission denied" |
chmod +x gatecore-firmware/uploader.sh, or run bash gatecore-firmware/uploader.sh. |
| Symptom | Likely cause |
|---|---|
| No port for a CH340/CH343 board | Install the WCH driver on older macOS versions; recent versions include it. |
Two entries per board (tty.* and cu.*) |
Use the cu.* device. |
| "cannot be opened because the developer cannot be verified" |
xattr -d com.apple.quarantine gatecore-cli, or build from source. |
GateCore · gatecore-firmware 1.2.0 · gatecore-cli 2.0.1 · ESP32-S3 + PN532
README · Changelog · Issues · MIT License