This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于CCSv5.3debug问题

Other Parts Discussed in Thread: HALCOGEN

请问一下有没有人知道TI给的源代码的函数中是否可以自己添加代码?为什么添加代码以后build没有错误,但是debug时进入不到main函数,而且还会有错误??

  • Hi yiwei,

    如果你用Halcogen生成的代码,请把自己写的代码(包括函数)放在两行特殊的注释行之间,那样Halcogen重新生成代码不会覆盖自己写的代码。

    /* USER CODE BEGIN (x) */
    /* USER CODE END */

    MCU 复位后到进放Main函数之间,会先执行_c_int00()函数,这个函数在startup.c中。你暂停一下CPU,看一下程序停在什么地方了。

    Regards,

    Jay