Skip to content

DFU 64kB write size#21

Open
michalcourson wants to merge 1 commit into
electro-smith:mainfrom
michalcourson:buffered_writes
Open

DFU 64kB write size#21
michalcourson wants to merge 1 commit into
electro-smith:mainfrom
michalcourson:buffered_writes

Conversation

@michalcourson
Copy link
Copy Markdown

The QSPI writes are fastest when everything aligns with the 64k boundaries. The FAT flash already writes in 64k chunks, but the DFU does not. I've added a buffer to defer the writes until either there is 64k to write, or the end of the file is reached.

I get a ~25% speed improvement with a ~3.5MB test file (41 seconds to 30) in the download portion of the flash procedure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant