hello:
我在调试adcbufcontinuous(freertos)例程时,正常进入debug界面,点击运行,程序可以正常运行,串口正常打印电压值。但是运行中点击暂停,再点继续运行,程序无法继续运行,串口没有打印。请问是什么原因呢?
我的DEBUG环境:
win7_64bit,
ccs10.1.0
freertosv10.0.1
simplelink_msp432p4_sdk_3_40_01_02
Susan Yang:
谢谢您的信息,我会在测试后给您回复。
,
Susan Yang:
我是用TI-RTOS测试的,和您的情况相同。
暂停后会进入
void CPU_wfi(void) {//// Wait for the next interrupt.//__asm("wfi\n"); }来等待中断,
Use this function to let the System CPU wait for the next interrupt. This function is implemented as a wrapper function for the WFI instruction.
而后点击单步运行,会在下面的语句循环
/**======== Idle_loop ========*/ /* MISRA.FUNC.UNUSEDPAR.2012 */ Void Idle_loop(UArg arg1, UArg arg2) {/* INFINITE_LOOP.LOCAL */while (TRUE) {Idle_run();} }
,
haolong liu:
感谢回复!
请问原因是什么呢?
另外,我发现如果不创建ADC采集线程,而额外创建两个简单的周期打印Hello world_1线程和Hello world_2线程,这样串口可以正常周期打印“Hello world_1”和“Hello world_2”,debug暂停再回复后,程序仍可以继续运行,串口恢复打印。那么为什么创建了ADC采集线程后,debug暂停后程序就无法继续运行呢?
,
Susan Yang:
我会在确认后给您回复
,
haolong liu:
hello,
请问是否有答案了?
,
Susan Yang:
抱歉,我之前的E2E上咨询了其他rtos的工程师,暂时还没有得到回复