Skip to content

Commit

Permalink
stm32f4: Enable non-halting SRAM access for RTT on STM32F4 series
Browse files Browse the repository at this point in the history
  • Loading branch information
ALTracer committed Jan 19, 2025
1 parent 72b23f8 commit ff59986
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/target/stm32f4.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@ static bool stm32f4_attach(target_s *const target)
}
}

/* On STM32F4 SoC, Cortex-M4F allows SRAM access without halting */
if (!is_f7 && target->part_id != ID_STM32F20X)
target->target_options |= TOPT_NON_HALTING_MEM_IO;

/* Now we have a base RAM map, rebuild the Flash map */
uint8_t split = 0;
uint32_t bank_length;
Expand Down Expand Up @@ -498,6 +502,7 @@ static bool stm32f4_attach(target_s *const target)
stm32f4_add_flash(target, bank2_base + 0x20000U, remaining_bank_length, 0x20000, 21, split);
}
}

return true;
}

Expand Down

0 comments on commit ff59986

Please sign in to comment.