Making ADC with DMA working with µSD card (SDMMC1 + FATFS) on NUCLEO-H743ZI2
Hello,
I am working on a project in which I have to write data from my adc into a µSD card using SDMMC1 peripheral.
In my testing program to see the ADC1 behaviour with the DMA all work. My buffer stores the datas from my ADC using DMA and the callaback functions are used (HAL_ADC_ConvHalfCpltCallback() and HAL_ADC_ConvCpltCallback()).
In another testing program for SD card (using SDMMC1 and FATFS ) all work too. I can write textfiles on my sd card correctly.
However problems come when I want to write data from my ADC's buffer on the SD card. My callbacks fonction are never used in my program (the peripherals are configured like in my testing programs which work).
I saw on this post that ADC and DMA work correctly on D2 memory domain (https://community.st.com/s/question/0D50X00009XkXEH/stm32h7stm32h743-adc-with-dma?t=1596012726292), but SDMMC1 peripheral works in D1 domain and it can't access to D2 and D3 domain (it is in STM32H7 datasheet figure 4). The problem can be here but I don't know how to solve it.
I am using STM32CUBEIDE and STM32CUBEMX
Do you have an idea on the way to solve this matter ? You will find my project attached
Thanks for your help.
Mathieu
