Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash loader rework #1113

Merged
merged 5 commits into from
Mar 25, 2021
Merged

Conversation

Ant-ON
Copy link
Collaborator

@Ant-ON Ant-ON commented Mar 23, 2021

In this PR, the waiting for data writing is changed from cycles to ms. This should be a more robust solution.
Fixed a flash loader bug. The flash loader had an incorrect busy wait cycle. The use of bootloader argument registers during boot removed. Removed magic with recalculation of the size to the count. The number of bytes to load (size) is transferred to the flash loader now.
Added disabling of interrupts during flash loader execution. In some cases interrupts caused a failure

(Closes #356, Closes #556, Closes #593, Closes #597, Closes #607, Closes #612, Closes #638, Closes #661, Closes #690, Closes #817, Closes #818, Closes #854, Closes #967, Closes #979, Closes #1043, Closes #1054, Closes #1092, Closes #1105, Closes #1113)
(Partially fixes #724, Partially fixes #868, Partially fixes #1008)

@Nightwalker-87
Copy link
Member

We should give @chenguokai the chance to review as well, because he did the last major rewrite of the flash-loader stuff.

@Nightwalker-87
Copy link
Member

Nightwalker-87 commented Mar 25, 2021

@Ant-ON Thank you very much for this very important work! 🚀
It is clearly one of the most valuable improvements to the toolset in the recent time. 🥇 🥇 🥇

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