PSoC creator debug in chaos(it is not from main in PSoC creator IDE)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
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
Moderator
250 sign-ins First question asked 750 replies posted

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
Employee
100 replies posted 50 replies posted 25 solutions authored

That is curious.

Try a clean and build

0 Likes