pyocd / pyOCD

Open source Python library for programming and debugging Arm Cortex-M microcontrollers
https://pyocd.io
Apache License 2.0
1.11k stars 477 forks source link

pyOCD does not autodetect LPC55S69(?) #801

Closed korjaa closed 4 years ago

korjaa commented 4 years ago

When I'm flashing LPC55S69 with pyOCD v0.24.1 I need to use extra argument -t for example pyocd flash /path/to/binary.hex -t lpc55s69. Otherwise pyOCD detects LPC55S69 as some generic target and fails to flash.

Related https://github.com/mbedmicro/pyOCD/issues/571

flit commented 4 years ago

That's probably because you are using the default firmware for the on-board debug probe, which is LPC-LinkII. If you change the firmware to DAPLink it should auto-detect.

korjaa commented 4 years ago

Thanks for the insight, I think that is the case. I did not yet update interface firmware to DAPLink as it seemed to be a bit more involved process in this LPC55S69.

korjaa commented 4 years ago

How hard would it be to make work automatically with LPC-LinkII, or does it even make sense to do so?

flit commented 4 years ago

It's not possible to autodetect the target with the LPC-LinkII, as the same firmware is used on many NXP boards.

flit commented 4 years ago

Closing this issue as there is no bug, the need to specify the target is simply a property of the LPC-LinkII firmware.