Trying to figure out why my timer only ticks once
Greetings,
Relatively new to the platform, I’m trying to write a simple ‘blinkenlight’ test on an iM880A LoRa development board, which uses a STM32 chip.
I’m trying to do this using a Timer implementation, but for some reason, the timer only ticks once.
See also the attached cpp file.
I know that send_message is called once, because the led lights up after programming.
Removing ‘GpioWrite(&sensing_flag, flagState);’ on line 110 has the effect that the led does not light up.
Starting the code with ‘int flagState = 1;’ on line 21, causes it to set it to 0 and the led still does not light up. I know the chip is doing something, because adding a simple counter in the main loop that counts to 100000 and updating the state causes the led to actually blink.
Any insights in the situation are cheerfully appreciated.