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 bd5ba08 commit 1004894Copy full SHA for 1004894
ports/rp2/rp2_flash.c
@@ -142,6 +142,10 @@ static uint32_t begin_critical_flash_section(void) {
142
uint8_t *maintenance_ptr = (uint8_t *)XIP_MAINTENANCE_BASE;
143
for (int i = 1; i < 16 * 1024; i += 8) {
144
maintenance_ptr[i] = 0;
145
+
146
+ // Must also invalidate the cache lines to prevent rare hangs
147
+ // See: https://forums.raspberrypi.com/viewtopic.php?t=378249)
148
+ maintenance_ptr[i - 1] = 0;
149
}
150
#endif
151
0 commit comments