Changes
This commit is contained in:
parent
0dc361ec70
commit
b0e31ac284
|
@ -4,6 +4,7 @@
|
||||||
#by uncommenting the next line
|
#by uncommenting the next line
|
||||||
default_envs = nodemcu32s_obp60
|
default_envs = nodemcu32s_obp60
|
||||||
[env:nodemcu32s_obp60]
|
[env:nodemcu32s_obp60]
|
||||||
|
platform = espressif32@6.3.2
|
||||||
board_build.partitions = lib/obp60task/partitions_obp60.csv
|
board_build.partitions = lib/obp60task/partitions_obp60.csv
|
||||||
board = nodemcu-32s
|
board = nodemcu-32s
|
||||||
lib_deps =
|
lib_deps =
|
||||||
|
|
|
@ -14,19 +14,20 @@ toolpath="./docs/flash_tool"
|
||||||
|
|
||||||
# Install tools
|
# Install tools
|
||||||
echo "Installing tools"
|
echo "Installing tools"
|
||||||
|
cd /workspace/esp32-nmea2000
|
||||||
pip3 install -U esptool
|
pip3 install -U esptool
|
||||||
pip3 install -platformio
|
pip3 install platformio
|
||||||
|
|
||||||
# Compile the firmware
|
# Compile the firmware
|
||||||
echo "Compiling Firmware"
|
echo "Compiling Firmware"
|
||||||
platformio run
|
platformio run -e nodemcu32s_obp60
|
||||||
|
|
||||||
# Copy all bin files in docs folder for online flash tool
|
# Copy all bin files in docs folder for online flash tool
|
||||||
echo "Copy bin files"
|
#echo "Copy bin files"
|
||||||
cp $projectpath/bootloader.bin $toolpath/bootloader.bin
|
#cp $projectpath/bootloader.bin $toolpath/bootloader.bin
|
||||||
cp $projectpath/partitions.bin $toolpath/partitions.bin
|
#cp $projectpath/partitions.bin $toolpath/partitions.bin
|
||||||
cp $projectpath/firmware.bin $toolpath/firmware.bin
|
#cp $projectpath/firmware.bin $toolpath/firmware.bin
|
||||||
|
|
||||||
# Merge all bin files to one merge file
|
# Merge all bin files to one merge file
|
||||||
echo "Merge all bin files"
|
#echo "Merge all bin files"
|
||||||
esptool.py --chip ESP32 merge_bin -o $toolpath/merged-firmware.bin --flash_mode dio --flash_size 4MB 0x1000 $toolpath/bootloader.bin 0x8000 $toolpath/partitions.bin 0x10000 $toolpath/firmware.bin
|
#esptool.py --chip ESP32 merge_bin -o $toolpath/merged-firmware.bin --flash_mode dio --flash_size 4MB 0x1000 $toolpath/bootloader.bin 0x8000 $toolpath/partitions.bin 0x10000 $toolpath/firmware.bin
|
||||||
|
|
Loading…
Reference in New Issue