#Use the Docker file in the ble_ctf to buildsudo docker build -t blectf .sudo docker run -it -v ./:/ble_ctf --name blectf blectf#When in the container cd /ble_ctfidf.py set-target esp32-c3idf.py menuconfig# Enable Component_config -> Bluetooth# Enable Component_config -> Bluetooth -> Bluedroid Options -> Enable BLE 4.2 featuresidf.py build#Exit Container
Flash the Binaries onto the ESP32-C3:
>>> sudo esptool.py -p /dev/ttyACM0 -b 460800 --before default_reset --after hard_reset --chip esp32c3 write_flash --flash_mode dio --flash_size 2MB --flash_freq 80m 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/ble_ctf.binesptool.py v4.6.2Serial port /dev/ttyACM0Connecting...Chip is ESP32-C3 (revision v0.4)Features: WiFi, BLECrystal is 40MHzMAC: 64:e8:33:82:af:68Uploading stub...Running stub...Stub running...Changing baud rate to 460800Changed.Configuring flash size...Flash will be erased from 0x00000000 to 0x00004fff...Flash will be erased from 0x00008000 to 0x00008fff...Flash will be erased from 0x00010000 to 0x000d8fff...Compressed 20240 bytes to 12424...Wrote 20240 bytes (12424 compressed)at 0x00000000 in 0.2 seconds (effective 658.0 kbit/s)...Hash of data verified.Compressed 3072 bytes to 103...Wrote 3072 bytes (103 compressed)at 0x00008000 in 0.0 seconds (effective 635.9 kbit/s)...Hash of data verified.Compressed 822240 bytes to 419104...Wrote 822240 bytes (419104 compressed)at 0x00010000 in 6.1 seconds (effective 1086.3 kbit/s)...Hash of data verified.Leaving...Hard resetting via RTS pin...
Change %User%\Documents\Arduino\libraries\ESP_Async_WebServer\src\AsyncWebSocket.cpp in ESPAsyncWebServer. IPAddress(0U) to return IPAddress((uint32_t)0);
Add Adafruit_NeoPixel strip; into LedInterface.cpp. Comment out extern Adafruit_NeoPixel strip; from LedInterface.h