My application on top of the Bluetooth part is requiring operations running for a couple of seconds. Currenty I use YAKINDU to generate a statemachine code for me and I “trigger” the statemachine from a timer callback every 10ms.
This works as expected unless I start a function that runs for a coule of seconds (e.g. it shows information on an attached LED display). The long running function uses a lot of Sys_Delay_ProgramROM functions to achieve the desired timing. If this function runs for about 2…3 seconds, the RSL10 resets.
I already tried to insert Sys_Watchdog_Refresh calls so the watchdog does not expired. But still the same effect.
I get the impression, that this long running function crashes something in the main APP task. Is it necessary to add another task for my purposes? If so, are their examples of a simple additional task?