pyocd has no "read" command... so how do you read a chips flash memory?
There is no simple pyocd read out.bin
command to read the whole flash file for a target.
After digging through the docs and trying various things it instead you need to the cmd
subcommand and then pass in the different commands as args.
The savemem addr len filename
pyocd command will read an address range and save it to a file.
So just enter the address and flash size for a given target, and pass in the separate sub commands to enter. For example
pyocd cmd --target apm32f030c8 -c reset halt -c savemem 0 0x10000 verify.bin
More commands can be found here in the pyOCD command reference.