Professional Documents
Culture Documents
Custom Signal Generation Using PWM and DMA V1 PDF
Custom Signal Generation Using PWM and DMA V1 PDF
Custom Signal Generation Using PWM and DMA V1 PDF
Nicolas FILLON
Objective
STM32CubeIDE
Custom Signal generation using PWM and DMA
• Select Cortex-M7
• Select PWM Generation CH1 for
Channel 1
Select Cortex-M7 & Configure TIM4
DMA Configuration
STM32CubeIDE final pin configuration
Channel 1
Sine data array
• Flush D cache
Start function to transfer data from RAM to timer
Placement of all memory in D1 domain – Other IDE
• https://community.st.com/s/article/FAQ-DMA-is-not-working-on-STM32H7-devices
Placement of all memory in D1 domain – IAR IDE setup
Result (Oscilloscope output)
• AN4013: https://www.st.com/resource/en/application_note/dm00042534-stm32-
crossseries-timer-overview-stmicroelectronics.pdf
• STM32H745 reference
manual: https://www.st.com/resource/en/reference_manual/dm00176879-
stm32h745755-and-stm32h747757-advanced-armbased-32bit-mcus-
stmicroelectronics.pdf
• STM32H745 datasheet: https://www.st.com/resource/en/datasheet/stm32h745zg.pdf
• Memory domain configuration: https://community.st.com/s/article/FAQ-DMA-is-not-
working-on-STM32H7-devices
Thank you