Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add partition options to the t-beam build menu #29

Open
DanielRIOT opened this issue Sep 3, 2019 · 1 comment
Open

Add partition options to the t-beam build menu #29

DanielRIOT opened this issue Sep 3, 2019 · 1 comment

Comments

@DanielRIOT
Copy link

I've added the following to the "boards.txt" for the T-beam so that I can select different partition options for the ESP32.

t-beam.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
t-beam.menu.PartitionScheme.default.build.partitions=default
t-beam.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
t-beam.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
t-beam.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
t-beam.menu.PartitionScheme.minimal.build.partitions=minimal
t-beam.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
t-beam.menu.PartitionScheme.no_ota.build.partitions=no_ota
t-beam.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
t-beam.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
t-beam.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
t-beam.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
t-beam.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
t-beam.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
t-beam.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
t-beam.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
t-beam.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
t-beam.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
t-beam.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
t-beam.menu.PartitionScheme.huge_app.build.partitions=huge_app
t-beam.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
t-beam.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
t-beam.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
t-beam.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080

image

@lemmingDev
Copy link

Here is the full listing for those who want it, with all options enabled such as CPU frequency

##############################################################

t-beam.name=T-Beam

t-beam.upload.tool=esptool_py
t-beam.upload.maximum_size=1310720
t-beam.upload.maximum_data_size=327680
t-beam.upload.wait_for_upload_port=true

t-beam.serial.disableDTR=true
t-beam.serial.disableRTS=true

t-beam.build.mcu=esp32
t-beam.build.core=esp32
t-beam.build.variant=t-beam
t-beam.build.board=T-Beam

t-beam.build.f_cpu=240000000L
t-beam.build.flash_mode=dio
t-beam.build.flash_size=4MB
t-beam.build.boot=dio
t-beam.build.partitions=default

t-beam.menu.PSRAM.disabled=Disabled
t-beam.menu.PSRAM.disabled.build.defines=
t-beam.menu.PSRAM.enabled=Enabled
t-beam.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue

t-beam.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
t-beam.menu.PartitionScheme.default.build.partitions=default
t-beam.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
t-beam.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
t-beam.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
t-beam.menu.PartitionScheme.minimal.build.partitions=minimal
t-beam.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
t-beam.menu.PartitionScheme.no_ota.build.partitions=no_ota
t-beam.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
t-beam.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
t-beam.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
t-beam.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
t-beam.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
t-beam.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
t-beam.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
t-beam.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
t-beam.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
t-beam.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
t-beam.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
t-beam.menu.PartitionScheme.huge_app.build.partitions=huge_app
t-beam.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
t-beam.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
t-beam.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
t-beam.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080

t-beam.menu.CPUFreq.240=240MHz (WiFi/BT)
t-beam.menu.CPUFreq.240.build.f_cpu=240000000L
t-beam.menu.CPUFreq.160=160MHz (WiFi/BT)
t-beam.menu.CPUFreq.160.build.f_cpu=160000000L
t-beam.menu.CPUFreq.80=80MHz (WiFi/BT)
t-beam.menu.CPUFreq.80.build.f_cpu=80000000L
t-beam.menu.CPUFreq.40=40MHz (40MHz XTAL)
t-beam.menu.CPUFreq.40.build.f_cpu=40000000L
t-beam.menu.CPUFreq.26=26MHz (26MHz XTAL)
t-beam.menu.CPUFreq.26.build.f_cpu=26000000L
t-beam.menu.CPUFreq.20=20MHz (40MHz XTAL)
t-beam.menu.CPUFreq.20.build.f_cpu=20000000L
t-beam.menu.CPUFreq.13=13MHz (26MHz XTAL)
t-beam.menu.CPUFreq.13.build.f_cpu=13000000L
t-beam.menu.CPUFreq.10=10MHz (40MHz XTAL)
t-beam.menu.CPUFreq.10.build.f_cpu=10000000L

t-beam.menu.FlashMode.qio=QIO
t-beam.menu.FlashMode.qio.build.flash_mode=dio
t-beam.menu.FlashMode.qio.build.boot=qio
t-beam.menu.FlashMode.dio=DIO
t-beam.menu.FlashMode.dio.build.flash_mode=dio
t-beam.menu.FlashMode.dio.build.boot=dio
t-beam.menu.FlashMode.qout=QOUT
t-beam.menu.FlashMode.qout.build.flash_mode=dout
t-beam.menu.FlashMode.qout.build.boot=qout
t-beam.menu.FlashMode.dout=DOUT
t-beam.menu.FlashMode.dout.build.flash_mode=dout
t-beam.menu.FlashMode.dout.build.boot=dout

t-beam.menu.FlashFreq.80=80MHz
t-beam.menu.FlashFreq.80.build.flash_freq=80m
t-beam.menu.FlashFreq.40=40MHz
t-beam.menu.FlashFreq.40.build.flash_freq=40m

t-beam.menu.UploadSpeed.921600=921600
t-beam.menu.UploadSpeed.921600.upload.speed=921600
t-beam.menu.UploadSpeed.115200=115200
t-beam.menu.UploadSpeed.115200.upload.speed=115200
t-beam.menu.UploadSpeed.256000.windows=256000
t-beam.menu.UploadSpeed.256000.upload.speed=256000
t-beam.menu.UploadSpeed.230400.windows.upload.speed=256000
t-beam.menu.UploadSpeed.230400=230400
t-beam.menu.UploadSpeed.230400.upload.speed=230400
t-beam.menu.UploadSpeed.460800.linux=460800
t-beam.menu.UploadSpeed.460800.macosx=460800
t-beam.menu.UploadSpeed.460800.upload.speed=460800
t-beam.menu.UploadSpeed.512000.windows=512000
t-beam.menu.UploadSpeed.512000.upload.speed=512000

t-beam.menu.DebugLevel.none=None
t-beam.menu.DebugLevel.none.build.code_debug=0
t-beam.menu.DebugLevel.error=Error
t-beam.menu.DebugLevel.error.build.code_debug=1
t-beam.menu.DebugLevel.warn=Warn
t-beam.menu.DebugLevel.warn.build.code_debug=2
t-beam.menu.DebugLevel.info=Info
t-beam.menu.DebugLevel.info.build.code_debug=3
t-beam.menu.DebugLevel.debug=Debug
t-beam.menu.DebugLevel.debug.build.code_debug=4
t-beam.menu.DebugLevel.verbose=Verbose
t-beam.menu.DebugLevel.verbose.build.code_debug=5


##############################################################

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants