Cannot debug with NXP LPC1768

I can run the blinky example on LPC1768 with MbedStudio 1.0 but I can’t start the debugger.

Does MbedStudio support debugging with LPC1768? If yes, how?

Hello,

probably because the LPC1768 is still not on the list of supported targets for the debug functionality.

BR, Jan

Hi @ztrf,

Unfortunately Mbed Studio does not support debugging LPC1768 at the moment. Reason behind it is the bug in pyOCD (https://github.com/mbedmicro/pyOCD/issues/745). We understand how popular this target is. We are actively working on the solution.

Thanks,
Arek - Mbed Studio team

Hello Arek,

I can debug mbed programs built with GCC ARM for the mbed LPC1768 board with pyOCD, but it requires to delete the following two lines from the "device_has" section of the "LPC1768" target in the targets.json file:

...
            "LOCALFILESYSTEM",
...
            "SEMIHOST",

Unfortunately this workaround does not work with the Mbed Studio. However, the reported error seems to be different than the one reported in the “pyOCD/issues/745”:

...
pyocd.core.exceptions.TransferError: No ACK received
"0005869:ERROR:gdbserver:Unhandled exception in handle_message: No ACK received"
Remote failure reply: E01

Maybe it can help your team to hunt down the bug.

Best regards,

Zoltan

Hi Zoltan,

Thank you. Much appreciated. Can you also let me know the platform you are on and version of pyOCD you are using?

Thanks,
Arek - Mbed Studio team

Hello Arek,

I’m using pyOCD 0.8.0 and as far as I remember I’ve got it along with the mbed-cli package. But I’m not hundred percent sure. It works on both Ubuntu 18.04 LTS and MS Windows 7 64-bit (and also 32-bit) to debug mbed OS 2, mbed OS 5 and mbed OS 6 programs on mbed LPC1768 boards.

Best regards,

Zoltan

Hi Zoltan,

That explains why it works for you. To my knowledge problems with debugging LPC1768 started in pyOCD 0.10.0. Mbed Studio 1.0.0 uses pyOCD 0.23.0.

Thanks,
Arek - Mbed Studio team