|
|
Int main(Int argc, Char* argv[])# E& n- d6 x6 t$ _
{4 j/ E* b/ u6 w8 U" O$ l
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;6 W W+ |. D) s, i8 O( ?
; Z) Z+ M5 V5 F1 f. ?0 O: P Error_Block eb;" q( I# n* \% a; d0 {
Task_Params taskParams;+ R4 y/ f3 [' S9 _
5 ^- Q: f1 w- y" S' e Log_print0(Diags_ENTRY, "--> main:");
) m5 X0 U" N6 \; ^* {7 K# g% z2 l" [) K' J; O2 h" z6 Y
/* must initialize the error block before using it */9 G& G( f" B% m6 B/ P7 P8 y
Error_init(&eb);. s5 A8 L5 F D8 n
+ @ X& H. f$ D; K0 \ /* create main thread (interrupts not enabled in main on BIOS) */' M n3 V. u- O
Task_Params_init(&taskParams);0 K; S9 |% |. }
taskParams.instance->name = "smain";% ?, l/ c( h: V$ v }
taskParams.arg0 = (UArg)argc;
8 D# m8 f" U, b3 e taskParams.arg1 = (UArg)argv;
9 S* d$ C2 @- O0 _; B) ~ taskParams.stackSize = 0x1000;
& A# s2 v; s6 S8 ? Task_create(smain, &taskParams, &eb);
$ I( m3 K. z* p, I) n! g
% w2 ], N: R% G( \1 l if (Error_check(&eb)) {0 F9 M+ `, a" ^, A8 N
System_abort("main: failed to create application startup thread");
/ P% a3 W7 K& C" ?& c }( v. p" e( I' o0 }. R+ W$ n8 [3 R
' N) c# w" J" p9 k& T
/* start scheduler, this never returns */
M1 e/ W. s+ \+ S$ L. U3 N0 B0 n1 l BIOS_start();
: ^3 j* D; L# m% C. G+ a# o9 S. ~& U6 l& u, {+ S8 W
/* should never get here */9 W1 h% ?: d1 C' Z/ a+ P
Log_print0(Diags_EXIT, "<-- main:");
/ O3 V* O' x+ d1 P: `( G; c7 l0 [7 J return (0);
1 E. |- \9 N8 O+ b5 E4 K5 [2 q# | i+ u}( _* y; R. [7 u2 ]/ S/ J7 a
这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。: u7 l7 N6 ~8 q% u$ @+ Y9 }
( E, C; O/ H% U- q. S |
|