Olimex Support Forum

Microcontrollers => ESP32 => Topic started by: 1g0rb on July 25, 2019, 10:38:19 PM

Title: ESP32-GATEWAY Arduino boards.txt update
Post by: 1g0rb on July 25, 2019, 10:38:19 PM
Hi,

I tried searching for git repository to make a pull-request but haven't found it (and didn't want to send it directly to esp32-arduino folks before asking here).

While working with ESP32-GATEWAY board (I guess it's similar with other ESP32 based boards) I found that it's very useful to have upload speed and ESP32 debug log level accessible in the menu.

Here's the code that needs to be added to boards.txt to get this

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

esp32-gateway.menu.DebugLevel.none=None
esp32-gateway.menu.DebugLevel.none.build.code_debug=0
esp32-gateway.menu.DebugLevel.error=Error
esp32-gateway.menu.DebugLevel.error.build.code_debug=1
esp32-gateway.menu.DebugLevel.warn=Warn
esp32-gateway.menu.DebugLevel.warn.build.code_debug=2
esp32-gateway.menu.DebugLevel.info=Info
esp32-gateway.menu.DebugLevel.info.build.code_debug=3
esp32-gateway.menu.DebugLevel.debug=Debug
esp32-gateway.menu.DebugLevel.debug.build.code_debug=4
esp32-gateway.menu.DebugLevel.verbose=Verbose
esp32-gateway.menu.DebugLevel.verbose.build.code_debug=5
Title: Re: ESP32-GATEWAY Arduino boards.txt update
Post by: LubOlimex on July 26, 2019, 12:29:17 PM
Thanks for the tip. Somebody can definitely find it useful. We commit directly to the main ESP32 repos. The latest boards.txt can be seen in the release candidate version here:

https://github.com/espressif/arduino-esp32/blob/1.0.3-rc1/boards.txt