Improvements for -S2
- new partition table for boards with UF2 boot (Adafruit qt py S2) - better treatment of debug out using "USBCDC" native port - workarounds for watchdog crashes on -S2 - Add missing but mandatory build flags for -S2 and -C3
This commit is contained in:
@@ -545,12 +545,16 @@ void showRealSpeed() {
|
||||
Serial.print("FLASH SIZE (magic byte): "); Serial.print(ESP.getFlashChipSize() / (1024.0 * 1024), 2); Serial.println(" MB");
|
||||
Serial.print("FLASH MODE (magic byte): "); Serial.print(ESP.getFlashChipMode()); Serial.println(" ; 0=QIO, 1=QOUT, 2=DIO, 3=DOUT or other\n");
|
||||
|
||||
Serial.flush();
|
||||
Serial.print("FLASH CHIP ID: 0x"); Serial.println(my_ESP_getFlashChipId(), HEX);
|
||||
Serial.print("FLASH CHIP FREQ: "); Serial.print(my_ESP_getFlashChipSpeed() / 1000000.0, 1); Serial.println(" MHz");
|
||||
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
||||
//Serial.print("FLASH CHIP FREQ: "); Serial.print(my_ESP_getFlashChipSpeed() / 1000000.0, 1); Serial.println(" MHz"); // this seems to crash on -S2
|
||||
#endif
|
||||
Serial.print("FLASH REAL SIZE: "); Serial.print(my_ESP_getFlashChipRealSize() / (1024.0 * 1024), 2); Serial.println(" MB");
|
||||
Serial.print("FLASH REAL MODE: "); Serial.println(my_ESP_getFlashChipMode());
|
||||
|
||||
Serial.println(F("\n------------------------------------"));
|
||||
Serial.flush();
|
||||
Serial.print( "RAM HEAP SIZE: "); Serial.print(ESP.getHeapSize() / 1024.0, 2); Serial.println(" KB");
|
||||
Serial.print( " FREE RAM: "); Serial.print(ESP.getFreeHeap() / 1024.0, 2); Serial.println(" KB");
|
||||
Serial.print( " MAX RAM alloc: "); Serial.print(ESP.getMaxAllocHeap() / 1024.0, 2); Serial.println(" KB");
|
||||
@@ -566,6 +570,7 @@ void showRealSpeed() {
|
||||
Serial.println();
|
||||
show_psram_info_part2();
|
||||
}
|
||||
Serial.flush();
|
||||
#endif
|
||||
|
||||
Serial.println();
|
||||
|
||||
11
tools/partitions-4MB-tinyuf2_spiffs.csv
Normal file
11
tools/partitions-4MB-tinyuf2_spiffs.csv
Normal file
@@ -0,0 +1,11 @@
|
||||
# ESP-IDF Partition Table
|
||||
# Name, Type, SubType, Offset, Size, Flags
|
||||
# bootloader.bin,, 0x1000, 32K
|
||||
# partition table, 0x8000, 4K
|
||||
|
||||
nvs, data, nvs, 0x9000, 20K,
|
||||
otadata, data, ota, 0xe000, 8K,
|
||||
ota_0, 0, ota_0, 0x10000, 1408K,
|
||||
ota_1, 0, ota_1, 0x170000, 1408K,
|
||||
uf2, app, factory,0x2d0000, 256K,
|
||||
spiffs, data, spiffs, 0x310000, 960K,
|
||||
|
Reference in New Issue
Block a user