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

Discussion in 'Embedded Systems and Microcontrollers' started by spinnaker, Jan 10, 2012.

  1. spinnaker

    Thread Starter AAC Fanatic!

    Oct 29, 2009
    4,884
    1,001
    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.
     
  2. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    Show the raw memory read block at the start address?
     
  3. spinnaker

    Thread Starter AAC Fanatic!

    Oct 29, 2009
    4,884
    1,001
    And how do you do that?

    :)
     
  4. spinnaker

    Thread Starter AAC Fanatic!

    Oct 29, 2009
    4,884
    1,001
    Figured it out.


    Thanks!
     
  5. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    In mplab open the File Registers window, you can then import or export ram as an MCH file

    From Microchip Forums

    I was thinking view EEPROM :rolleyes:
     
Loading...