2 Replies Latest reply on May 4, 2018 5:38 AM by arh

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

    qipanli_3374261

      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.