cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ Creator & Designer

Anonymous
Not applicable

My project works fine in debug mode, except when i do a mdoify on the "main" function.

Older "main" function:

int main(void)

{

    BoardDriverInit();

    /* Place your initialization/startup code here (e.g. MyInst_Start()) */

    //asr_at_commands(0);

    application_start();

    for(;;)

    {

        /* Place your application code here. */

    }

}

when in debug mode, it appears:

捕获.PNG

Newer "main" function:

int main(void)

{

    BoardDriverInit();

    /* Place your initialization/startup code here (e.g. MyInst_Start()) */

    asr_at_commands(0);

    //application_start();

    for(;;)

    {

        /* Place your application code here. */

    }

}

when in debug mode, it appears:

无标题.png

in summary, the total project is same except that there is a little change in "main" function, then in debug mode the behaviour is different and debug not start in main" function.

0 Likes
2 Replies
RyanZhao
Moderator
Moderator

Hi Qipan,

Could you let us know more details about asr_at_commands(0);and //application_start();?

How about their declaration?

Also you can do a comparison of these two functions by yourself.

Thanks,

Ryan

0 Likes
AlanH_86
Employee

That is curious.

Try a clean and build

0 Likes