I am developing an ultrasonic flow sensor and modulated the software.
Because I only want the information of the current flow values, I deleted the statemachine and the button-handling in the code. Only the function lcd_statemachine_displayFlowRate() remains. I set it in HMI_PostAlgorithm_Update after the heartbeat toggle.
My program works but when I disconnect the chip from the power source and reconnect it, the display stays empty. Only the lights start to shine. I debuged the program and found out that in this case, the process hangs in an interrupt: commonTimerWaitEvent in ussSwLibCommonTimer.c
When I comment (or delete) the while-loop in commonTimerWaitEvent the program runs in various functions but my display stays empty.
I always have to reflash the code that the display shows the flowrate.
Do you have an Idea how to fix this?
Best regards,
Kathrin