summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-08-22 12:37:11 +0700
committerGitHub <[email protected]>2024-08-22 12:37:11 +0700
commit858ad66c9316250876dad533e47513b7def915d1 (patch)
tree4c0765f6f778cb4f510b154f244e2c7a23df7c8a
parent61187008285d70d700e30e5f11636240ae4845d0 (diff)
circleci tweaks (#2770)
* skip circleci build on master push * change max32666 probe to jlink, max32625pico is not reliable enough
-rw-r--r--.circleci/config.yml4
-rw-r--r--.circleci/config2.yml8
-rw-r--r--hw/bsp/max32690/family.cmake15
-rw-r--r--test/hil/rpi.json13
4 files changed, 16 insertions, 24 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 8769926b1..5136d6331 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -71,5 +71,9 @@ jobs:
workflows:
set-matrix:
+ # Only build PR here, Push will be built by github action.
+ when:
+ and:
+ - not: << pipeline.git.branch.is_default >>
jobs:
- set-matrix
diff --git a/.circleci/config2.yml b/.circleci/config2.yml
index cd844c33f..70b5c60ac 100644
--- a/.circleci/config2.yml
+++ b/.circleci/config2.yml
@@ -100,12 +100,6 @@ commands:
if [ << parameters.toolchain >> == esp-idf ]; then
docker run --rm -v $PWD:/project -w /project espressif/idf:v5.1.1 python tools/build.py << parameters.family >>
else
- # Only build one board per family for non PRs i.e commit to master
- ONE_PER_FAMILY=""
- if [ -z "$CIRCLE_PULL_REQUEST" ]; then
- ONE_PER_FAMILY="--one-per-family"
- fi
-
# Toolchain option default is gcc
if [ << parameters.toolchain >> == arm-clang ]; then
TOOLCHAIN_OPTION="--toolchain clang"
@@ -113,7 +107,7 @@ commands:
TOOLCHAIN_OPTION="--toolchain gcc"
fi
- python tools/build.py $ONE_PER_FAMILY -s << parameters.build-system >> $TOOLCHAIN_OPTION << parameters.family >>
+ python tools/build.py -s << parameters.build-system >> $TOOLCHAIN_OPTION << parameters.family >>
fi
jobs:
diff --git a/hw/bsp/max32690/family.cmake b/hw/bsp/max32690/family.cmake
index 736ca8eac..96dcfedff 100644
--- a/hw/bsp/max32690/family.cmake
+++ b/hw/bsp/max32690/family.cmake
@@ -148,18 +148,5 @@ function(family_configure_example TARGET RTOS)
# Flashing
family_flash_jlink(${TARGET})
- family_flash_msdk(${TARGET})
-endfunction()
-
-# Add flash msdk target
-function(family_flash_msdk TARGET)
- set(MAXIM_PATH "$ENV{MAXIM_PATH}")
-
- add_custom_target(${TARGET}-msdk
- DEPENDS ${TARGET}
- COMMAND ${MAXIM_PATH}/Tools/OpenOCD/openocd -s ${MAXIM_PATH}/Tools/OpenOCD/scripts
- -f interface/cmsis-dap.cfg -f target/max32690.cfg
- -c "program $<TARGET_FILE:${TARGET}> verify; init; reset; exit"
- VERBATIM
- )
+ family_flash_openocd_adi(${TARGET})
endfunction()
diff --git a/test/hil/rpi.json b/test/hil/rpi.json
index 49d2d8286..8eaca2621 100644
--- a/test/hil/rpi.json
+++ b/test/hil/rpi.json
@@ -17,9 +17,9 @@
{
"name": "max32666fthr",
"uid": "0C81464124010B20FF0A08CC2C",
- "flasher": "openocd_adi",
- "flasher_sn": "042217023bffc88100000000000000000000000097969906",
- "flasher_args": "-f interface/cmsis-dap.cfg -f target/max32665.cfg"
+ "flasher": "jlink",
+ "flasher_sn": "000801011822",
+ "flasher_args": "-device max32666"
},
{
"name": "lpcxpresso11u37",
@@ -83,6 +83,13 @@
"flasher": "esptool",
"flasher_sn": "3ea619acd1cdeb11a0a0b806e93fd3f1",
"flasher_args": "-b 921600"
+ },
+ {
+ "name": "max32666fthr",
+ "uid": "0C81464124010B20FF0A08CC2C",
+ "flasher": "openocd_adi",
+ "flasher_sn": "042217023bffc88100000000000000000000000097969906",
+ "flasher_args": "-f interface/cmsis-dap.cfg -f target/max32665.cfg"
}
]
}