code stuck at the end of setup in Energia

Hi,

I am wondering why when I make the debug using CCS, the code at the end of the setup opens a new window with following code and stuck there, I do not have any serial function, I tried to send the data to the serial monitor but it fails so I created a new project without any serial monitor statements/function.

#include <Energia.h>

int main(void)
{
init();

setup();

for (;:wink: {
loop();
if (serialEventRun) serialEventRun();
}

return 0;
}

Any help would be appreciated.

Thanks

what do you think

   for(;;)

does?

That’s an endless loop calling loop(). I know you know that :wink: It’s the normal Arduino main() With different includes.

OP, what is CCS?