I am writing to flash memory of LPC2136. Do I need to erase the segment before writing Because i wrote garbage when i write to Flash after doing segment preparation only. every thing fine If i do in following way 1.)prepare the segments 2.)erase the segments 3.)prepare the segments 4.)write to segments Is there any thing wrong or this the only method to write to flash. my worries is whether each time do i need to erase 32kb segment to write. so i need a copy of this 32kb in the ram. Regards murale