2024-02-05 06:03 AM - edited 2024-02-05 06:36 AM
Hello,
I keep getting an NMI fault when I attempt to read a variable with gdb (either with a mouseover on a variable in STM32CubeIDE or the print [var] command in gdb). I'm not seeing anything useful when I view the microprocessor registers after the fault.
I'm using the stm32g474 hal library along with a linker, startup file, and interrupt _it files that are normally generated by default with the STM32CubeMX software for a G474 nucleo board. However, I'm using cmake 2.47.6 and the arm gcc/g++ toolchain 11.2-2022.02 for the build process.
Thank you
Solved! Go to Solution.
2024-02-05 06:16 AM
Hello,
According the the user manual, there are three sources to generate an NMI:
I suspect the 3rd choice: Parity check
So check the user option byte SRAM_PE value in option bytes menu in STM32CubeProgrammer.
2024-02-05 06:16 AM
Hello,
According the the user manual, there are three sources to generate an NMI:
I suspect the 3rd choice: Parity check
So check the user option byte SRAM_PE value in option bytes menu in STM32CubeProgrammer.