Page 1 of 1

"Target Not Available" error for "Expressions" variable in Truestudio

Posted: Sat Jun 15, 2019 2:14 pm
by srihari
Hello!

I created a CMSIS C project for running a UART based example which first should display a welcome message in serial emulator(I use Tera Term in windows 10) and should ask for an integer(stored in a variable "opt") and accordingly should display an integer back. I compiled the program and it showed no errors and warnings.

I initially used ST-Link as the debugger for debugging in Truestudio(v 9). I wanted to monitor the value of the variable "opt", so I added it in "expressions" and ran the code. Rather than displaying welcome message, it showed garbage characters and for step 2, I gave values in the emulator. After pausing watch expression I could not see the resultant integer for the value I entered(and Teraterm is not accepting any integer, the screen does not show anything as typed) and rather displayed "Target not Available". I attach the "photo 1" of Truestudio and Teraterm, when running and "photo 2" when I paused the programs to check watch values.

I checked the baud rate, no of data bits and other stuff, all were properly matched.

Please help me how to solve this problem.