&(Join-Path $env:USERPROFILE '\esp\esp-idf\export.ps1')

idf.py fullclean

idf.py build

#python -m esptool -p COM8 -b 460800 --before default_reset --after hard_reset --chip esp32c6  write_flash --flash_mode dio --flash_size detect --flash_freq 80m 0x0 build\bootloader\bootloader.bin 0x8000 build\partition_table\partition-table.bin 0x10000 build\OpenEPaperLink_esp32_C6.bin


#idf.py -p COM8 flash


#esptool.py v4.7.0
#Serial port COM8
#Connecting...
#Chip is ESP32-C6 (QFN40) (revision v0.0)
#Features: WiFi 6, BT 5, IEEE802.15.4
#Crystal is 40MHz
#MAC: 40:4c:ca:ff:fe:47:b4:f0
#BASE MAC: 40:4c:ca:47:b4:f0
#MAC_EXT: ff:fe
#Uploading stub...
#Running stub...
#Stub running...
#Changing baud rate to 460800
#Changed.
#Configuring flash size...
#Auto-detected Flash size: 4MB
#Flash will be erased from 0x00000000 to 0x00005fff...
#Flash will be erased from 0x00008000 to 0x00008fff...
#Flash will be erased from 0x00010000 to 0x00051fff...
#Compressed 22336 bytes to 13474...
#Wrote 22336 bytes (13474 compressed) at 0x00000000 in 0.3 seconds (effective 624.9 kbit/s)...
#Hash of data verified.
#Compressed 3072 bytes to 104...
#Wrote 3072 bytes (104 compressed) at 0x00008000 in 0.1 seconds (effective 361.3 kbit/s)...
#Hash of data verified.
#Compressed 268624 bytes to 140956...
#Wrote 268624 bytes (140956 compressed) at 0x00010000 in 1.2 seconds (effective 1725.6 kbit/s)...
#Hash of data verified.
#Leaving...
#Hard resetting via RTS pin...
