Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

Code in literal strings not updating? Ch. 10 example in Synergy book

$
0
0

After working through and successfully getting the USB/RTOS example in the Synergy book (chapter 10), I decided to test a few things for my understanding.  Where I have ended up: the literal text strings in the code are not updating when I change them and recompile.  I'm sure this is easy but I'm not seeing it.

The code snippet in led_thread_entry.cis:

while (1)
{
g_ioport.p_api->pinWrite(Leds.p_leds[BSP_LED_LED1],led_level);if (led_level == IOPORT_LEVEL_HIGH)
{
strcpy(send_str, "LED off\n\r");
led_level = IOPORT_LEVEL_LOW;
}
else
{
strcpy(send_str, "LED on\n\r");
led_level = IOPORT_LEVEL_HIGH;
}

...
}

So if I change the literal "LED" to anything else ("XYZ") and then rebuild and rerun, the text strings arrive in Tera term still appear as "LED".

Things I've tried, individually and together, that didn't make my changes appear after substituting "XYZ":
-(re-)build

-(re-)Generate project content

-Build all

-Clean (project)

-Searched for this code throughout workspace (not found) 

-Purposely corrupted the code to ensure that error was found in this code during rebuild (so I knew this code was being compiled; it was)

I'm guessing that there is a file that needs to be manually deleted (led_thread_entry.o?) but would appreciate any suggestions before I start such activities.


Viewing all articles
Browse latest Browse all 5781

Trending Articles