As per this thread: devzone.nordicsemi.com/.../question-regarding-hfclk-control the SD stack takes care of HFCLK, however as fas as I understand HFCLK is also responsible for timers - now, when SD stack is in use/enabled and it takes care for managing the HFCLK - e.g. shutting it down, etc - then what is the safe way to set-up TIMER2 interrupts?
Every time I try to initialize timer2 interrupt my code hangs on either NRF_CLOCK->TASKS_HFCLKSTART = 1; // start external 16HMz crystal oscillator
or
NRF_TIMER2->INTENSET = (TIMER_INTENSET_COMPARE0_Enabled << TIMER_INTENSET_COMPARE0_Pos);
depending whether I do want to explicitly run the HFCLKSTART or not.
can someone shed some light on this topic please?!
THanks, Marcel