|
Int main(Int argc, Char* argv[])9 U6 h* r2 M) D: [" H
{% W. z4 W; @: c8 k
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;/ n4 `7 Y. h8 l* Z3 @
" e# y* B8 K$ J0 h" k Error_Block eb;
; K! B8 O5 Q7 w A3 L8 B$ r5 ]4 z Task_Params taskParams;
7 z* t" c( o; k! e$ J* S9 _4 l, K
Log_print0(Diags_ENTRY, "--> main:");& |3 Y u k; h6 u" V# ]& H
( @7 f: l) i; f9 C2 f" t$ ~
/* must initialize the error block before using it */
7 o% d# j: X0 Q; v. s Error_init(&eb);
0 |3 @: i7 U; q7 P/ S: Y( q
% p$ Z+ x, P1 p9 I. i /* create main thread (interrupts not enabled in main on BIOS) */
+ N0 {: R2 h+ ~ I% r: S+ z Task_Params_init(&taskParams);* u9 ?- i' I# N9 }* u; z, Z
taskParams.instance->name = "smain";+ M6 Z& M1 ~& a
taskParams.arg0 = (UArg)argc;
" }/ `& p) q5 \2 ~! O, v0 T taskParams.arg1 = (UArg)argv;
r2 H; F0 p# e$ u3 I7 n1 c& | taskParams.stackSize = 0x1000;/ z K' t I7 }# _
Task_create(smain, &taskParams, &eb);
5 v7 [1 s- S: o. x* T% \
3 V1 U0 E5 O: O* ^8 U% R5 R- e- F if (Error_check(&eb)) {
8 A* M( p% R, I n System_abort("main: failed to create application startup thread");5 B: I' {5 _; `' G1 N" |
}
/ j/ }& P" R: u1 v, B- J7 k / E% x& u2 s8 j }
/* start scheduler, this never returns */
1 n. G* f b( \1 \ BIOS_start();
3 j+ @ C! a5 L4 K0 v8 w* n6 D& \8 W; X( B+ Q+ ` w$ S: `; R7 D' Q
/* should never get here */
7 y( b U4 I) L8 ?: k0 G" l4 t Log_print0(Diags_EXIT, "<-- main:");. {1 o' q, [: z7 Y e
return (0);3 V" v+ \) `6 }5 _1 E' P% m& N
}6 K& }2 @5 I% { T) a( ~+ L$ O
这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。
& H6 ^% o) X3 D7 Y; N( N
+ Y+ ~, U& B# r! U |
|