mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2025-01-04 22:29:30 +00:00
Firware: Fix a race condition when single stepping at slow (<= 1MHz) clock rates
Change-Id: Iee127a2765559d46f25c7fa1b2ad50cccba6cb9d
This commit is contained in:
parent
ac69ecdc21
commit
46d859f68c
@ -1053,6 +1053,9 @@ uint8_t logDetails() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void logAddr() {
|
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);
|
memAddr = hwRead16(OFFSET_IAL);
|
||||||
// Update the serial console
|
// Update the serial console
|
||||||
logCycleCount(OFFSET_CNTL, OFFSET_CNTH);
|
logCycleCount(OFFSET_CNTL, OFFSET_CNTH);
|
||||||
|
Loading…
Reference in New Issue
Block a user