Hi I am using the RBC mesh "github.com/.../nRF51-ble-bcast-mesh", sd_110_7.1 and sdk_6.2
The rbc mesh is using timer0 as well as the softdevice. I removed the app timers from my project so it compiles and works but there is a problem.
It craches after some time due to timer0 beeing protected by the MPU and write reqests beeing sent from the rbc mesh to timer0 peripheral which results in hardfaults.
What can I do to fix this? Also problem occures when writing to PPI but this can be fixed by running ppi accesses through the sd_ppi api.
For example my code halts here (timer_control.c):
void timer_abort(uint8_t timer_index){
if (timer_index < 4)
{
[HERE] NRF_TIMER0->INTENCLR = (1 << (TIMER_INTENCLR_COMPARE0_Pos + timer_index));
active_callbacks &= ~(1 << timer_index);
NRF_PPI->CHENCLR = (1 << (TIMER_PPI_CH_START + timer_index));
never_used_bitmap |= (1 << timer_index);
}}
And NRF_MPU->PERR0= 0xc300f903