esp32-keynotes-controller
esp32-keynotes-controller copied to clipboard
Errors after connect to computer.
I'm trying to make a bluetooth footswitch based on this. I just modified one of the key code. Before I connect it to Windows, it's all good. But after the bluetooth is connected, there are errors repeating...
`[INF] KeyLight - An ESP32 based BLE Keynote remote controller. [INF] Designed by Henry Li [email protected]. [INF] Copyright 2018. All rights reserved. [INF] Initializing BLE Device 'Henry-KeyLight'... [INF] Initializing BLE HID services... [INF] BLE advertising has been <STARTED>. [INF] Search 'Henry-KeyLight' in your Bluetooth device list. [INF] Initialization has been <DONE>. [INF] Henry-KeyLight has been <CONNECTED>. [INF] BLE advertising has been <STOPPED>. E (27141) boot: Assert failed in esp_err_t nvs::PageManager::requestNewPage(), /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/nvs_flash/src/nvs_pagemanager.cpp:175 (usedEntries == newPage->getUsedEntryCount()) Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0) Tasks currently running: CPU 0: Btc_task CPU 1: loopTask Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0) Tasks currently running: CPU 0: Btc_task CPU 1: loopTask Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0) Tasks currently running: CPU 0: Btc_task CPU 1: loopTask Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0) Tasks currently running: CPU 0: Btc_task CPU 1: loopTask Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0) Tasks currently running: CPU 0: Btc_task CPU 1: loopTask Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0) Tasks currently running: CPU 0: btController CPU 1: loopTask Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0) Tasks currently running: CPU 0: Btc_task CPU 1: loopTask Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0) Tasks currently running: CPU 0: Btc_task CPU 1: loopTask Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0) Tasks currently running: CPU 0: Btc_task CPU 1: loopTask Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0) Tasks currently running: CPU 0: Btc_task CPU 1: loopTask Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0) Tasks currently running: CPU 0: Btc_task CPU 1: loopTask Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0) Tasks currently running: CPU 0: Btc_task CPU 1: loopTask`
Ok, its a lot watchdog errors. Start with delay() in loop().
Thank you @chegewara . Do you mean I should add delay() like this? But I tried it still report errors.
`void loop() { updateButtons();
if (millis() - lastActiveTime > MAX_ACTIVE_TIME) { deepSleep(); }
delay(1000); }`
Update: Get it working now! After run a "python esptool.py erase_flash", now everything is working!!