How do I display a pointer to a buffer as an array in MBLAB Debugger?

Thread Starter

spinnaker

Joined Oct 29, 2009
7,835
Say I have the function call as follows

DRESULT disk_readp (
BYTE *buff, //Pointer to the read buffer (NULL:Read bytes are forwarded to the stream)
DWORD sector, // Sector number (LBA)
WORD ofs, // Byte offset to read from (0..511)
WORD cnt // Number of bytes to read (ofs + cnt mus be <= 512)
)


How can I treat buff as an array in MPLab debugger, say to read the first 10 bytes of buff as an array so I do not have to type *buf+1,*buf+2 and so on.
 
Top