-
Notifications
You must be signed in to change notification settings - Fork 943
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into tft-gui-work
- Loading branch information
Showing
124 changed files
with
1,495 additions
and
1,645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Build STM32 | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
board: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build-stm32: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build base | ||
id: base | ||
uses: ./.github/actions/setup-base | ||
|
||
- name: Build STM32 | ||
run: bin/build-stm32.sh ${{ inputs.board }} | ||
|
||
- name: Get release version string | ||
run: echo "version=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT | ||
id: version | ||
|
||
- name: Store binaries as an artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: firmware-${{ inputs.board }}-${{ steps.version.outputs.version }}.zip | ||
overwrite: true | ||
path: | | ||
release/*.hex | ||
release/*.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[stm32_base] | ||
extends = arduino_base | ||
platform = ststm32 | ||
platform_packages = platformio/framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32.git#361a7fdb67e2a7104e99b4f42a802469eef8b129 | ||
|
||
build_type = release | ||
|
||
;board_build.flash_offset = 0x08000000 | ||
|
||
build_flags = | ||
${arduino_base.build_flags} | ||
-flto | ||
-Isrc/platform/stm32wl -g | ||
-DMESHTASTIC_MINIMIZE_BUILD | ||
-DDEBUG_MUTE | ||
; -DVECT_TAB_OFFSET=0x08000000 | ||
-DconfigUSE_CMSIS_RTOS_V2=1 | ||
; -DSPI_MODE_0=SPI_MODE0 | ||
-fmerge-all-constants | ||
-ffunction-sections | ||
-fdata-sections | ||
|
||
build_src_filter = | ||
${arduino_base.build_src_filter} -<platform/esp32/> -<nimble/> -<mesh/api/> -<mesh/wifi/> -<mesh/http/> -<modules/esp32> -<mesh/eth/> -<input> -<buzz> -<modules/Telemetry> -<platform/nrf52> -<platform/portduino> -<platform/rp2040> -<mesh/raspihttp> | ||
|
||
board_upload.offset_address = 0x08000000 | ||
upload_protocol = stlink | ||
|
||
lib_deps = | ||
${env.lib_deps} | ||
charlesbaynham/OSFS@^1.2.3 | ||
https://github.com/caveman99/Crypto.git#f61ae26a53f7a2d0ba5511625b8bf8eff3a35d5e | ||
|
||
lib_ignore = | ||
mathertel/OneButton | ||
Wire |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
VERSION=$(bin/buildinfo.py long) | ||
SHORT_VERSION=$(bin/buildinfo.py short) | ||
|
||
OUTDIR=release/ | ||
|
||
rm -f $OUTDIR/firmware* | ||
rm -r $OUTDIR/* || true | ||
|
||
# Important to pull latest version of libs into all device flavors, otherwise some devices might be stale | ||
platformio pkg update -e $1 | ||
|
||
echo "Building for $1 with $PLATFORMIO_BUILD_FLAGS" | ||
rm -f .pio/build/$1/firmware.* | ||
|
||
# The shell vars the build tool expects to find | ||
export APP_VERSION=$VERSION | ||
|
||
basename=firmware-$1-$VERSION | ||
|
||
pio run --environment $1 # -v | ||
SRCELF=.pio/build/$1/firmware.elf | ||
cp $SRCELF $OUTDIR/$basename.elf | ||
|
||
SRCBIN=.pio/build/$1/firmware.bin | ||
cp $SRCBIN $OUTDIR/$basename.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"build": { | ||
"arduino": { | ||
"ldscript": "esp32s3_out.ld", | ||
"partitions": "default_8MB.csv" | ||
}, | ||
"core": "esp32", | ||
"extra_flags": [ | ||
"-DBOARD_HAS_PSRAM", | ||
"-DARDUINO_USB_CDC_ON_BOOT=1", | ||
"-DARDUINO_USB_MODE=0", | ||
"-DARDUINO_RUNNING_CORE=1", | ||
"-DARDUINO_EVENT_RUNNING_CORE=1" | ||
], | ||
"f_cpu": "240000000L", | ||
"f_flash": "80000000L", | ||
"flash_mode": "qio", | ||
"hwids": [ | ||
["0x303A", "0x1001"], | ||
["0x303A", "0x0002"] | ||
], | ||
"mcu": "esp32s3", | ||
"variant": "heltec_vision_master_e290" | ||
}, | ||
"connectivity": ["wifi", "bluetooth", "lora"], | ||
"debug": { | ||
"openocd_target": "esp32s3.cfg" | ||
}, | ||
"frameworks": ["arduino", "espidf"], | ||
"name": "Heltec Vision Master E290", | ||
"upload": { | ||
"flash_size": "8MB", | ||
"maximum_ram_size": 327680, | ||
"maximum_size": 8388608, | ||
"use_1200bps_touch": true, | ||
"wait_for_upload_port": true, | ||
"require_upload_port": true, | ||
"speed": 921600 | ||
}, | ||
"url": "https://heltec.org/project/vision-master-e290/", | ||
"vendor": "Heltec" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.