This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

When call the app_timer_start(),return error_code = 0x08,NRF_ERROR_INVALID_STATE?

At the start of programm, I create a timer_id used the follow code: app_timer_create(&m_sec_req_timer_id,APP_TIMER_MODE_SINGLE_SHOT,sec_req_timeout_handler);

when the device peered the iphone(ancs),send the QQ message to the iphone,the device could respond,then disconnected the device, after a time,connect the device,the device would call the function app_timer_start(m_sec_req_timer_id,SECURITY_REQUEST_DELAY,NULL),it will generate the error_code = 0x0000008.

So I trace this error_code,it stopped at the line about 1095 in file app_timer.c,it displayed mp_nodes[timer_id].state = STATE_FREE. I have created the timer_id at the start of programm,why it displayed STATE_FREE. How to solve this problem?Thank you.

image description image description

Parents Reply Children
No Data
Related