hi,i want to control a led driver by frequency send iic data, i need send 600 bytles once at least 10ms each time ,and the 600 bytles send by 3times.send the 600 bytles need 24ms.i create a 10ms once timer,and in the end of the timer handler start the timer again.but now i find after run few mins the seeger will report the error:
00> <error> app: ERROR 4 [NRF_ERROR_NO_MEM] at ..\..\..\..\..\..\components\libraries\timer\app_timer2.c:181
and the chip cant work before reset.
at frist i guess the reson is the time of execute the 10ms timer handler is so long(24ms) that reslut in the scheduler problem.but when try to replace the iic send api to nrf_delay_ms( 24); the problem will not occur.so it is obvious that the reson is the iic send action.
this is my code
disp_frame_data() in the disp_scan() is my iic send api
when i comment the code
and replace by the code
the problem will not occur.
so i dont konw if the twi cant send data frequency ? and what should i do to slove this problem?