added tweaks to filter

This commit is contained in:
Brent Perteet
2025-08-08 17:31:27 -05:00
parent fb9fd84bf1
commit c4ca91bf84
17 changed files with 210 additions and 2440 deletions

View File

@@ -27,7 +27,9 @@ def main():
# Define binaries and offsets
bootloader = root / "build" / "bootloader" / "bootloader.bin"
firmware = root / "build" / f"{project}.bin"
ota_intitial = root / "build" / "ota_data_initial.bin"
partition = root / "build" / "partition_table" / "partition-table.bin"
# Verify binaries exist
for f in [bootloader, firmware, partition]:
@@ -47,8 +49,9 @@ def main():
"--flash-mode", flash_mode, # ✅ hyphenated flags
"--flash-freq", flash_freq,
"--flash-size", flash_size,
"0x0", str(bootloader),
"0x10000", str(firmware),
"0x1000", str(bootloader),
"0x20000", str(firmware),
"0x11000", str(ota_intitial),
"0x8000", str(partition)
]

View File

@@ -3,11 +3,7 @@ import serial
import sys
import time
from pathlib import Path
# import colorama
# colorama.just_fix_windows_console()
print("\x1b[0;32mThis should be green\x1b[0m")
print("\x1b[0;31mThis should be red\x1b[0m")
def main():
# Load config
@@ -27,6 +23,10 @@ def main():
try:
with serial.Serial(port, baud, timeout=0.5) as ser:
# 🔧 Clear DTR and RTS lines (common for ESP32 reset handling)
ser.dtr = False
ser.rts = False
print("[Serial Monitor] Press Ctrl+C to exit.\n")
while True:
if ser.in_waiting: