coresight-wire-protocol
coresight-wire-protocol copied to clipboard
Requesting clarification wrt memory read operation in CSWP server
Inside the below function : in file /target/cswp_server/cswp_impl.c
static int cswp_server_impl_mem_read
There is a line which states:
/* Only device 0 supports mem access */
if (deviceIndex != 0)
return CSWP_UNSUPPORTED;
Based on my understanding , even a mem-ap device (which has a non 0 device index) supports MEM accesses. The above condition (which returns CSWP_UNSUPPORTED if it sees deviceIndex !=0 ) however has higher priority than the code written for mem-ap to handle MEM read operation.
Can you please help clarify if that is expected ?