We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19b583d commit 7ee2fe5Copy full SHA for 7ee2fe5
ports/rp2/rp2_flash.c
@@ -152,6 +152,10 @@ static uint32_t begin_critical_flash_section(void) {
152
uint8_t *maintenance_ptr = (uint8_t *)XIP_MAINTENANCE_BASE;
153
for (int i = 1; i < 16 * 1024; i += 8) {
154
maintenance_ptr[i] = 0;
155
+
156
+ // Must also invalidate the cache lines to prevent rare hangs
157
+ // See: https://forums.raspberrypi.com/viewtopic.php?t=378249)
158
+ maintenance_ptr[i - 1] = 0;
159
}
160
#endif
161
0 commit comments