|
|
Int main(Int argc, Char* argv[]): r) ]% u7 [# O& V! \
{5 l7 ~- b3 g2 o( K
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
7 v* L0 q( @$ u5 d
# Z4 Z) Z$ k" n4 B& b7 @ Error_Block eb;' Q( ~2 o) ^' a2 i9 }( V m
Task_Params taskParams;* x; d7 ?3 @: E
: `& R, n$ Z$ F* E0 Y
Log_print0(Diags_ENTRY, "--> main:");- q- L; j8 K, }9 W( @6 {
- A9 ~3 l* J% T' h3 _: j) B
/* must initialize the error block before using it */
" Z7 `, M b& ` Error_init(&eb);- b+ y6 ^- s' T( f7 N& k" _) [
' r1 n! m$ ^/ K
/* create main thread (interrupts not enabled in main on BIOS) */
; d: \& D7 d7 U2 P) F& t% f Task_Params_init(&taskParams);
, T$ }. @5 e7 L4 q: Q taskParams.instance->name = "smain";
8 R0 e% F7 J9 h2 R5 {& d taskParams.arg0 = (UArg)argc;3 u7 {4 P a1 U' m) L# Q
taskParams.arg1 = (UArg)argv;
" h0 N6 Y3 D0 s& b7 x4 ~0 U taskParams.stackSize = 0x1000;
, k1 b" M; |8 v Task_create(smain, &taskParams, &eb);: l& ^ [* A. G1 b
: d' C% _ Z1 r: X! D4 X
if (Error_check(&eb)) {
; g( D5 |, l; }0 G1 Y System_abort("main: failed to create application startup thread");
# b7 g# x2 m) ?, X7 F3 b }6 `: I' @% I: c
* @( v! x! Y. M2 M& n; W9 d0 b
/* start scheduler, this never returns */
/ M I7 o6 R8 S( S% z BIOS_start();% A9 i! b5 [% R; y' r
- l# B; D) M) }
/* should never get here */
) V5 t: g+ v2 [! K$ G/ d Log_print0(Diags_EXIT, "<-- main:");
+ k' K4 R1 D, y9 ~$ k" X& V. |# {" _3 y return (0);+ x2 q, @( D/ r9 T2 E
}2 J, V+ u. j% X& V3 J
这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。- V/ }6 p9 Y( l4 \' o& ?# B0 x8 {% B
$ x7 R$ E; U1 v" A2 H |
|