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.
Hello,
This is keerthana.S. Now I am working with MSP432 Launchpad. I want to read and write data in MSP342 Internal flash using default API functions. I wrote data into Flash successfully. But not able to read that data. How can I read that value. Please help me ASAP.
Hi Keerthana S,
Thanks for posting. I'm assuming that you are basing your flash writing code off of the example here: ?
To read out of flash memory, all you need is to address it as a pointer. So if you know the flash address that you want to read, you could read it back with some basic C code like this:
uint8_t data; uint8_t* addr_ptr = (uint8_t*)0x3F000; data = *addr_ptr;
or this:
read_back_data[i] = *(uint8_t*)(i+CALIBRATION_START);
where in that case i might be a loop counter and CALIBRATION_START, if you see the example I linked above, was the address of where the stored flash data started.
There's a lot of other ways to do it too. Hope this helps give you some guidance.
Regards,
Katie
**Attention** This is a public forum