Firware: Fix a race condition when single stepping at slow (<= 1MHz) clock rates

Change-Id: Iee127a2765559d46f25c7fa1b2ad50cccba6cb9d
This commit is contained in:
David Banks 2020-05-17 09:55:56 +01:00
parent ac69ecdc21
commit 46d859f68c

View File

@ -1053,6 +1053,9 @@ uint8_t logDetails() {
}
void logAddr() {
// Delay works around a race condition with slow CPUs
// (really the STEP and RESET commands should be synchronous)
Delay_us(100);
memAddr = hwRead16(OFFSET_IAL);
// Update the serial console
logCycleCount(OFFSET_CNTL, OFFSET_CNTH);