While(1) Not Executing
I am using STM32 with the following peripherals:
- TIM7 for frequency generation
- ADC with DMA
- DAC with DMA
- TIM Interrupt (TIM_IT)
My setup:
- Clock: 150 MHz
- Prescaler (PSC:( 3-1
- Auto-reload register (ARR:( 13-1
- 128 samples for DAC to generate a 30 kHz signal
When using these settings, the ADC half-complete and complete callbacks are triggered correctly, meaning ADC DMA is working. However, nothing seems to happen in the while(1) loop in main().
What do you think could be causing this?
Could it be related to TIM7 interrupt priority, DMA behavior, or CPU being blocked?
Is the DMA transfer taking over completely, preventing execution in while(1)?
Any insights or suggestions would be greatly appreciated!
