Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ESP32-C3s #99

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion firmware/ESP32/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Macless Haystack Firmware for ESP32

This project contains a battery-optimzed PoC firmware for Espressif ESP32 chips (like ESP32-WROOM or ESP32-WROVER, but _not_ ESP32-S2).
This project contains a battery-optimzed PoC firmware for Espressif ESP32 chips (like ESP32-WROOM, ESP32-WROVER, ESP32-C3 but _not_ ESP32-S2).
After flashing our firmware, the device sends out Bluetooth Low Energy advertisements such that it can be found by [Apple's Find My network](https://developer.apple.com/find-my/).
This firmware consumes slightly more power when more than 1 key is used. The controller wakes up every 30 minutes and switches the key.

Expand All @@ -15,10 +15,17 @@ This firmware consumes slightly more power when more than 1 key is used. The con
- Copy your previously generated PREFIX_keyfile in the same folder

```bash
# ESP32-WROOM or similar
esptool.py write_flash 0x1000 bootloader.bin \
0x8000 partitions.bin \
0x10000 firmware.bin \
0x110000 PREFIX_keyfile

# ESP32-C3 - boatloader offset at 0x0
esptool.py write_flash 0x0 bootloader.bin \
0x8000 partitions.bin \
0x10000 firmware.bin \
0x110000 PREFIX_keyfile
```

If any problem occurs, erase flash manually before flashing:
Expand Down
7 changes: 7 additions & 0 deletions firmware/ESP32/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ monitor_speed = 115200
board_build.partitions = with_key.csv


[env:esp32c3]
platform = espressif32
board = esp32-c3-devkitm-1
framework = espidf
monitor_speed = 115200
board_build.partitions = with_key.csv

Loading