The correct second byte of the response of DAP_ID_TIMESTAMP_CLOCK
- Dominant language
- C
- Stars
- 2.8k
- Forks
- 1.1k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 1
Description
From the newest [DAPLink Spec](https://arm-software.github.io/CMSIS_5/latest/DAP/html/group__DAP__Info.html)
the second byte is not the lenght(4) of a 32bit int. Instead , it is a strange arbitrary number 8.
So my question is which one is correct? If it shoule be 8, then there is a bug in DAP.c for sure and otherwise the spec should be updated.
DAP_Info Response (for ID=0xF1):
The ID=0xF1 Test Domain Timer obtains the parameter information about an optional 32-bit Test Domain Timer that may be used for various time measurements.
>
> | BYTE | BYTE | WORD *****|
> < 0x00 | **0x08** | Frequency |
> |******|******|***********|
> Frequency: Input frequency of the Test Domain Timer which indicates the resolution of the 32-bit TD_TimeStamp values.
Contributor guide
Research direction
Read the CMSIS-DAP specification linked in the issue and inspect DAP.c around DAP_ID_TIMESTAMP_CLOCK. Compare the response's second byte with the documented 32-bit Test Domain Timer format, then determine whether the implementation or specification is inconsistent and document the verified result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100