Files
KodeDot-FTP-Explorer/platformio.ini
T
Lago a328f5ae97 fix: FTP storage type (SD_MMC not FFAT), SD used-space walk
- Define FTP_SERVER_NETWORK_TYPE=6 and STORAGE_TYPE=10 directly to bypass
  FtpServerKey.h platform detection that was overriding storage to FFAT
- Fix calcDirSize: properly close files, use name() for recursive path
- Add SD debug logging for used-space calculation
- This fixes file transfers (read/write) failing via FTP
2026-04-03 20:27:20 +02:00

73 lines
2.7 KiB
INI
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
; ==============================================================
; FTP Explorer for Kode Dot (ESP32S3)
; FTP server serving the microSD card over Wi-Fi.
; Flashes app only (keeps bootloader/partitions).
; ==============================================================
[platformio]
; Default environment
default_envs = kode_dot
[env:kode_dot]
; Kode Dot target (ESP32S3)
; ESP32 platform (pinned stable)
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
; Board id (see boards/kode_dot.json)
board = kode_dot
framework = arduino
lib_compat_mode = off
monitor_speed = 115200
lib_ldf_mode = deep+
; Serial monitor filters
monitor_filters = time, esp32_exception_decoder
; Build flags
build_flags =
; Add include path for src
-I src
; Wrap OTA validation/rollback
-Wl,--wrap=esp_ota_mark_app_valid_cancel_rollback
; Enable LVGL simple include
-DLV_CONF_INCLUDE_SIMPLE
; FTP server: define STORAGE_TYPE and FTP_SERVER_NETWORK_TYPE directly
; to bypass FtpServerKey.h platform detection entirely
; NETWORK_ESP32=6, STORAGE_SD_MMC=10
-DDEFAULT_FTP_SERVER_NETWORK_TYPE_ESP32=6
-DDEFAULT_STORAGE_TYPE_ESP32=10
-DFTP_SERVER_NETWORK_TYPE=6
-DSTORAGE_TYPE=10
; Suppress deprecation warnings
-Wno-deprecated-declarations
; Allow #warning without failing build
-Wno-cpp
; Suppress narrowing conversion warnings
-Wno-narrowing
; Pre-build scripts
extra_scripts = pre:extra_scripts/auto_port.py, pre:extra_scripts/rename_bin.py, pre:extra_scripts/build_framework_libs.py
upload_protocol = custom
upload_port = COM10
monitor_port = COM10
upload_speed = 460800
; Flash app at 0x400000 (preserve bootloader/partitions)
upload_command = esptool --chip esp32s3 --port ${UPLOAD_PORT} --baud ${UPLOAD_SPEED} write-flash --flash-freq 80m --flash-mode dio --flash-size 32MB 0x400000 "${BUILD_DIR}/${PROGNAME}.bin"
; Libraries
lib_deps =
moononournation/GFX Library for Arduino @ ^1.6.0
lvgl/lvgl @ ^9
adafruit/Adafruit NeoPixel
https://github.com/RobTillaart/TCA9555.git#0.4.3
https://github.com/bitbank2/bb_captouch.git
https://github.com/xreef/SimpleFTPServer.git
bblanchon/ArduinoJson @ ^7
https://github.com/sqmsmu/PMIC_BQ25896.git
https://github.com/kodediy/kode_bq27220.git
https://github.com/kodediy/kode_MAX31329.git