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

Problem with software, need help

Hi,

i have some troubles with my software which i doesn't understand maybe some one with more microcontroller Experience cann tell me how to solve this Problem.

I have a method which waits for a Time, its like the nrf_delay but instead of this i use my own method wait_ms (TimeToWait). If i use this method in the main loop it works fine, it waits for the "TimeToWait" and then the programm is going on. But if i use this method int an timertimeout-method like my systemOff( )- method it doesn't work and i don#t understand why.

The same is if i use a method to run pwm on one pin. If i use this method in the main loop, the pwm method works but if i use it in an timeouthandler or in the SystemOff () method it does not work.

And i don't know what a reason for this could be, it would bee great if some one have an idea beacouse its a realy silly problem but it hang up the hole microcontroller.

Thanks and best regards Nils :)

Related