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 1585553 commit 7d3b7d6Copy full SHA for 7d3b7d6
ports/rp2/rp2_flash.c
@@ -132,6 +132,10 @@ static uint32_t begin_critical_flash_section(void) {
132
uint8_t *maintenance_ptr = (uint8_t *)XIP_MAINTENANCE_BASE;
133
for (int i = 1; i < 16 * 1024; i += 8) {
134
maintenance_ptr[i] = 0;
135
+
136
+ // Must also invalidate the cache lines to prevent rare hangs
137
+ // See: https://forums.raspberrypi.com/viewtopic.php?t=378249)
138
+ maintenance_ptr[i - 1] = 0;
139
}
140
#endif
141
0 commit comments