====== Architecture Change ====== ---- Use the following steps to build a project for another architecture: Move into the project folder and do a cleanup: idf.py fullclean Make a backup of the project folder cd .. cp -r LCR-meter/ LCR-meter-backup Move into the project folder and change the architecture: cd LCR-meter idf.py set-target esp32c3 Setup project configuration When setting the target several project settings are returned to defaults. Use **idf.py menuconfig** to check and change settings: idf.py menuconfig Change partition settings to: "Custom partition table CSV" Enable ESP-TLS Server Enable ESP_HTTPS_SERVER component Change Serial Flasher config: Flash size (2 MB) ---> 4 MB Change HTTP Server: Max HTTP Request Header Length 512 --> 1014 Rebuild the project idf.py build Check the USB port used by the new board, by running the following command and (un)plugging the USB connector: sudo udevadm monitor -u Further we assume that port /dev/ttyUSB0 is being used: Do a full flash: idf.py -p /dev/ttyUSB0 flash 1907 esptool.py --port /dev/ttyACM0 write_flash --flash_mode qio 0x250000 default.config 1908 idf.py menuconfig 1909 idf.py partition-table 1910 idf.py menuconfig 1911 idf.py partition-table 1912 idf.py build 1913 idf.py -p /dev/ttyACM0 partition-table-flash 1914 /home/oscar/development/esp32/idf-tools/python_env/idf5.2_py3.11_env/bin/python ../../esp-idf/components/esptool_py/esptool/esptool.py -p /dev/ttyASM0 -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x0010000 build/LCR-Meter.bin 1915 idf.py build 1916 python -m esptool --chip esp32c3 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 80m 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0xd000 build/ota_data_initial.bin 0x10000 build/LCR-Meter.bin 1917 esptool.py --port /dev/ttyACM0 write_flash --flash_mode qio 0x250000 default.config 1918 idf.py build