mirror of
https://github.com/micropython/micropython.git
synced 2025-07-21 13:01:10 +02:00
stm32/main: Disable D-cache when debugging N6.
See ST Errata ES0620 - Rev 0.2 section 2.1.2. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
committed by
Damien George
parent
eb3ea9ee13
commit
eaed2518fa
@@ -374,7 +374,11 @@ void stm32_main(uint32_t reset_mode) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
SCB_EnableICache();
|
SCB_EnableICache();
|
||||||
|
#if defined(STM32N6) && !defined(NDEBUG)
|
||||||
|
// Don't enable D-cache on N6 when debugging; see ST Errata ES0620 - Rev 0.2 section 2.1.2.
|
||||||
|
#else
|
||||||
SCB_EnableDCache();
|
SCB_EnableDCache();
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif defined(STM32H5)
|
#elif defined(STM32H5)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user