[Resolved] Stock firmware boot failure: Interaction with external EEPROM? #21
luckyabsoluter
started this conversation in
General
Replies: 1 comment 6 replies
-
|
Are you sure your "stock" firmware is valid? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I recently encountered a soft-brick scenario after flashing a bad firmware. I am sharing my findings regarding a strange flash corruption issue that seems closely tied to the external EEPROM, and I would appreciate any insights from the community.
🐛 Symptoms
0xFF, confirming that there are no bad sectors and the memory cells are functioning correctly.🔍 Technical Observations
To investigate the stock firmware boot failure, I dumped the flash memory after writing the stock firmware to the STM32.
0x00. Given that erasing STM32 flash sets bits to1(0xFF) and writing pulls them to0(0x00), this indicates that active write operations are occurring to corrupt the flash memory.🤔 Hypothesis
Based on these observations, my hypothesis is that the CRC-related logic reads the state of the external non-volatile storage (EEPROM) and actively modifies (corrupts) the STM32 flash memory based on those values.
However, there are still some questionable aspects to this mechanism. It is highly unlikely that the firmware's CRC-related logic could execute before the device even attempts to boot.
🚀 Takeaways & Next Steps
If anyone has knowledge about this specific EEPROM interaction or has ideas regarding the payload development, please feel free to share your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions