Sample code not available for selected part

Hello Team,

We are currently working with the nRF54L05 and using the nRF Connect SDK. We have successfully evaluated basic BLE peripheral samples on the EVK.

For our application, we require sample implementations of the ADC and Timer. However, we found that the existing samples are not compatible with the nRF54L05.

Could you please guide us on how to use the Timer and ADC with this platform?

Thank you.

Parents
  • You do not seem to be enabling the interrupts for your callback to be called. Try to enable it and see if that works.

    void init_timer(void)
    {
        printk("tmr_init\r\n");
    
        nrfx_timer_config_t config = NRFX_TIMER_DEFAULT_CONFIG(NRF_TIMER_FREQ_1MHz);
    
        status = nrfx_timer_init(&timer_instance, &config, timer_handler);
        NRFX_ASSERT(status == NRFX_SUCCESS);
    
        nrfx_timer_clear(&timer_instance);
    
        uint32_t timer_ticks = nrfx_timer_ms_to_ticks(&timer_instance, TIME_TO_WAIT_MS);
        printk("ticks: %u\r\n", timer_ticks);  // Minimal debug print
    
        nrfx_timer_extended_compare(&timer_instance, NRF_TIMER_CC_CHANNEL0, timer_ticks,
                                    NRF_TIMER_SHORT_COMPARE0_CLEAR_MASK, false);
    
        nrfx_timer_int_enable(&timer_instance, NRF_TIMER_INT_COMPARE0_MASK);
        nrfx_timer_enable(&timer_instance);
    }

Reply
  • You do not seem to be enabling the interrupts for your callback to be called. Try to enable it and see if that works.

    void init_timer(void)
    {
        printk("tmr_init\r\n");
    
        nrfx_timer_config_t config = NRFX_TIMER_DEFAULT_CONFIG(NRF_TIMER_FREQ_1MHz);
    
        status = nrfx_timer_init(&timer_instance, &config, timer_handler);
        NRFX_ASSERT(status == NRFX_SUCCESS);
    
        nrfx_timer_clear(&timer_instance);
    
        uint32_t timer_ticks = nrfx_timer_ms_to_ticks(&timer_instance, TIME_TO_WAIT_MS);
        printk("ticks: %u\r\n", timer_ticks);  // Minimal debug print
    
        nrfx_timer_extended_compare(&timer_instance, NRF_TIMER_CC_CHANNEL0, timer_ticks,
                                    NRF_TIMER_SHORT_COMPARE0_CLEAR_MASK, false);
    
        nrfx_timer_int_enable(&timer_instance, NRF_TIMER_INT_COMPARE0_MASK);
        nrfx_timer_enable(&timer_instance);
    }

Children
No Data
Related