RFQ/BOM 0 Anmelden / Registrieren

Wähle deinen Standort

Benutzerbild

Is there room for improvement in Flash programming speed?

Hardware design
Oktober 22, 2020 by Mia 148

To write Flash in IAP mode, it takes about 100S for 34KB of data, including write and page erase. But it can be done with the emulator about 5S. Is there room for improvement? Of course, the IAP method is the serial port to connect the data, and the emulator is the SWD interface.

Alle Kommentare

user image

Luke Veröffentlicht am October 22, 2020

The emulator uses an axf file, which contains debugging information and a bin file. Generally, the bin file is much smaller than the hex file, and basically less than 50%. Maybe this is also the reason.

Of course, SWD is actually a serial port, but it is still more efficient than ISP.

0
user image

Oliver Veröffentlicht am October 22, 2020

34K? 100S? One and a half minutes? Too slow, what is the serial port baud rate?

In my impression, it takes only 2 minutes for a few hundred K, so I forgot the details.

The data transmission time can be calculated according to the baud rate, and the rest is the time to erase and write FLASH.

Wipe the manual and see how much time it takes to wipe, which is the main time.

0
user image

Lucas Veröffentlicht am October 22, 2020

100S is definitely slow.

When the emulator is downloaded, it runs the programming algorithm program in RAM, and then writes data to the internal Flash.

You can also try to run the program in RAM, and then IAP writes data to Flash. This is just to test writing to Flash.

0

Schreiben Sie eine Antwort

Sie müssen sich anmelden, um antworten zu können. Anmelden | Registrieren