TI中文支持网
TI专业的中文技术问题搜集分享网站

CC1310 System_abort

请问System_abort这个功能是干嘛的?我用的XDS100V3仿真器,能用这个来看输出吗?

if (uart == NULL) {
System_abort("Error opening the UART");
}

Viki Shi:

Void System_abort(CString str); ARGUMENTS str — abort message (not a format string) DETAILS This is called when an executable abnormally terminates. The System gate is entered, the SupportProxy's abort function is called and then abortFxn is called. No exit functions bound via System_atexit() or the ANSI C Standard Library atexit() functions are executed.

http://rtsc.eclipse.org/cdoc-tip/xdc/runtime/System.html#abort

user4959119:

回复 Viki Shi:

它的字符串显示在什么地方呢?

user4959119:

回复 Viki Shi:

?

Alvin Chen:

回复 Viki Shi:

在debug console 里面输出的。

user4959119:

回复 Alvin Chen:

IAR的?

Viki Shi:

回复 user4959119:

CCS也可以设置console,具体方法看这边步骤:
processors.wiki.ti.com/…/Printf_support_for_MSP430_CCSTUDIO_compiler

user4959119:

回复 Viki Shi:

我用的IAR大哥

user4959119:

回复 Viki Shi:

ok

赞(0)
未经允许不得转载:TI中文支持网 » CC1310 System_abort
分享到: 更多 (0)