mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-17 10:32:07 +00:00
Merge branch 'tft-gui-work' of https://github.com/meshtastic/firmware into tft-gui-work
This commit is contained in:
commit
6f6b627eae
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
VERSION=`bin/buildinfo.py long`
|
VERSION=$(bin/buildinfo.py long)
|
||||||
SHORT_VERSION=`bin/buildinfo.py short`
|
SHORT_VERSION=$(bin/buildinfo.py short)
|
||||||
|
|
||||||
OUTDIR=release/
|
OUTDIR=release/
|
||||||
|
|
||||||
@ -29,6 +29,15 @@ cp $DFUPKG $OUTDIR/$basename-ota.zip
|
|||||||
|
|
||||||
echo "Generating NRF52 uf2 file"
|
echo "Generating NRF52 uf2 file"
|
||||||
SRCHEX=.pio/build/$1/firmware.hex
|
SRCHEX=.pio/build/$1/firmware.hex
|
||||||
|
|
||||||
|
# if WM1110 target, merge hex with softdevice 7.3.0
|
||||||
|
if (echo $1 | grep -q "wio-sdk-wm1110"); then
|
||||||
|
echo "Merging with softdevice"
|
||||||
|
sudo chmod+x ./bin/mergehex
|
||||||
|
bin/mergehex -m bin/s140_nrf52_7.3.0_softdevice.hex $SRCHEX -o .pio/build/$1/merged_fimware.hex
|
||||||
|
SRCHEX=.pio/build/$1/merged_fimware.hex
|
||||||
|
fi
|
||||||
|
|
||||||
bin/uf2conv.py $SRCHEX -c -o $OUTDIR/$basename.uf2 -f 0xADA52840
|
bin/uf2conv.py $SRCHEX -c -o $OUTDIR/$basename.uf2 -f 0xADA52840
|
||||||
|
|
||||||
cp bin/device-install.* $OUTDIR
|
cp bin/device-install.* $OUTDIR
|
||||||
|
BIN
bin/mergehex
Normal file
BIN
bin/mergehex
Normal file
Binary file not shown.
9726
bin/s140_nrf52_7.3.0_softdevice.hex
Normal file
9726
bin/s140_nrf52_7.3.0_softdevice.hex
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user