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

create timer hardfault

Hi, I'm porting my project from SDK8.1 to SDK10 and got a problem in app_timer.c

Main chip :nRF51822 QFACA1

Crystal:32Mhz, no 32.768

  1. Initial is fine. APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, NULL);

    APP_TIMER_PRESCALER = 0; APP_TIMER_OP_QUEUE_SIZE = 19;

  2. When enter to err_code = app_timer_create(&a4wp_sm_ptu_start_timer_id, APP_TIMER_MODE_SINGLE_SHOT, m_a4wp_ptu_start_timer_handler);

    I step run into app_timer_create , when i run "p_node->is_running = false;" It jump to "void HardFault_Handler()"

  3. app_timer_id_t a4wp_sm_ptu_start_timer_id; will this be a problem?

Is there anything I should modify in my code?

Related