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.
Hi fnds
I am using MCB 2300 board has LPC 2368 processor.Can any one help me how to store sensor data in to internal flash memory while sensor reading happen in real time.
Clarification:
1. I could read sensor and RTC data and sending in to UART. 2. I want to store the same data to Flash 3. I have referred IAP 512 program from C:\Keil_v5\ARM\Flash folder when i write sensor data to my processor it hangs and collect sensor data slowly.Also it write some garbage value so please suggest me a solution for this.
Regards
P.Thangarasu
You are aware that the LPC23xx chips are rated for 1000 erase cycles for each flash sector?
If you do one write every 512 seconds, that means 168,75 writes per day.
So if you only write to a single sector, that sector will reach the specified erase cycle count efter about 6 days. If you spread your writes over 10 sectors, you will still reach the specified erase cycle count after 60 days.
And because the chip uses ECC, that means you can't write just 512 bytes to a 4kB flash sector and then at a later time fill the sector with more data. Any time the content of a flash sector is changed, if just to change a single bit, you need to perform a full erase cycle.
Next thing - NXP has documented how to flash. So why request people on this forum to supply the information that the manufacturer has already made available?