this is my first post, don’t kick me please , I’m working with a LPC2106 microcontroller and using the IAR Embedded Workbench KickStart board. It work well, now I’ve found how to write a data to Flash by using the IAP functions. But really I can’t found similar command to use in order to retrieve back the data previously written into the Flash locations.
I need to know how I can read Flash (in C language) because I’ve to use some Flash ROM like a EEPROM to store some configuration data which I’ve to update sometime during the program running and retrieve at the startup before take the main routine execution.
My idea is keep data storage into the last block before the boot loader block then the 14 block number.
In order to check if the Flash writing was succeed you can also use the LPC2000 Flash utility (I’ve test it on the release v2.0.1) which came from Philips, then simply select the Buffer → Flash Buffer Operations:
then go to the bottom of the window into the Address Range section and write the Flash start and Flash end address at this point you’re ready to download the Flash selected memory address, simply press the Download Flash button (in the example below I like to read the first 0x100 location from the start of the block 14).
Of course I know this may be obvious stuff, but I’m a newbie with this uP and related develop environment this is the reason because I’m writing all in deep format, may be useful also for other noob peple .