We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear all Hi,
I have been posting some threads about IAP programming lately and the discussions helped me a lot. There is just one problem left. Suppose that I want to write two variables x and y on flash memory of the MCU (sector 1 for instance). The variables are stored in specific addresses of section one. (I have done this and I have written the flash memory) now my question is how to read those variables from the specified addresses of flash memory in my application? The IAP_Read won't work because it returns the fist non-zero byte and its contents which is not what I mean. What is the easiest way of reading the flash memory of LPC1768?
Hi I think it is very simple,although I my self did not work with 1768, but from my experiences with STM32F103RBT6 and LPC1788 read and write to memory areas can b easily done with some pointer work,just let the pointer point to the flash address and then read the pointer data using '*' before its name. regards, Hessam
Reading, yes; but writing to Flash requires much more than just "some pointer work"...
HI
I don't know why I thought that pointers might not work for flash memory! But actually they do very well.
And andy you're right. Writing needs using AIP procedure and includes killing all interrupts.
Thanks all that helped a lot.