This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC2640R2F: Variable not initialized

Part Number: CC2640R2F


Tool/software: Code Composer Studio

I'm doing a simple test because I need the ability to convert string data into numbers.
I am debugging using CCS
Even though I have initialized an int variable to 0, it contains strange values.
Also, I'm adding the result of atoi but it doesn't added and the ret value is decremented 10-> 9-> 8 ... every time the goes through the for statement.
source code is so simple. I don't know why I'm wrong or why.

And I added to watch to see the value of "i" for statement, but it says "identifier not found: i" and i value is not shown. Why is that?