Can I put read/write variables in DTCM, when DCache enabled?
If DCache is enabled how then can I update a variable (I think DMA + MDMA) and after processing get results to a peripheral e.g. DAC (again MDMA?)?
Do I need to clear cache?
Will I still have the speed advantage of caching?
I am struggling how to get data into and out of DTCM when DCache is enabled.
For data into DTCM it is my experience data is not updated and for data out of DTCM there is no updated data to export ( because of caching?)
I get data from my ADC via HAL_ADC_Start_DMA and have to start HAL_MDMA_Start_IT on every conversion completed. That seems to work. Is it the best way to go about it?
When I want to get data out of DTCM I use SCB_CleanInvalidateDCache_by_Addr and then update the DAC buffer. That seems to work but I do not trust the validity of the data.
Can anyone point me in the right direction?
