2019-04-26 09:31 PM
error description:
I wrote a function to change the UART parameter! After using this function, the UART parameter worked as installed but when the data was sent, the UART interrupt function changed a global variable of I am back to 0!
Everyone can see more in the video link: https://drive.google.com/file/d/1rr3l6uq9uWrCteFjBGVlcXUlvGNMlUly/view? usp = sharing
Solved! Go to Solution.
2019-04-26 11:35 PM
Liking you own post seems a bit unnecessary.
How large is the stack? Does the problem change if you define your local/auto variables as static?
2019-04-26 11:35 PM
Liking you own post seems a bit unnecessary.
How large is the stack? Does the problem change if you define your local/auto variables as static?
2019-05-02 01:02 AM
hi!the stack size is 128byte!I used debug for printf address of variable!the address of tmp( variable in interrupt UART function) include address of MB_COIL(global Variable)