cancel
Showing results for 
Search instead for 
Did you mean: 

error when changing the UART parameter

Hoang_Tran
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions

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?

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

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?

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..

0690X000008BA1xQAG.pnghi!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)