Problem with UART transmission
Hi everyone,
Do you think there is any reason why a set of instructions (20 lines max.), including UART transmission, works fine within the while(1) block but it doesn't work if that exact set of instruction is in a function, within the same while(1) block? In practice it seems to transmit correctly unless the instructions are in a separate function. I am running out of ideas.
If necessary, I will be happy to provide more details.
Thank you!
Edit: when I say that I doesn't transmit correctly, I mean that only 2 out of 6 packets are sent. When the instructions are not in the function and directly in the while block all the packets are send correctly.