NMI error with STM32H563VGT MCU
Hi everyone!
I’m facing random NMI errors in my project using the STM32H563 MCU, and I’m trying to identify the root cause.
System Overview
- My project uses Ethernet (ETH) with NETx Duo and Thread X with static configuration.
- No RAMCFG (SRAMx, BKPSRAM) is used, and FLASH is not enabled in CubeMX.
- I am not using HSE, but HSI instead, as I previously suspected an HSE-related issue.
- Not using I-CHACHE/ D-CACHE (although I know it is highly recommended for the ETH).
- Not usign MPU
I am by no means an expert in NMI errors, so I want to ensure I am not overlooking other possible causes.
These errors may occur due to custom memory partitioning?
MEMORY
{
/* RAM ( xrw) : ORIGIN = 0x20000000 , LENGTH = 640K */
RAM1 ( xrw) : ORIGIN = 0x20000000 , LENGTH = 100K
RAM_APP ( xrw) : ORIGIN = 0x20019000 , LENGTH = 210K
RAM_NEXDUO ( xrw) : ORIGIN = 0x2004D800 , LENGTH = 330K
FLASH ( rx ) : ORIGIN = 0x08000000, LENGTH = 946K
COLORS ( rx ) : ORIGIN = 0x080EC800, LENGTH = 70K
ROOT_CA ( rx ) : ORIGIN = 0x080FE000, LENGTH = 4K
DEV_CERT ( rx ) : ORIGIN = 0x080FF000, LENGTH = 4K
}
How can I debug the exact source of the NMI?
I’d really appreciate any insights, suggestions, or debugging strategies to help pinpoint the issue. Thanks in advance for your help!
I will provide any feedback or relevant information!
