2025-10-28 11:07 PM
Hello
I'm using a NUCLEO-N657X0-Q board and trying to bring up ethernet in RMII mode using STM32CubeIDE.
When I run the application in the non-secure project, the Ethernet DMA bit (in ETH_DMASR) does not clear after transmission.
The same configuration works correctly when running in Secure mode.
In which context should Ethernet initialization (MX_ETH_Init()) be performed — FSBL, Secure, or Non-secure?
Should the ETH clocks and DMA be configured in the Secure project, with only application-level operations done in non-secure?
Any guidance or official examples on the proper initialization flow and DMA handling for Ethernet on STM32N6 would be greatly appreciated.
I have attached my CubeMX .ioc file (for both Secure and Non-secure projects) and a snippet of my memory configuration for reference and analysis.
Is there an example project or reference demonstrating Ethernet initialization (LAN8742, RMII) on STM32N6 with Trust Zone enabled?
Any known causes for the DMA bit not clearing when the application runs in non-secure mode?
Best regards,
Rajasekhar