Hello!
If write to flash 1 byte, no problems (first PAGE_ERASE):
The code above works. But slowly - 512 bytes 24 sec.
If write more bytes, FACCERR return error.
What's wrong? How use burst_prog?
Version DLL 4.10.6
Hi Dmitriy,
I do not believe the burst programming function works the way you think it does.
It does NOT allow programming of a range of memory in one operation. All it does is it speeds up the process of programming the individual locations by implementing a 2-byte FIFO which allows the programming voltage to be left on between individual locations.
Please refer to the programming flowcharts provided in the chip manual for the correct sequence.
PS.The method you are using will be very slow (as you have discovered).
The usual method is to download a small program to the target RAM along with a buffer of bytes to program. The small program then programs the target including the required polling between programming each byte.
I suggest you use the USBDM programming API rather than the low-level API you are using.
Please see the following link:
bye