Hi,
Im migrating from SDK8 to SDK12
app_timer crashes
Debugging at app_error.c shows m_error_data to be :
softdevice, pc 0x000104AE, fault ID 0x00000001 error_info 0x0000000
I have 4 other timers existing, this specific timer 'start' command crashes the softdevice
removing other timers does not solve this problem
edit : after further debugging I have come to the conclusion that the problem is using PWM2 - Timer2 . that is APP_PWM_INSTANCE(PWM2, 2);
it fails after it tries to set a duty cycle or tick > 0
I am using 2 timers for three PWM channels
PWM1 based on Timer1 supports two PWM Channels which don't exhibit the problem
PWM2 based on Timer2 support one PWM channel and it if I keep the duty cycle / tick count to 0 I don't experience this issue
edit :
it was an sdk_config.h problem, timer2 was not enabled.
------------------ old comments
this is my syntax
APP_TIMER_DEF(m_leds_timer_id);
app_timer_create(&m_leds_timer_id, APP_TIMER_MODE_REPEATED, led_effect_timeout_handler);
app_timer_start(m_leds_timer_id, interval, NULL);
would appreciate help,
especially understanding the pc 0x000104AE
Thanks in advance