-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* login page update + better error on boot for bad srv config * fsm wifi event stabilization * remove vim specific file * more diagnostic logging for job queueing * try playing with merge_bins * add a version string to common logs * temporary escaping workaround * add reminder, fix ca in CI * quoted host ca
- Loading branch information
Showing
26 changed files
with
686 additions
and
557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[platformio] | ||
default_envs = firebeetle | ||
default_envs = xiao | ||
|
||
[env] | ||
framework=arduino | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
/.pio | ||
beetle-merged-flash.bin | ||
.ycm_extra_conf.py | ||
/env | ||
/*.log | ||
/embeds/*.pem | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
PYTHON=python3 | ||
|
||
ESPTOOL=$(HOME)/.platformio/packages/tool-esptoolpy/esptool.py | ||
BOOT_APP0=$(HOME)/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin | ||
|
||
# TODO: consult either esptool.py or platformio. they handle this gracefully. | ||
PORT=/dev/cu.usbmodem101 | ||
|
||
BINS=.pio/build/xiao/bootloader.bin .pio/build/xiao/partitions.bin .pio/build/xiao/firmware.bin | ||
MERGED_BIN=beetle-merged-flash.bin | ||
|
||
.PHONY: clean flash-merged tool | ||
|
||
all: $(MERGED_BIN) | ||
|
||
clean: | ||
rm $(BINS) | ||
|
||
$(BINS): | ||
pio run | ||
|
||
$(MERGED_BIN): $(BINS) | ||
$(PYTHON) $(ESPTOOL) --chip esp32c3 merge_bin -o $@ \ | ||
--flash_size 4MB \ | ||
0x0000 .pio/build/xiao/bootloader.bin \ | ||
0x8000 .pio/build/xiao/partitions.bin \ | ||
0xe000 $(BOOT_APP0) \ | ||
0x10000 .pio/build/xiao/firmware.bin | ||
|
||
help: | ||
$(PYTHON) $(ESPTOOL) --help | ||
|
||
flash-merged: $(MERGED_BIN) | ||
echo $< | ||
$(PYTHON) $(ESPTOOL) --chip esp32c3 --port $(PORT) write_flash --flash_mode dio --flash_freq 80m 0x0 $< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.