[sw] bootloader: send wake up command to flash before trying to speak with it #552
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The ice40 family of FPGAs, send a sleep command to the flash once it's finished with self-programming in order to save some power [1], unless instructed not to when generating the bitfile (icepack -s or equivalent setting on Radiant)
We don't want the bootloader to depend on the bitfile generation settings and thus we wake up the flash, but since we want a bootloader as small as possible, we don't care to put it back to sleep again (because we don't even know if it was sleeping or not) and let the user application decide what to do with it.
[1] https://www.latticesemi.com/~/media/LatticeSemi/Documents/ApplicationNotes/IK/FPGA-TN-02001-30-iCE40-Programming-Configuration.pdf?document_id=46502 , page 20