Problem with system timer service
I'm new to this forum. I am using MPLAB X IDE v3.51, Harmony Configurator and PIC32 Ethernet Starter Kit with PIC32MX795F512L. I wrote a program that implements the MODBUS protocol to polling the device at the set time interval. I have used the static timers driver so far, but due to the target application that is the web server I changed the timers used on one timer2 and I started to use the system timer service. With the callback function, I have different processes that start with different periods. The problem, however, starts when I enable the sending of a specific MODBUS frame using USART (by using callback function). The entire program always stops in the same place, during debuggingit it is in the program code of sys_tmr.c on line 896 "if (alarmCount <pTmrObj-> sysTickCount)", generating an exception with code = 7 ("Data bus error"). Does anyone have any idea what I should get started with because I have already finished all my ideas to fix this.