device-types: Update pyocd command for version 0.30 and higher

For a long time, "pyocd-flashtool" command threw a warning that it's
deprecated and "pyocd flash" should be used instead. Finally, in
0.30, "pyocd-flashtool" is fully removed, and thus existing device
configs throw errors when used with the current pyocd version.

So, update all device type templates to be compatible with 0.30. It's
also compatible with several releases before that. It's not compatible
with very old releases (like 0.13), because those releases vice-versa
didn't have the "pyocd" executable. Users who still may need to use
such a pyocd version with some devices (e.g. due to hardware
constraints) are expected to override device type templates in their
install (e.g. using "lavacli device-types template set" command).

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
16 jobs for pyocd-flash-subcmd in 5 minutes and 38 seconds (queued for 3 seconds)
latest
Status Name Job ID Coverage
  Test
failed dispatcher-debian-10 #125934
amd64

00:02:17

failed dispatcher-debian-11 #125936
amd64

00:02:21

passed server-debian-10 #125935
amd64

00:03:02

passed server-debian-11 #125937
amd64

00:05:37

 
  Analyze
skipped bandit-sast #125938
amd64-dind allowed to fail
skipped black #125939
amd64
skipped code_quality #125940
amd64
skipped codespell #125945
amd64
skipped coverage #125941
amd64
skipped dockerfiles #125942
amd64
skipped pylint #125944
amd64
skipped schemas #125943
amd64
 
  Build
skipped debian/10 #125947
amd64
skipped doc #125946
amd64
skipped docker-amd64-dispatcher #125948
amd64-dind
skipped docker-amd64-server #125949
amd64-dind
 
Name Stage Failure
failed
dispatcher-debian-11 Test
=========================== short test summary info ============================
FAILED tests/lava_dispatcher/test_pyocd.py::TestPyocdAction::test_pyocd_pipeline
====== 1 failed, 459 passed, 6 skipped, 27 warnings in 123.90s (0:02:03) =======
Uploading artifacts for failed job
Uploading artifacts...
WARNING: coordinator.xml: no matching files
ERROR: No files to upload
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
dispatcher-debian-10 Test

-- Docs: https://docs.pytest.org/en/latest/warnings.html
======== 1 failed, 462 passed, 3 skipped, 29 warnings in 121.14 seconds ========
Uploading artifacts for failed job
Uploading artifacts...
WARNING: coordinator.xml: no matching files
ERROR: No files to upload
Cleaning up file based variables
ERROR: Job failed: exit code 1