0
\$\begingroup\$

I have one problem with store data into flash on my uC LPC1759. I need to save 64 byte data into flash, but when i use IAP-Interface, it takes more than 1 second. Is there a way to make it faster than 1 ms ? It is possible use DMA for copy data from RAM to Flash? Or write data to flash less than 256 Byte ( UM10360 - minimum size - 256 Byte).

\$\endgroup\$
2
  • \$\begingroup\$ My guess is that the 1 second is mainly the erase time? You might be able to write much faster (but I doubt you could reach 1 ms) when the block is already erased. But the real solution is probably to use external eeprom. \$\endgroup\$ Feb 4, 2016 at 12:18
  • \$\begingroup\$ Consider FRAM, or even battery-backed SRAM possibilities. \$\endgroup\$
    – pjc50
    Feb 4, 2016 at 12:27

1 Answer 1

1
\$\begingroup\$

The flash programming time (for the 256 byte block) is 1 millisecond. See chapter 12.1 "Flash memory" in the datasheet. And no, you cannot write to flash any faster.

\$\endgroup\$
4
  • \$\begingroup\$ In UM10360 for LPC175x? \$\endgroup\$
    – Sauber
    Feb 4, 2016 at 12:23
  • \$\begingroup\$ No, the "Product datasheet" for LPC1759 \$\endgroup\$
    – Turbo J
    Feb 4, 2016 at 12:26
  • \$\begingroup\$ Maybe it works for programm flash from bootloader, but in IAP this does not work \$\endgroup\$
    – Sauber
    Feb 4, 2016 at 12:35
  • 1
    \$\begingroup\$ I used those IAP functions myself, they work. The block must be erased first, of course. Erase works only for complete 4k/64kB sectors. \$\endgroup\$
    – Turbo J
    Feb 4, 2016 at 15:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.