Sir,
I have activated two repeated timer one every 250ms to monitor ticks and another every 1s to read data through uart from another MCU. I have setup the timer separate from RTOS scheduler. I am using qpps profile to read some data from another MCU and notify on characteristics of qpps. I have tried to achieve the same with rtos timers but it generate hardfault after few seconds. The tick timer generating interrupt every 250ms is also increasing CPU overhead. So, please mention if i can access systick timer value through RTOS. I will try to minimize the size of buffer and global variables if it is a problem of memory. Please suggest me to minimize the memory usage and capabilities of the Module.
I have added this code in system.c
//NVIC_SetPriority(UART1_RX_IRQn, 4);
uart_init(QN_UART1, USARTx_CLK(0), UART_57600, 0);
uart_tx_enable(QN_UART1, MASK_ENABLE);
uart_rx_enable(QN_UART1, MASK_ENABLE);
NVIC_SetPriority(TIMER0_IRQn, 2);
timer_init(QN_TIMER0, invoke_rtos_timer);
timer_config(QN_TIMER0, TIMER_PSCAL_DIV, TIMER_COUNT_MS(1500, TIMER_PSCAL_DIV));
timer_enable(QN_TIMER0, MASK_ENABLE);
//ke_timer_set(APP_BMS_DATA_CALLBACK, TASK_APP, 100);
//ke_timer_set(APP_SYS_BUTTON_1_TIMER, TASK_APP, 2);
timer_init(QN_TIMER2, app_tick_callback_handler);
timer_config(QN_TIMER2, 10, TIMER_COUNT_MS(100, 10));
timer_enable(QN_TIMER2, MASK_ENABLE);
and Corresponding handler in user_design.c
TIMER2 increments a 32bit global unsigned int
TIMER0 is reading data from MCU and notifying on Chs
This is all i have added
Thank You