platformio / platform-espressif32

Espressif 32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif32
Apache License 2.0
903 stars 608 forks source link

new board: Heltec Wireless Tracker #1148

Open codeadventure20 opened 1 year ago

codeadventure20 commented 1 year ago

I kindly request the inclusion of the Heltec Wireless Tracker board in the list of supported boards for PlatformIO. The Heltec Wireless Tracker board is an ESP32-based development board with built-in GPS, LoRaWAN, and Bluetooth capabilities, making it suitable for GPS tracking and IoT applications.

Currently, the Heltec Wireless Tracker board is not available as an option in PlatformIO. Adding official support for this board would greatly benefit developers working with the Heltec Wireless Tracker, enabling them to utilize the full potential of the board and leverage the extensive PlatformIO ecosystem.

Board Details:

Board Name: Heltec Wireless Tracker Microcontroller: ESP32 Built-in Features: GPS, LoRaWAN, Bluetooth Manufacturer: Heltec Automation

it is implemented in the wifi_kit_series release 0.0.8 https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series

valeros commented 1 year ago

Hi @codeadventure20, it's highly desirable that this board is added to the official Arduino core for ESP32 https://github.com/espressif/arduino-esp32 with a proper variant file.

codeadventure20 commented 1 year ago

I'm not sure how to add it there.

I've created this, but note that I really don't know what I'm doing, this is the first time I'm using github.

https://github.com/espressif/arduino-esp32/pull/8464

codeadventure20 commented 1 year ago

don't you need the json file as well?

boards/heltec_wireless_tracker.json

{ "build": { "arduino": { "ldscript": "esp32s3_out.ld", "partitions": "default.csv" }, "core": "esp32", "extra_flags": [ "-DWireless_Track", "-DARDUINO_USB_MODE=1", "-DARDUINO_RUNNING_CORE=1", "-DARDUINO_EVENT_RUNNING_CORE=1"
], "f_cpu": "240000000L", "f_flash": "80000000L", "flash_mode": "qio", "hwids": [ [ "0x303A", "0x1001" ] ], "mcu": "esp32s3", "variant": "heltec_wireless_tracker" }, "connectivity": [ "wifi", "bluetooth", "lora", "gps" ], "debug": { "openocd_target": "esp32s3.cfg" }, "frameworks": [ "arduino", "espidf" ], "name": "Heltec Wireless Tracker", "upload": { "flash_size": "8MB", "maximum_ram_size": 327680, "maximum_size": 8388608, "require_upload_port": true, "speed": 1036800 }, "url": "https://heltec.org/project/wireless-tracker/", "vendor": "Heltec" }

codeadventure20 commented 1 year ago

also platformio.ini file:

; 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

[env:heltec_wireless_tracker] platform = espressif32 board = heltec_wireless_tracker framework = arduino monitor_speed = 115200 ;debug_tool = esp-prog ;debug_init_break = tbreak setup

; -lheltec_0 ; for no CDC on boot or ; -lheltec_1 ; for CDC on BOOT ; -DBOARD_HAS_PSRAM ; add it if it has psram ; -DLoRaWAN_DEBUG_LEVEL =0 ; 0 = None / 1 = Freq / 2 = Freq && DIO / 3 = Freq && DIO && PW ; -DREGION_xxnnn = EU868 ; EU868 / EU433 / CN470 / US915 / AU915 / CN779 / AS923 / KR920 / IN865 / US915_HYBRID ; -DACTIVE_REGION=LORAMAC_REGION_xxnnn ; EU868 / EU433 / CN470 / US915 / AU915 / CN779 / AS923 / KR920 / IN865 / US915_HYBRID ; -DLORAWAN_PREAMBLE_LENGTH=8 ; 8 / 16 ; -DLORAWAN_DEVEUI_AUTO=0 ; 0 = Custom / 1 = Generate By ChipID

;build_flags = ; -DLoRaWAN_DEBUG_LEVEL=0 ; -DREGION_EU868 ; -DACTIVE_REGION=LORAMAC_REGION_EU868 ; -DLoRaWAN_DEBUG_LEVEL=0 ; -DLORAWAN_PREAMBLE_LENGTH=8 ; -DLORAWAN_DEVEUI_AUTO=0 ; -D${board} ; -lheltec_0

codeadventure20 commented 1 year ago

note: I made it work on my local platformio using the above files and release 0.0.8 of https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series

jhiggason commented 12 months ago

@codeadventure20 Are you able to give a rundown of what you did to make this work?

songpola commented 8 months ago

The framework-arduinoespressif32, which is the dependency of this platform, now supported the board (merged). How can we make this platform support the board? @valeros