This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PWM Modul crash after start advertising.

Hi all,

i have a problem with my pwm modul, if i use my setPWM Function before i start advertising it works fine. But if if i use PWM after starting advertising it doesn't work anymore. I use Timer 2 ang gpiote chanel 0 and 1. What could be a reason for crashing my pwm modul?

Best regards Nils :)

Parents
  • Hi does no one have an idea what a reason for a crash could be? My Problem is, if i press my off button (doesn't matter if i use app_button or using gpiote) a timer is started. If the timer is finished it calls the button timeout handler which is a "System_off Function" And if i call In the Function a function which turn on the PWM (like set_pwm (128)) or if i use my wait function (using app_timer to wait some milliseconds) th processor crashes and doesn#t reset the System like i need.

    What reason could it have the this happens?

    best regards Nils Minor

Reply
  • Hi does no one have an idea what a reason for a crash could be? My Problem is, if i press my off button (doesn't matter if i use app_button or using gpiote) a timer is started. If the timer is finished it calls the button timeout handler which is a "System_off Function" And if i call In the Function a function which turn on the PWM (like set_pwm (128)) or if i use my wait function (using app_timer to wait some milliseconds) th processor crashes and doesn#t reset the System like i need.

    What reason could it have the this happens?

    best regards Nils Minor

Children
No Data
Related