2019-11-27 02:14 PM
Hi All,
I've been running into an issue when trying to activate and run the DFSDM peripheral for the M4 Core to sample a single digital Mic:
System clock (208.87793 MHz)
Divider 104 for DFSDM Clk -> ~2 MHz
Fosr: 125 samples -> Sampling frec of ~16 kHz
Channel 5 being used for regular conversions on Filter 0, set in Continuous Mode and Software Trigger
2019-11-28 12:05 AM
Hello,
depend on the way you debug your system.
If you use 'Production mode' (i.e. Linux started from Flash, M4 code loaded thru SSH), then most of the high-level RCC settings (HSE, PLL1/2, etc..) are protected and only under TF-A/uBoot/Linux Device Tree control. This is the nominal mode to be used in your final product.
If you use 'Engineering mode' (i.e. BOOT[2:0] = 0b100, Linux is not started, M4 code loaded thru JTAG/SWD), then the RCC is 'open' for M4 access and you got full control of clock seetings. Notice that this is only during development phase and all related code should be conditionned at compilation time or run time using "if(IS_ENGINEERING_BOOT_MODE())"
Please have a look on STM32CubeMP1 examples which work in both debug environments.
2019-11-28 01:06 AM
Hi @Vicente Inostroza
Above information given by @PatrickF and more are details here :
https://wiki.st.com/stm32mpu/wiki/STM32CubeMP1_development_guidelines
Hope it help
Olivier