Hi, forgive me if I'm posting this in the wrong section.
I'm currently trying to write my own debugger program for AVR which communicates on an EDBG device with the EDBG Interface documentation
I have some of it already sorted out like setting breakpoints, reading registers, reading/writing memory. However, I have some problems getting break events from the EDBG which can tell me when the AVR has stopped after setting a breakpoint.
From what I understand from the CMSIS-DAP documentation the EDBG is supposed to store all these events which it receives until I send a CMSIS command to poll for them.
This is command 0x82 (AVR_EVT) and you should expect a response given in the table under:
|Size||2 byte, MSB first||Number of event bytes|
|Event||N bytes||Enveloped AVR event|
So when I am setting a breakpoint and starting the core again I can confirm that the core halted on my breakpoint.
However, when I poll for the events I don't get anything no matter how many times I try.
0x82 0x0 0x0 0x6 0xe 0xe 0x0 0x12....
(Since the size is zero the rest of the bytes should be ignored)
Am I doing something wrong here in my interpretation of the documentation? Do I need to set any config on the debugger before this will work?
Would greatly appreciate any advice on this :)