I get this message when I try to add my struct variable to the watch window.
I'm trying to look at anything in the sample_data struct. I've tried sample_data and sample_data.temp. The watch window doesn't like my struct but the compiler sees no problem.
while(TRUE)
{
// Will change channels in the final product.
set_adc_channel(3);
delay_ms (1);
sample_data.temp = read_adc();
delay_ms (1);
set_adc_channel(3);
delay_ms (1);
sample_data.current = read_adc();
if (sample_data.temp > sample_data.max_temp)
{
sample_data.max_temp = sample_data.temp;
}
if (sample_data.current > sample_data.max_current)
{
sample_data.max_current = sample_data.current;
}
//TODO: User Code
}
}
Aileyus
Joined: 23 Mar 2017 Posts: 27
Posted: Fri Mar 24, 2017 12:19 pm
Never mind. I found it. It turned out to be some hangup between Windows 10 and/or CCS Compiler. I shut down and restarted and I can now use the watch window.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum