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 Job ID Name Coverage
  Test
failed #125934
amd64
dispatcher-debian-10

00:02:17

failed #125936
amd64
dispatcher-debian-11

00:02:21

passed #125935
amd64
server-debian-10

00:03:02

passed #125937
amd64
server-debian-11

00:05:37

 
  Analyze
skipped #125938
amd64-dind allowed to fail
bandit-sast
skipped #125939
amd64
black
skipped #125940
amd64
code_quality
skipped #125945
amd64
codespell
skipped #125941
amd64
coverage
skipped #125942
amd64
dockerfiles
skipped #125944
amd64
pylint
skipped #125943
amd64
schemas
 
  Build
skipped #125947
amd64
debian/10
skipped #125946
amd64
doc
skipped #125948
amd64-dind
docker-amd64-dispatcher
skipped #125949
amd64-dind
docker-amd64-server
 
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