The Variables view has real problems with displaying function values. As the screen shot shows, setting int dx also changed int newX. This becomes even more problematic with floats and doubles. I can see the code changes register usage, and thus the variables assigned to those registers change, but this makes the debugger almost useless for my students. Any thoughts??
In reply to Paul Roper:
what code generation tool version is your project using? I took that screen shot right from the same CCS version. I did nothing special at all.
In reply to Lisa TI:
I'm also sending you screen shots from v5.1. Just a quick history, I'm frankly not sure of my configuration, but I've tried this on several machines. We down loads from the TI website v51. and installed it on all our lab machines. After installation on my machine, I discovered that I could not compile my demo program because of RAM errors. (It complies and runs just fine under v4.0.) I was instructed by TI to try earlier compiler tools.
So, I installed v5 again from my CCS IDE UNIVERSITY CD w/Floating Site License. It seems like I can't go back or forward. You obviously have something different from me - I just don't have an advanced optimization menu. Shouldn't there be something somewhere??
I've taken my demo code and really isolated the problem to a small amount of code. Here it is:
#define PI 3.1415926
void draw_line(int x0, int y0, int x1, int y1)
lcd_point(abs(x0), x0, 1);
} // end lcd_draw_line
for (i = 0; i < PI*2;i += PI/16)
int x = cos(i) * 45;
int y = sin(i) * 45;
draw_line(80, 50, 80 + x, 50 + y);
typedef char int8;
typedef int int16;
typedef unsigned char uint8;
typedef unsigned int uint16;
uint8 lcd_point(int16 x, int16 y, uint8 flag);
uint8 lcd_point(int16 x, int16 y, uint8 flag)
return 0; // return success
} // end lcd_point
Here is what I get:
odd. I took that capture directly from an installation of 5.1.09 .. the version you posted you were using. I simply created a new CCS Project and opened a basic MSP blink the LED example. I think went into project properties and I always get the advanced.
I am using code generation tools version 4.0.0 which seems to have come with 5.1.09.
As mentioned I have filed this and found it to be at least partially related to the optimization.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.