-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update platform for MKS Tinybee and others (#27433)
* 🔨 Update ESP32 env for MKS Tinybee * 🔨 Updated LPC common env * 🔨 Other env improvements Co-Authored-By: Michael <[email protected]>
- Loading branch information
1 parent
a923771
commit a80d3b1
Showing
11 changed files
with
86 additions
and
34 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
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,38 @@ | ||
{ | ||
"build": { | ||
"arduino":{ | ||
"ldscript": "esp32_out.ld" | ||
}, | ||
"core": "esp32", | ||
"extra_flags": "-DARDUINO_ESP32_DEV", | ||
"f_cpu": "240000000L", | ||
"f_flash": "40000000L", | ||
"flash_mode": "dio", | ||
"mcu": "esp32", | ||
"variant": "esp32" | ||
}, | ||
"connectivity": [ | ||
"wifi", | ||
"bluetooth", | ||
"ethernet", | ||
"can" | ||
], | ||
"debug": { | ||
"openocd_board": "esp-wroom-32.cfg" | ||
}, | ||
"frameworks": [ | ||
"arduino", | ||
"espidf" | ||
], | ||
"name": "MKS TinyBee V1.0", | ||
"upload": { | ||
"flash_size": "8MB", | ||
"maximum_ram_size": 524288, | ||
"maximum_size": 8388608, | ||
"require_upload_port": true, | ||
"speed": 460800, | ||
"offset_address": 65536 | ||
}, | ||
"url": "https://github.com/makerbase-mks/MKS-TinyBee", | ||
"vendor": "MKS Makerbase" | ||
} |
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 |
---|---|---|
|
@@ -40,11 +40,6 @@ HAS_MARLINUI_HD44780 = build_src_filter=+<src/lcd/HD44780> | |
HAS_MARLINUI_U8GLIB = marlinfirmware/[email protected] | ||
build_src_filter=+<src/lcd/dogm> | ||
HAS_(FSMC|SPI|LTDC)_TFT = build_src_filter=+<src/lcd/tft_io> | ||
HAS_LTDC_TFT = build_src_filter=+<src/HAL/STM32/tft/tft_ltdc.cpp> | ||
HAS_FSMC_TFT = build_src_filter=+<src/HAL/STM32/tft/tft_fsmc.cpp> +<src/HAL/STM32F1/tft/tft_fsmc.cpp> | ||
HAS_SPI_TFT = build_src_filter=+<src/HAL/STM32/tft/tft_spi.cpp> +<src/HAL/STM32F1/tft/tft_spi.cpp> +<src/HAL/LPC1768/tft/tft_spi.cpp> | ||
HAS_TFT_XPT2046 = build_src_filter=+<src/HAL/STM32/tft/xpt2046.cpp> +<src/HAL/STM32F1/tft/xpt2046.cpp> +<src/HAL/LPC1768/tft/xpt2046.cpp> | ||
TFT_TOUCH_DEVICE_GT911 = build_src_filter=+<src/HAL/STM32/tft/gt911.cpp> | ||
I2C_EEPROM = build_src_filter=+<src/HAL/shared/eeprom_if_i2c.cpp> | ||
SOFT_I2C_EEPROM = SlowSoftI2CMaster, SlowSoftWire=https://github.com/felias-fogg/SlowSoftWire/archive/f34d777f39.zip | ||
SPI_EEPROM = build_src_filter=+<src/HAL/shared/eeprom_if_spi.cpp> | ||
|
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 |
---|---|---|
|
@@ -14,23 +14,26 @@ | |
# | ||
[common_LPC] | ||
platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip | ||
platform_packages = framework-arduino-lpc176x@^0.2.8 | ||
platform_packages = framework-arduino-lpc176x@^0.2.9 | ||
[email protected] | ||
board = nxp_lpc1768 | ||
lib_ldf_mode = off | ||
lib_compat_mode = strict | ||
extra_scripts = ${common.extra_scripts} | ||
Marlin/src/HAL/LPC1768/upload_extra_script.py | ||
Marlin/src/HAL/LPC1768/upload_extra_script.py | ||
build_src_filter = ${common.default_src_filter} +<src/HAL/LPC1768> -<src/HAL/LPC1768/tft> +<src/HAL/shared/backtrace> | ||
lib_deps = ${common.lib_deps} | ||
Servo | ||
custom_marlin.USES_LIQUIDCRYSTAL = arduino-libraries/LiquidCrystal@~1.0.7 | ||
custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/1.5.0.zip | ||
Servo | ||
build_flags = ${common.build_flags} -DU8G_HAL_LINKS -DPLATFORM_M997_SUPPORT | ||
-IMarlin/src/HAL/LPC1768/include -IMarlin/src/HAL/LPC1768/u8g | ||
# debug options for backtrace | ||
#-funwind-tables | ||
#-mpoke-function-name | ||
# debug options for backtrace | ||
#-funwind-tables | ||
#-mpoke-function-name | ||
build_src_flags = -std=gnu++20 -Wno-volatile | ||
custom_marlin.USES_LIQUIDCRYSTAL = arduino-libraries/LiquidCrystal@~1.0.7 | ||
custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/1.5.0.zip | ||
custom_marlin.HAS_SPI_TFT = build_src_filter=+<src/HAL/LPC1768/tft/tft_spi.cpp> | ||
custom_marlin.HAS_TFT_XPT2046 = build_src_filter=+<src/HAL/LPC1768/tft/xpt2046.cpp> | ||
|
||
# | ||
# NXP LPC176x ARM Cortex-M3 | ||
|
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
# HAL/STM32F1 Common Environment values | ||
# | ||
[STM32F1_maple] | ||
platform = ststm32@~12.1 | ||
platform = ststm32@~15.4.1 | ||
board_build.core = maple | ||
build_flags = !python buildroot/share/PlatformIO/scripts/STM32F1_build_flags.py | ||
${common.build_flags} -DARDUINO_ARCH_STM32 -DMAPLE_STM32F1 -DPLATFORM_M997_SUPPORT | ||
|
@@ -32,12 +32,15 @@ build_src_filter = ${common.default_src_filter} +<src/HAL/STM32F1> -<src/HAL/ST | |
lib_ignore = SPI, FreeRTOS701, FreeRTOS821 | ||
lib_deps = ${common.lib_deps} | ||
SoftwareSerialM | ||
platform_packages = tool-stm32duino | ||
platform_packages = tool-stm32duino, [email protected] | ||
extra_scripts = ${common.extra_scripts} | ||
pre:buildroot/share/PlatformIO/scripts/fix_framework_weakness.py | ||
pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py | ||
buildroot/share/PlatformIO/scripts/custom_board.py | ||
buildroot/share/PlatformIO/scripts/offset_and_rename.py | ||
custom_marlin.HAS_SPI_TFT = build_src_filter=+<src/HAL/STM32F1/tft/tft_spi.cpp> | ||
custom_marlin.HAS_TFT_XPT2046 = build_src_filter=+<src/HAL/STM32F1/tft/xpt2046.cpp> | ||
custom_marlin.HAS_FSMC_TFT = build_src_filter=+<src/HAL/STM32F1/tft/tft_fsmc.cpp> | ||
|
||
# | ||
# Generic STM32F103RC environment | ||
|
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 |
---|---|---|
|
@@ -71,7 +71,7 @@ build_flags = ${env:STM32F103RC_btt.build_flags} | |
-DUSBD_IRQ_PRIO=5 | ||
-DUSBD_IRQ_SUBPRIO=6 | ||
-DUSBD_USE_CDC_MSC | ||
build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC | ||
build_unflags = ${env:STM32F103RC_btt.build_unflags} -DUSBD_USE_CDC | ||
|
||
# | ||
# Panda Pi V2.9 - Standalone (STM32F103RC) | ||
|
@@ -83,8 +83,8 @@ build_flags = ${common_STM32F103RC_variant.build_flags} | |
-DTIMER_SERVO=TIM1 | ||
board_build.offset = 0x5000 | ||
board_upload.offset_address = 0x08005000 | ||
lib_deps = | ||
markyue/[email protected] | ||
lib_deps = markyue/[email protected] | ||
|
||
# | ||
# MKS Robin (STM32F103ZET6) | ||
# Uses HAL STM32 to support Marlin UI for TFT screen with optional touch panel | ||
|
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