STM32H743 – DAC with DMA – more memory needed to store DAC tones
hello ST,
my question is about the use of DAC with DMA on the STM32H743. I need to be able to store more tunes/tones into memory.
The working code is based on an ST sample code, DAC_Ch1_EscalatorConfig(), albeit with many more samples used:
HAL_DAC_Start_DMA(&DacHandle, DAC_CHANNEL_1, (uint32_t *)dingdong_samples, dingdong_samples_num, DAC_ALIGN_8B_R)
In this case dingdong_samples_num is 250,068 bytes.
I believe the associated ‘dingdong_samples’ are stored in the ‘data’ area of AXISRAM, and the compiler is showing 357.6kB of 512kB used in this data space with the total amount of AXISRAM then near the limit at 503.5kB.
With the ‘dingdong’ tune commented-out this data space usage in AXISRAM reduces to 113.4kB of 512kB - so 244.2kB less, and I would’ve expected 250.068kB less ? The usage of other sections of AXISRAM remain the same.
I need to fit more tones/tunes into memory, and was wondering how this could be achieved ? For example can another memory space, instead of AXISRAM, be used and if so how ? Are there any other options apart from shortening the number of tone data bytes, please ?
