- Notifications
You must be signed in to change notification settings - Fork13.3k
XMC flash support - WIP#6725
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Called from user_init().
devyte commentedNov 19, 2019
Waiting on eboot bits. |
Part 1 - still some work to do
Part 2 - Identify the chip type.Note: there may still be issues with the access speed change.This is very much experimental.
ChocolateFrogsNuts commentedNov 23, 2019
Some work still required on the eboot part. |
earlephilhower commentedDec 21, 2019
@ChocolateFrogsNuts I did a manual code merge, but you'll need to rebuild and push the new Right now it's ever-so-slightly beyond the 4K limit so we need to find a way to reduce the code size somehow: |
earlephilhower commentedDec 21, 2019
If we drop some sanity checks in the eboot section handler, it all just barely fits. I don't think there is much reason to have the checks there if we're using our own elf2bin.py script and can guarantee anything we create is valid. If anything was uploaded that's invalid, well, that would kind of crash anyway I think. |
ChocolateFrogsNuts commentedDec 21, 2019
I'll try to get back to this soon, but for now you could probably leave out the eboot bits if you need the space.
|
devyte commentedFeb 22, 2020
@ChocolateFrogsNuts What's the status with this one? |
ChocolateFrogsNuts commentedFeb 23, 2020
What's here works except for the case where the power is cycled during the eboot copy phase. I haven't had a chance to get back to why my version of spi_flash_get_id() doesn't work :( |
devyte commentedApr 20, 2020
I think this requires a new eboot.elf? |
earlephilhower commentedApr 20, 2020
Yes, it will need a new eboot.elf added to the PR. @ChocolateFrogsNuts , you've On my own noname D1 Mini clone it works fine, just tested it. It's not XMC (was working before) and works with this patch. |
ChocolateFrogsNuts commentedApr 21, 2020
It has no effect at all as long as the chip ID doesn't match XMC's. Should be no problem leaving it all in. |
earlephilhower commentedApr 21, 2020
Great, thanks@ChocolateFrogsNuts . Can you build an If you can't regen the bootloader, we can still do it with a new PR, but it would be cleaner to have the bins and sources match in GIT. |
ChocolateFrogsNuts commentedApr 23, 2020
Merged master to my local copy, but now have an issue with a missing uzlib.h Did it get missed in a commit elsewhere, or do I need to do something to bring uzlib into my copy? |
earlephilhower commentedApr 23, 2020
|
ChocolateFrogsNuts commentedApr 23, 2020
Thanks, my lack of git usage is showing :) |
earlephilhower left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks!
devyte commentedApr 23, 2020
This has been merged as still WIP, because there is still one detail pending. As explained above, for XMC flash chips it is possible that if there is a power failure during the eboot copy process, the ESP could be bricked. That will be handled if/when needed in the future. |
Uh oh!
There was an error while loading.Please reload this page.
XMC Flash output drive power support for the core.
WIP because there is a component for eboot that will be pushed here later, but it still has a few kinks to be worked out. The eboot component is only required / in play where an OTA update is being applied and the power fails during the eboot copy phase. Without it a power failure during the reboot after an OTA updatemay brick the esp until the firmware is reloaded via USB, but this is untested, and there is a good chance that the eboot copy will succeed when power is reapplied anyway.
This PR has no effect if your board does not have an XMC brand spi flash chip.
Third and final part of the solution to#6559