Skip to content

Commit

Permalink
Add longish wait in payload (fixes newer intel buffered designs)
Browse files Browse the repository at this point in the history
  • Loading branch information
metroid-maniac committed Apr 16, 2023
1 parent cac925f commit a3b17ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions payload.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,11 @@ __attribute__((target("arm"))) void flush_sram_ram(unsigned sa, unsigned save_si
}

identified:
// wait 1 or 2 frames
while (*(volatile unsigned short*) 0x04000006)
{}
while (*(volatile unsigned short*) 0x04000006)
{}

if (flash_type == 0) return;

Expand Down

0 comments on commit a3b17ec

Please sign in to comment.