Skip to main content
Hoang_Tran
Associate III
April 27, 2019
Solved

error when changing the UART parameter

  • April 27, 2019
  • 1 reply
  • 759 views

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

This topic has been closed for replies.
Best answer by Tesla DeLorean

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?

1 reply

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
April 27, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..
Hoang_Tran
Associate III
May 2, 2019

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)