kopia lustrzana https://github.com/meshtastic/firmware
				
				
				
			Platform updates (#2340)
* 6.1.0 * Update libs * Update nrf52 while we're at it * Remove temporary heltec platform packages * Update install scripts to flash s3 ota partition binpull/2342/head
							rodzic
							
								
									a8f2e3ddbd
								
							
						
					
					
						commit
						e737a22120
					
				| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
; Common settings for ESP targes, mixin with extends = esp32_base
 | 
			
		||||
[esp32_base]
 | 
			
		||||
extends = arduino_base
 | 
			
		||||
platform = platformio/espressif32@^6.0.0
 | 
			
		||||
platform = platformio/espressif32@^6.1.0
 | 
			
		||||
build_src_filter = 
 | 
			
		||||
  ${arduino_base.build_src_filter} -<platform/nrf52/> -<platform/stm32wl> -<platform/rp2040> -<mesh/eth/>
 | 
			
		||||
upload_speed = 921600
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
[esp32s2_base]
 | 
			
		||||
extends = arduino_base
 | 
			
		||||
platform = platformio/espressif32@^6.0.0
 | 
			
		||||
platform = platformio/espressif32@^6.1.0
 | 
			
		||||
build_src_filter = 
 | 
			
		||||
  ${arduino_base.build_src_filter} -<platform/nrf52/> -<platform/stm32wl> -<platform/rp2040> -<mesh/eth/> -<nimble/>
 | 
			
		||||
upload_speed = 961200
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
[esp32s3_base]
 | 
			
		||||
extends = arduino_base
 | 
			
		||||
platform = platformio/espressif32@^6.0.0
 | 
			
		||||
platform = platformio/espressif32@^6.1.0
 | 
			
		||||
build_src_filter = 
 | 
			
		||||
  ${arduino_base.build_src_filter} -<platform/nrf52/> -<platform/stm32wl> -<platform/rp2040> -<mesh/eth/>
 | 
			
		||||
upload_speed = 961200
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
[nrf52_base]
 | 
			
		||||
; Instead of the standard nordicnrf52 platform, we use our fork which has our added variant files
 | 
			
		||||
platform = platformio/nordicnrf52@^9.4.0
 | 
			
		||||
platform = platformio/nordicnrf52@^9.5.0
 | 
			
		||||
 | 
			
		||||
extends = arduino_base
 | 
			
		||||
build_type = debug ; I'm debugging with ICE a lot now
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,7 +30,13 @@ IF EXIST %FILENAME% IF x%FILENAME:update=%==x%FILENAME% (
 | 
			
		|||
    echo Trying to flash update %FILENAME%, but first erasing and writing system information"
 | 
			
		||||
	%PYTHON% -m esptool --baud 115200 erase_flash
 | 
			
		||||
	%PYTHON% -m esptool --baud 115200 write_flash 0x00 %FILENAME%
 | 
			
		||||
	%PYTHON% -m esptool --baud 115200 write_flash 0x260000 bleota.bin
 | 
			
		||||
    
 | 
			
		||||
    @REM Account for S3 board's different OTA partition
 | 
			
		||||
    IF x%FILENAME:s3=%==x%FILENAME% IF x%FILENAME:v3=%==x%FILENAME% (
 | 
			
		||||
        %PYTHON% -m esptool --baud 115200 write_flash 0x260000 bleota.bin
 | 
			
		||||
	) else (
 | 
			
		||||
        %PYTHON% -m esptool --baud 115200 write_flash 0x260000 bleota-s3.bin
 | 
			
		||||
    )
 | 
			
		||||
    for %%f in (littlefs-*.bin) do (
 | 
			
		||||
        %PYTHON% -m esptool --baud 115200 write_flash 0x300000 %%f
 | 
			
		||||
    )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -49,7 +49,12 @@ if [ -f "${FILENAME}" ] && [ ! -z "${FILENAME##*"update"*}" ]; then
 | 
			
		|||
	echo "Trying to flash ${FILENAME}, but first erasing and writing system information"
 | 
			
		||||
	"$PYTHON" -m esptool  erase_flash
 | 
			
		||||
	"$PYTHON" -m esptool  write_flash 0x00 ${FILENAME}
 | 
			
		||||
    "$PYTHON" -m esptool  write_flash 0x260000 bleota.bin
 | 
			
		||||
	# Account for S3 board's different OTA partition
 | 
			
		||||
	if [ ! -z "${FILENAME##*"s3"*}" ] && [ ! -z "${FILENAME##*"-v3"*}" ]; then
 | 
			
		||||
		"$PYTHON" -m esptool  write_flash 0x260000 bleota.bin
 | 
			
		||||
	else
 | 
			
		||||
	    "$PYTHON" -m esptool  write_flash 0x260000 bleota-s3.bin
 | 
			
		||||
	fi
 | 
			
		||||
	"$PYTHON" -m esptool  write_flash 0x300000 littlefs-*.bin
 | 
			
		||||
 | 
			
		||||
else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -64,7 +64,7 @@ lib_deps =
 | 
			
		|||
  https://github.com/meshtastic/arduino-fsm.git#7db3702bf0cfe97b783d6c72595e3f38e0b19159
 | 
			
		||||
  https://github.com/meshtastic/TinyGPSPlus.git#127ad674ef85f0201cb68a065879653ed94792c4
 | 
			
		||||
  https://github.com/meshtastic/ArduinoThread.git#72921ac222eed6f526ba1682023cee290d9aa1b3
 | 
			
		||||
  nanopb/Nanopb@^0.4.6
 | 
			
		||||
  nanopb/Nanopb@^0.4.7
 | 
			
		||||
  erriez/ErriezCRC32@^1.0.1
 | 
			
		||||
  jgromes/RadioLib@^5.7.0
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -100,7 +100,7 @@ lib_deps =
 | 
			
		|||
[environmental_base]
 | 
			
		||||
lib_deps =
 | 
			
		||||
  adafruit/Adafruit BusIO@^1.11.4
 | 
			
		||||
  adafruit/Adafruit Unified Sensor@^1.1.4
 | 
			
		||||
  adafruit/Adafruit Unified Sensor@^1.1.9
 | 
			
		||||
  adafruit/Adafruit BMP280 Library@^2.6.6
 | 
			
		||||
  adafruit/Adafruit BME280 Library@^2.2.2
 | 
			
		||||
  adafruit/Adafruit BME680 Library@^2.0.1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,9 +1,6 @@
 | 
			
		|||
[env:heltec-v3] 
 | 
			
		||||
platform = https://github.com/Baptou88/platform-espressif32.git
 | 
			
		||||
extends = esp32s3_base
 | 
			
		||||
board = heltec_wifi_lora_32_V3
 | 
			
		||||
# Temporary until espressif creates a release with this new target
 | 
			
		||||
platform_packages =
 | 
			
		||||
   framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git
 | 
			
		||||
build_flags = 
 | 
			
		||||
  ${esp32s3_base.build_flags} -D HELTEC_V3 -I variants/heltec_v3
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,9 +1,6 @@
 | 
			
		|||
[env:heltec-wsl-v3] 
 | 
			
		||||
platform = https://github.com/Baptou88/platform-espressif32.git
 | 
			
		||||
extends = esp32s3_base
 | 
			
		||||
board = heltec_wifi_lora_32_V3
 | 
			
		||||
# Temporary until espressif creates a release with this new target
 | 
			
		||||
platform_packages =
 | 
			
		||||
   framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git
 | 
			
		||||
build_flags = 
 | 
			
		||||
  ${esp32s3_base.build_flags} -D HELTEC_WSL_V3 -I variants/heltec_wsl_v3
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue