🔨 Use PIO versioning (including HC32) (#26512)

This commit is contained in:
Keith Bennett 2023-12-07 20:35:34 -08:00 committed by GitHub
parent 483b8dcc05
commit fe7203ee55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 6 deletions

View file

@ -19,8 +19,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
* *
*/ */
#pragma once #ifndef ENV_VALIDATE_H
#define ENV_VALIDATE_H
#ifndef ARDUINO_ARCH_HC32 #ifndef ARDUINO_ARCH_HC32
#error "Oops! Select an HC32F460 board in 'Tools > Board.'" #error "Oops! Select an HC32F460 board in 'Tools > Board.'"
#endif #endif
#endif

View file

@ -27,7 +27,7 @@
# Base Environment for all HC32F460 variants # Base Environment for all HC32F460 variants
# #
[HC32F460_base] [HC32F460_base]
platform = https://github.com/shadow578/platform-hc32f46x/archive/main.zip platform = https://github.com/shadow578/platform-hc32f46x/archive/1.0.0.zip
board = generic_hc32f460 board = generic_hc32f460
build_src_filter = ${common.default_src_filter} +<src/HAL/HC32> +<src/HAL/shared/backtrace> build_src_filter = ${common.default_src_filter} +<src/HAL/HC32> +<src/HAL/shared/backtrace>
build_type = release build_type = release

View file

@ -743,7 +743,7 @@ upload_protocol = stlink
[env:STM32F401RC_btt] [env:STM32F401RC_btt]
extends = stm32_variant extends = stm32_variant
platform = ststm32@~14.1.0 platform = ststm32@~14.1.0
platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/2.6.0.zip platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.100301.220327 toolchain-gccarmnoneeabi@1.100301.220327
board = marlin_STM32F401RC board = marlin_STM32F401RC
board_build.offset = 0x4000 board_build.offset = 0x4000

View file

@ -32,7 +32,7 @@ build_flags = -DPIN_WIRE_SCL=PB3 -DPIN_WIRE_SDA=PB4
[env:BTT_EBB42_V1_1_filament_extruder] [env:BTT_EBB42_V1_1_filament_extruder]
extends = stm32_variant extends = stm32_variant
platform = ststm32@~14.1.0 platform = ststm32@~14.1.0
platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/2.6.0.zip platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.100301.220327 toolchain-gccarmnoneeabi@1.100301.220327
board = marlin_BTT_EBB42_V1_1 board = marlin_BTT_EBB42_V1_1
board_build.offset = 0x0000 board_build.offset = 0x0000
@ -48,7 +48,7 @@ upload_command = dfu-util -a 0 -s 0x08000000:leave -D "$SOURCE"
[env:STM32G0B1RE_btt] [env:STM32G0B1RE_btt]
extends = stm32_variant extends = stm32_variant
platform = ststm32@~14.1.0 platform = ststm32@~14.1.0
platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/2.6.0.zip platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.100301.220327 toolchain-gccarmnoneeabi@1.100301.220327
board = marlin_STM32G0B1RE board = marlin_STM32G0B1RE
board_build.offset = 0x2000 board_build.offset = 0x2000
@ -105,7 +105,7 @@ upload_protocol = custom
[env:STM32G0B1VE_btt] [env:STM32G0B1VE_btt]
extends = stm32_variant extends = stm32_variant
platform = ststm32@~14.1.0 platform = ststm32@~14.1.0
platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/2.6.0.zip platform_packages = framework-arduinoststm32@~4.20600.231001
toolchain-gccarmnoneeabi@1.100301.220327 toolchain-gccarmnoneeabi@1.100301.220327
board = marlin_STM32G0B1VE board = marlin_STM32G0B1VE
board_build.offset = 0x2000 board_build.offset = 0x2000