In earlier post you mentioned like this.
" Where is the code running that is trying to write to the flash? It MUST be (re)located in RAM - you cannot program the flash if the code is running from that flash"
Now i got doubt where exactly my code will reside? Is it on RAM or flash? By default program gets stored in flash right? Do i need to move IAP wrapper code to RAM? If so, how to do it?
Second thing, Once i write data to the Flash using IAP command then it should be there in flash. Now in my case i am using sector 15 ( address 0x00078000). And i should be able to read the data anytime right (after power cycle also)?.
So if the correct values are stored in the flash, then it must be a bug in your code that is reading the wrong values... Use the debugger to find out what addresses you are using in your memcpy and also check the ode that validates the values.
So if the correct values are stored in the flash, then it must be a bug in your code that is reading the wrong values... Use the debugger to find out what addresses you are using in your memcpy and also check the ode that validates the values.
After writing to the flash using copyRAMtoFlash() command i read the data using memcpy() function and i colud see the data which i have written to the flash. After program comes out of that function when i try to read data using memcpy() from the sdame address then i am not getting the expected result.
Thanks,
Chethan