Experimental: Checks latest version of pyocd
Looking online would suggest that the current error is being caused by not
having the latest version of pyocd installed, so this attempts to update to the
latest before running any pyocd commands.
Change-Id: If5802ad49be2313453d6f16aad313afc4740273c
Signed-off-by: Matthew Dalzell <matthew.dalzell@arm.com>
diff --git a/build_helper/build_helper_configs.py b/build_helper/build_helper_configs.py
index d1a3419..3a1a61b 100755
--- a/build_helper/build_helper_configs.py
+++ b/build_helper/build_helper_configs.py
@@ -141,29 +141,15 @@
"bin/tfm_s_signed.bin "
"image_signing/scripts/tfm_ns_signed.bin ;"
"popd"),
- "nxp/lpcxpresso55s69": ("echo 'LPCXpresso55S69 board post process\n'; "
+ "nxp/lpcxpresso55s69": ("echo 'LPCXpresso55S69 board post process\n';"
+ "pip3 install --upgrade pyocd " # this is experimental, remove
+ "pyocd erase --mass -t LPC55S69 ; "
"if [ -f \"%(ci_build_root_dir)s/spe/bin/bl2.hex\" ]; then "
- "srec_cat "
- "%(ci_build_root_dir)s/spe/bin/"
- "bl2.bin "
- "-Binary -offset 0x0 "
- "-fill 0xFF 0xA000000 0xA020000 "
- "%(ci_build_root_dir)s/nspe/"
- "tfm_s_ns_signed.bin "
- "-Binary -offset 0x8000 "
- "-fill 0xFF 0xA020000 0xA200000 "
- "-o %(ci_build_root_dir)s/"
- "spe/bin/tfm.hex -Intel "
+ "pyocd flash %(ci_build_root_dir)s/spe/bin/bl2.hex -t LPC55S69; "
+ "pyocd flash %(ci_build_root_dir)s/nspe/bin/tfm_s_ns_signed.bin --base-address 0x8000 -t LPC55S69 --no-wait; "
"else "
- "srec_cat "
- "%(ci_build_root_dir)s/nspe/"
- "tfm_s_ns_signed.bin "
- "-Binary -offset 0x8000 "
- "-fill 0xFF 0xA020000 0xA200000 "
- "-o %(ci_build_root_dir)s/"
- "spe/bin/tfm.hex -Intel "
- "fi;"
- ),
+ "pyocd flash %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex -t LPC55S69 --no-wait; "
+ "fi;"),
"cypress/psoc64": ("echo 'Sign binaries for Cypress PSoC64 platform';"
"pushd %(codebase_root_dir)s/;"
"sudo /usr/local/bin/cysecuretools "