Skip to content

Commit

Permalink
Merge branch 'platformio:develop' into g071rb
Browse files Browse the repository at this point in the history
  • Loading branch information
VIPQualityPost authored Oct 4, 2024
2 parents 4f7085d + 54c6736 commit 0368b49
Show file tree
Hide file tree
Showing 20 changed files with 580 additions and 523 deletions.
59 changes: 59 additions & 0 deletions boards/giga_r1_m4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"build": {
"arduino":{
"ldscript": "linker_script.ld",
"flash_layout": "50_50"
},
"extra_flags": "-DARDUINO_GIGA -DARDUINO_GIGA_M4 -DGIGA_PINS",
"core": "arduino",
"cpu": "cortex-m4",
"f_cpu": "480000000L",
"mcu": "stm32h747xih6",
"variant": "GENERIC_STM32H747_M4",
"product_line": "STM32H747xx",
"hwids": [
[
"0x2341",
"0x0366"
],
[
"0x2341",
"0x0266"
],
[
"0x2341",
"0x0466"
]
]
},
"connectivity": [
"bluetooth",
"wifi"
],
"debug": {
"jlink_device": "STM32H747XI_M4",
"openocd_target": "stm32h7x_dual_bank"
},
"frameworks": [
"arduino"
],
"name": "Arduino Giga R1 (M4 core)",
"upload": {
"maximum_ram_size": 294248,
"maximum_size": 1048576,
"protocol": "dfu",
"protocols": [
"cmsis-dap",
"dfu",
"jlink",
"stlink",
"mbed"
],
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true,
"offset_address": "0x08100000"
},
"url": "https://docs.arduino.cc/hardware/giga-r1-wifi",
"vendor": "Arduino"
}
59 changes: 59 additions & 0 deletions boards/giga_r1_m7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"build": {
"arduino":{
"ldscript": "linker_script.ld",
"flash_layout": "50_50"
},
"extra_flags": "-DARDUINO_GIGA -DARDUINO_GIGA_M7 -DGIGA_PINS",
"core": "arduino",
"cpu": "cortex-m7",
"f_cpu": "480000000L",
"mcu": "stm32h747xih6",
"variant": "GIGA",
"product_line": "STM32H747xx",
"hwids": [
[
"0x2341",
"0x0366"
],
[
"0x2341",
"0x0266"
],
[
"0x2341",
"0x0466"
]
]
},
"connectivity": [
"bluetooth",
"wifi"
],
"debug": {
"jlink_device": "STM32H747XI_M7",
"openocd_target": "stm32h7x_dual_bank"
},
"frameworks": [
"arduino"
],
"name": "Arduino Giga R1 (M7 core)",
"upload": {
"maximum_ram_size": 523624,
"maximum_size": 786432,
"protocol": "dfu",
"protocols": [
"cmsis-dap",
"dfu",
"jlink",
"stlink",
"mbed"
],
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true,
"offset_address": "0x08040000"
},
"url": "https://docs.arduino.cc/hardware/giga-r1-wifi",
"vendor": "Arduino"
}
3 changes: 3 additions & 0 deletions boards/nucleo_f429zi.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"build": {
"arduino": {
"variant_h": "variant_NUCLEO_F4x9ZI.h"
},
"core": "stm32",
"cpu": "cortex-m4",
"extra_flags": "-DSTM32F4 -DSTM32F429xx",
Expand Down
11 changes: 8 additions & 3 deletions boards/nucleo_f439zi.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"build": {
"arduino": {
"variant_h": "variant_NUCLEO_F4x9ZI.h"
},
"cpu": "cortex-m4",
"extra_flags": "-DSTM32F4 -DSTM32F439xx",
"f_cpu": "180000000L",
"mcu": "stm32f439zit6",
"product_line": "STM32F439xx"
"product_line": "STM32F439xx",
"variant": "STM32F4xx/F427Z(G-I)T_F429ZET_F429Z(G-I)(T-Y)_F437Z(G-I)T_F439Z(G-I)(T-Y)"
},
"connectivity": [
"can",
Expand All @@ -23,14 +27,15 @@
"svd_path": "STM32F439x.svd"
},
"frameworks": [
"arduino",
"cmsis",
"mbed",
"stm32cube",
"libopencm3"
],
"name": "ST Nucleo F439ZI",
"upload": {
"maximum_ram_size": 262144,
"maximum_ram_size": 196608,
"maximum_size": 2097152,
"protocol": "stlink",
"protocols": [
Expand All @@ -41,6 +46,6 @@
"mbed"
]
},
"url": "https://developer.mbed.org/platforms/ST-Nucleo-F439ZI/",
"url": "https://www.st.com/en/evaluation-tools/nucleo-f439zi.html",
"vendor": "ST"
}
1 change: 1 addition & 0 deletions boards/nucleo_h723zg.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"arduino",
"stm32cube",
"mbed",
"libopencm3",
"zephyr"
],
"name": "ST Nucleo H723ZG",
Expand Down
6 changes: 4 additions & 2 deletions boards/nucleo_h753zi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"extra_flags": "-DSTM32H7 -DSTM32H7xx -DSTM32H753xx",
"f_cpu": "400000000L",
"mcu": "stm32h753zit6",
"product_line": "STM32H753xx"
"product_line": "STM32H753xx",
"variant": "STM32H7xx/H742Z(G-I)T_H743Z(G-I)T_H747A(G-I)I_H747I(G-I)T_H750ZBT_H753ZIT_H757AII_H757IIT"
},
"connectivity": [
"can",
Expand All @@ -23,13 +24,14 @@
"svd_path": "STM32H753.svd"
},
"frameworks": [
"arduino",
"cmsis",
"stm32cube",
"zephyr"
],
"name": "ST Nucleo H753ZI",
"upload": {
"maximum_ram_size": 884736,
"maximum_ram_size": 524288,
"maximum_size": 2097152,
"protocol": "stlink",
"protocols": [
Expand Down
2 changes: 1 addition & 1 deletion builder/frameworks/arduino/mbed-core
6 changes: 3 additions & 3 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def _jlink_cmd_script(env, source):
vid = hwids[0][0]
pid = hwids[0][1]

if env.subst("$BOARD").startswith(("portenta", "opta", "nicla")):
if env.subst("$BOARD").startswith(("portenta", "opta", "nicla", "giga")):
_upload_tool = '"%s"' % join(platform.get_package_dir(
"tool-dfuutil-arduino") or "", "dfu-util")
else:
Expand All @@ -230,7 +230,7 @@ def _jlink_cmd_script(env, source):
upload_actions = [env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")]

if "arduino" in frameworks:
if env.subst("$BOARD").startswith(("portenta", "opta", "nicla")):
if env.subst("$BOARD").startswith(("portenta", "opta", "nicla", "giga")):
upload_actions.insert(
0,
env.VerboseAction(BeforeUpload, "Looking for upload port...")
Expand All @@ -255,7 +255,7 @@ def __configure_upload_port(env):
"Looking for upload port..."))

if "dfu-util" in _upload_tool:
if not env.subst("$BOARD").startswith(("portenta", "opta", "nicla")):
if not env.subst("$BOARD").startswith(("portenta", "opta", "nicla", "giga")):
# Add special DFU header to the binary image
env.AddPostAction(
join("$BUILD_DIR", "${PROGNAME}.bin"),
Expand Down
3 changes: 3 additions & 0 deletions examples/arduino-blink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,6 @@ build_flags =
board = econode_l082cz
build_flags =
-DPIO_FRAMEWORK_ARDUINO_FS_SFLASH

[env:giga_r1_m7]
board = giga_r1_m7
Loading

0 comments on commit 0368b49

Please sign in to comment.