We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I'm new to CMSIS-DAP and was wondering if that interface can be used to debug one mbed, using another mbed.
To make myself more clear, I want:
- to have one mbed running the program,
- have another mbed debugging the first mbed. This mbed should be able to set breakpoints, read/write register, etc....
Is this possible?
Which of these two situations do you mean:
1) One mbed is using USB host to connect to the other as a slave, and you want to use CMSIS-DAP on the slave interface chip to debug the slave LPC1768 (i.e. the first mbed is acting in the same way a PC running a CMSIS-DAP debugger would be).
2) One mbed is configured *as* a CMSIS-DAP, running appropriate firmware on the LPC1768 and connected to a PC over it's USB device interface (pins D+ and D- on the 40-pin mbed LPC1768), connected over Serial Wire Debug (SWD) to a second mbed-enabled board.
I'm sure both cases are possible but I'm not aware of any examples to point you to.
I would like to implement the first situation,
where indeed 1 mbed assumes the role of a PC debugger using USB host and another as 'slave' being debugged.