The project is work well, but if I add two code to get the start time and end time ,the interrupt is not work, Why?
// Like this the Interrupt of Timer is wrok! //Test 1 uint8_t test1[10] = {0}; memcpy(test1,test10,sizeof(test10)); // tulStart = nrfx_timer_capture(&Leo_TIMER2,NRF_TIMER_CC_CHANNEL2); for(i=0;i<160;i++) { error_code |= Leo_nRF52_SDCard_SaveData(test1,sizeof(test1)); } // tulEnd = nrfx_timer_capture(&Leo_TIMER2,NRF_TIMER_CC_CHANNEL2); tulUsed = tulEnd - tulStart; NRF_LOG_INFO("The Writen_10 is OK,Used time is %d!",tulUsed); NRF_LOG_FLUSH(); // But Like this ,the Interrupt of Timer is not wrok! I don't know why? //Test 1 uint8_t test1[10] = {0}; memcpy(test1,test10,sizeof(test10)); tulStart = nrfx_timer_capture(&Leo_TIMER2,NRF_TIMER_CC_CHANNEL2); for(i=0;i<160;i++) { error_code |= Leo_nRF52_SDCard_SaveData(test1,sizeof(test1)); } tulEnd = nrfx_timer_capture(&Leo_TIMER2,NRF_TIMER_CC_CHANNEL2); tulUsed = tulEnd - tulStart; NRF_LOG_INFO("The Writen_10 is OK,Used time is %d!",tulUsed); NRF_LOG_FLUSH();