cancel
Showing results for 
Search instead for 
Did you mean: 

PWM Output weird behaviour when using with P2P_BLE_server

PBOIS.1
Associate

Hi,

I start a project with a custom board with STM32WB55 MCU on it.

I wrote a simple code to work with PWM output at 100kHz on the channel 4 of TIM1 with 50% duty cycle. When I check the signal on the pin A11 all is ok.

Then I start à new project from BLE_p2pServer_ota example project and I merge my previous code. And I have a weird behaviour on my signal.

It looks like the right pwm signal for about 3 to 5 cycles then it stuck at "0" or "1" for some µs then my signal goes pwm again then stuck and so on.

I think there is some mecanism that goes to sleep sometimes causing the pwm to stop and resume but I didn't find where I can tune this up.

BLE p2p containt a huge amount of code, could someone help me targeting where the problem may come?

Thanks

0 REPLIES 0