This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HOW TO READ FLASH MEMORY FOR MSP430F5152

Other Parts Discussed in Thread: MSP430F5152

HI 

I AM NEW FOR MSP430f5152 CONTROLLER . I  WAS WRITING  SUCCESSFULLY  ON FLASH MEMORY. i try to read flash memory .  but i dont know how to read flash memory . pls help me how to read flash memory . pls give sample code 

thanks and regards

parthi

  • Hello Parthi,

    You can read flash memory using a tool called Lite FetPro-40.  It can be downloaded from their website.  Once you bring up the GUI and set the appropriate microcontroller Type, click on Read/Copy button to read flash memory.

     

    Regards,

    Arthi Bhat

  • Hi Parthiban,

    Reading from flash is ready as simple as reading from a register. All you need is to know the address from where you want to read.

    for example lets say, I want read from InfoC of flash. The address associated with it is 0x002b.

    my code to read is:

    Pointer_to_flash = (int*)0xcc2b; // Ponter, pointing to address of flash memory where data is stored
    X = *Pointer_to_flash;                  // Reading Data from Flash to local var x.

    if you want to read entire flash segment:

    for(j = 256; j>=;j--)
    {
       Print(x); // jst store this x where evr you want or print
       x = *Pointer_to_flash++;
    }

    thas it.

    Cheers.

**Attention** This is a public forum