* Migrate esp32 families to pioarduino platform * ESP32c6 align text.handler_execute same as C3 * Use pioarduino `develop` The latest fixes and the latest bugs! * preliminary esp32p4.ini * pioarduino: Update LovyanGFX Includes Manuel's recent commit * pioarduino 3.3.6 * pioarduino 3.3.6 *release* chasing the release * pioarduino: Fix OG ESP32 duplicate libs * pioarduino: T-Beam 1W CDC mode * pioarduino: disable network provisioning (wifiprov) * pioarduino: use legacy esptoolpy naming (forward-compatible) * Update lovyangfx from `develop` commit to 1.2.19 * fix esp32p4.ini * check for esp32 w/ wifi * esp32-p4 specific adaptations * Switch to meshtastic/esp32_https_server fork (idf5 branch) * don't ignore esp_lcd * config for MUI * fix/workaround SDMMC * revert a6f6175, update to 3.3.8 * enable esp_hosted for esp32-p4 (experimental) * Pioarduino 55.03.38-1 * NimBLE-Arduino -> Arduino "BLE" (3.3.x) migration (#10164) * NimBLE-Arduino -> Arduino "BLE" (3.3.x) migration * More NimBLE * Fix Device Name in ATT Read Request (0x2A00). Device Name is exposed in two places: - Advertisement data: this is set properly in startAdvertising. - GATT attribute Device Name (0x2A00). This one is handled internally in NimBLE and comes from ble_svc_gap_device_name_set. This is set initially, but then BLEDevice::createServer calls ble_svc_gap_init which resets the device name. This causes the device to apparently "change name after pairing": < ACL Data TX:... flags 0x00 dlen 7 #113 [hci0] 14.241149 ATT: Read Request (0x0a) len 2 Handle: 0x0003 Type: Device Name (0x2a00) > ACL Data RX: Handle 2048 flags 0x02 dlen 11 #115 [hci0] 14.269050 ATT: Read Response (0x0b) len 6 Value[6]: 6e696d626c65 # "nimble" Workaround this by setting the device name once again after BLEDevice::createServer. * Temporarily lower CORE_DEBUG_LEVEL to INFO to avoid triggering an apparent ESP-IDF Bluetooth bug when re-connecting to Pixel 8 Android devices. Initial pairing works, but after ESP32 is rebooted, phone fails to reconnect. Meshtastic app shows it as disconnecting immediately. LightBlue shows a more detailed error "Peripheral Connection - Warning: onConnectionStatusChange: status 61" (0x3D - MIC Failure). Bug report to Espresssif: https://github.com/espressif/esp-idf/issues/18126#issuecomment-4286197744 * Temporarily disable ble_gap_set_data_len, causes crash with Pixel 8 Android reconnect. Crash looks like this: [ 11966][E][BLEAdvertising.cpp:341] setScanResponseData(): ble_gap_adv_rsp_set_data: 22 [ 11975][E][BLEAdvertising.cpp:1554] start(): Host reset, wait for sync. ERROR | ??:??:?? 11 BLE failed to start advertising Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. Core 0 register dump: PC : 0x420e6190 PS : 0x00060730 A0 : 0x820e158b A1 : 0x3fce50c0 A2 : 0x00000000 A3 : 0x3fcb8600 A4 : 0x3fcb85cc A5 : 0x00000000 A6 : 0x00000000 A7 : 0x00000c03 A8 : 0x00000000 A9 : 0x3fce50b0 A10 : 0x0000000e A11 : 0x00000000 A12 : 0x00000010 A13 : 0x3fce50e0 A14 : 0x00000c03 A15 : 0x00000001 SAR : 0x0000001e EXCCAUSE: 0x0000001c EXCVADDR: 0x00000000 LBEG : 0x400570e8 LEND : 0x400570f3 LCOUNT : 0x00000000 Backtrace: 0x420e618d:0x3fce50c0 0x420e1588:0x3fce5110 0x420dfe87:0x3fce5200 0x420dfefb:0x3fce5220 0x420dff3f:0x3fce5240 0x4219602b:0x3fce5260 0x4037b0e5:0x3fce5280 0x4201edf3:0x3fce52a0 Connection seems fast enough even without this. We'll investigate the reason for the crash and re-enable once it's safe. --------- Co-authored-by: Catalin Patulea <cronos586@gmail.com> * Add extension from pioarduino nag "Jason2866.esp-decoder" * Cleanup after merge * ESP32: Disable classic bluetooth * Cleanup: Fix ADC channels on new variants * InkHUD: Fix type casting for message size in saveToFlash method inkhud compiles again! * update p4 esp_hosted for BT * I thought I fixed this * fix linker error using response file (p4 only) * fix infinite loop * Fix Power.cpp check warning Local variable 'config' shadows outer variable [shadowVariable] * Build ESP32 original with NimBLE ('custom_sdkconfig' approach). (#10235) * Re-enable littlefs json manifest This works locally again :) Not sure what changed * Re-add tool-mklittlefs * sensecap indicator fixes after upgrade arduino-esp & lovyanGFX libs * hackaday fix * robot tbeam cache error fix Co-authored-by: Copilot <copilot@github.com> * trunk fmt * ignore trunk * BLEDevice::deinit() added Co-authored-by: Copilot <copilot@github.com> * platformio-custom: Modify mtjson target dependency to prevent fake-success. (#10291) Co-authored-by: Copilot <copilot@github.com> * Fix ESP32-C6 linker errors. Align .text.handler_execute section to 4 bytes and update watchdog timer core mask configuration Co-authored-by: Copilot <copilot@github.com> * tlora-c6: Disable Screen MESHTASTIC_EXCLUDE_SCREEN=1 on tlora-c6. It doesn't have a screen, and this gets it compiling again (saving flash). * Use mverch's iram_memset hack for all OG-ESP32 * Refactor watchdog timer initialization and handling * use adc_channel_t in variant.h * Fix variant headers * More idiomatic default ethernet that doesn't break the build * Elecrows: Delete problematic variant.cpp Not needed after USE_ETHERNET_DEFAULT --------- Co-authored-by: mverch67 <manuel.verch@gmx.de> Co-authored-by: Manuel <71137295+mverch67@users.noreply.github.com> Co-authored-by: Catalin Patulea <cronos586@gmail.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: vidplace7 <1779290+vidplace7@users.noreply.github.com> Co-authored-by: Copilot <copilot@github.com> Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com> Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
113 lines
4.1 KiB
INI
113 lines
4.1 KiB
INI
; Seeed Studio SenseCAP Indicator
|
|
[env:seeed-sensecap-indicator]
|
|
custom_meshtastic_hw_model = 70
|
|
custom_meshtastic_hw_model_slug = SENSECAP_INDICATOR
|
|
custom_meshtastic_architecture = esp32-s3
|
|
custom_meshtastic_actively_supported = true
|
|
custom_meshtastic_support_level = 1
|
|
custom_meshtastic_display_name = Seeed SenseCAP Indicator
|
|
custom_meshtastic_images = seeed-sensecap-indicator.svg
|
|
custom_meshtastic_tags = Seeed
|
|
custom_meshtastic_partition_scheme = 8MB
|
|
custom_meshtastic_has_mui = true
|
|
|
|
extends = esp32s3_base
|
|
platform_packages =
|
|
; Version needs to match the pioarduino version used in esp32_common.ini
|
|
platformio/framework-arduinoespressif32 @ https://github.com/mverch67/arduino-esp32#82aee17619ea2940de03b0db4d082d5def657771
|
|
|
|
board = seeed-sensecap-indicator
|
|
board_check = true
|
|
board_build.partitions = partition-table-8MB.csv
|
|
upload_protocol = esptool
|
|
|
|
build_flags = ${esp32s3_base.build_flags}
|
|
-Ivariants/esp32s3/seeed-sensecap-indicator
|
|
-DSENSECAP_INDICATOR
|
|
-DUSE_ARDUINO_HAL_GPIO ; patch for lovyanGFX to use digitalWrite instead of direct register access for GPIO control, which is necessary for the IO expander to work correctly
|
|
-DRADIOLIB_DEBUG_SPI=0
|
|
-DRADIOLIB_DEBUG_PROTOCOL=0
|
|
-DRADIOLIB_DEBUG_BASIC=0
|
|
-DRADIOLIB_VERBOSE_ASSERT=0
|
|
-DRADIOLIB_SPI_PARANOID=0
|
|
-DIO_EXPANDER=0x40
|
|
-DIO_EXPANDER_IRQ=42
|
|
;-DIO_EXPANDER_DEBUG
|
|
|
|
lib_deps = ${esp32s3_base.lib_deps}
|
|
https://github.com/mverch67/LovyanGFX/archive/9abe502add013f392a1898d7dc48d65ddc112754.zip
|
|
# renovate: datasource=git-refs depName=ESP8266Audio packageName=https://github.com/meshtastic/ESP8266Audio gitBranch=meshtastic-2.0.0-dacfix
|
|
https://github.com/meshtastic/ESP8266Audio/archive/343024632ee78d6216907b2353fc943a62422d80.zip
|
|
# renovate: datasource=custom.pio depName=ESP8266SAM packageName=earlephilhower/library/ESP8266SAM
|
|
earlephilhower/ESP8266SAM@1.1.0
|
|
|
|
custom_sdkconfig =
|
|
${esp32s3_base.custom_sdkconfig}
|
|
CONFIG_AUTOSTART_ARDUINO=y
|
|
CONFIG_LOG_DEFAULT_LEVEL_INFO=y
|
|
CONFIG_LOG_MAXIMUM_LEVEL_DEBUG=y
|
|
CONFIG_SPIRAM_MODE_OCT=y
|
|
; CONFIG_SPIRAM_SPEED_120M=y
|
|
; CONFIG_SPIRAM_SPEED=120
|
|
CONFIG_SPIRAM_SPEED_80M=y
|
|
CONFIG_SPIRAM_SPEED=80
|
|
CONFIG_SPIRAM_XIP_FROM_PSRAM=y
|
|
CONFIG_LCD_RGB_ISR_IRAM_SAFE=y
|
|
CONFIG_GDMA_CTRL_FUNC_IN_IRAM=y
|
|
CONFIG_I2S_ISR_IRAM_SAFE=y
|
|
CONFIG_GDMA_ISR_IRAM_SAFE=y
|
|
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y
|
|
CONFIG_ESP32S3_DATA_CACHE_64KB=y
|
|
CONFIG_ESP32S3_DATA_CACHE_LINE_64B=y
|
|
CONFIG_I2C_SKIP_LEGACY_CONFLICT_CHECK=y
|
|
CONFIG_HAL_DEFAULT_ASSERTION_LEVEL=0
|
|
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
|
|
CONFIG_ESPTOOLPY_FLASHSIZE="8MB"
|
|
; CONFIG_ESPTOOLPY_FLASHFREQ_120M=y
|
|
; CONFIG_ESPTOOLPY_FLASHFREQ="120m"
|
|
'# CONFIG_ESPTOOLPY_FLASHFREQ_120M is not set'
|
|
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
|
|
CONFIG_ESPTOOLPY_FLASHFREQ="80m"
|
|
CONFIG_COMPILER_OPTIMIZATION_PERF=y
|
|
CONFIG_BOOTLOADER_LOG_LEVEL_NONE=n
|
|
CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y
|
|
|
|
[env:seeed-sensecap-indicator-tft]
|
|
extends = env:seeed-sensecap-indicator
|
|
board_check = true
|
|
upload_speed = 460800
|
|
|
|
build_flags =
|
|
${env:seeed-sensecap-indicator.build_flags}
|
|
-D INPUTDRIVER_BUTTON_TYPE=38
|
|
-D CONFIG_DISABLE_HAL_LOCKS=1
|
|
-D HAS_SCREEN=1
|
|
-D HAS_TFT=1
|
|
-D DISPLAY_SET_RESOLUTION
|
|
-D RAM_SIZE=3072
|
|
-D LV_LVGL_H_INCLUDE_SIMPLE
|
|
-D LV_CONF_INCLUDE_SIMPLE
|
|
-D LV_COMP_CONF_INCLUDE_SIMPLE
|
|
-D LV_USE_SYSMON=0
|
|
-D LV_USE_PROFILER=0
|
|
-D LV_USE_PERF_MONITOR=0
|
|
-D LV_USE_MEM_MONITOR=0
|
|
-D LV_USE_LOG=0
|
|
-D USE_LOG_DEBUG
|
|
-D LOG_DEBUG_INC=\"DebugConfiguration.h\"
|
|
-D CUSTOM_TOUCH_DRIVER
|
|
-D LGFX_SCREEN_WIDTH=480
|
|
-D LGFX_SCREEN_HEIGHT=480
|
|
-D DISPLAY_SIZE=480x480
|
|
-D LGFX_DRIVER=LGFX_INDICATOR
|
|
-D GFX_DRIVER_INC=\"graphics/LGFX/LGFX_INDICATOR.h\"
|
|
-D VIEW_320x240
|
|
-D USE_PACKET_API
|
|
|
|
lib_deps =
|
|
${env:seeed-sensecap-indicator.lib_deps}
|
|
${device-ui_base.lib_deps}
|
|
;# renovate: datasource=github-tags depName=bb_captouch packageName=bitbank2/bb_captouch
|
|
;https://github.com/bitbank2/bb_captouch/archive/refs/tags/1.3.1.zip ; not working
|
|
https://github.com/mverch67/bb_captouch/archive/8626412fe650d808a267791c0eae6e5860c85a5d.zip ; alternative touch library supporting FT6x36
|