|
|
Int main(Int argc, Char* argv[])6 A- o' v0 p7 D# \& y4 s
{% e0 k! ^' y9 Y5 K
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
. _# v" `1 @; u. T" f/ u$ m % q. p- P7 y6 x5 o, s
Error_Block eb;
0 J4 ^$ p- x) s+ t' ~ Task_Params taskParams;
, b/ d s* d( ~/ n' [; d/ [) W4 J+ ~( |8 r! ]7 @
Log_print0(Diags_ENTRY, "--> main:");8 g9 i9 f: M# R3 a% \& |+ j$ Y
" w$ D" V `8 ?8 G7 P1 q
/* must initialize the error block before using it */
; T; w; `8 a! F/ b; \/ } Error_init(&eb);
8 a, j- W" X) j" w9 p
; y% \/ g8 _0 X7 ]- n* q: I6 a /* create main thread (interrupts not enabled in main on BIOS) */7 n0 @6 q" \1 ]9 a, C8 Q! Y* z
Task_Params_init(&taskParams);( {( I& ?- R6 }5 b1 D: M
taskParams.instance->name = "smain";
8 w; I! o# S8 ^ M1 g taskParams.arg0 = (UArg)argc;
- P5 |) H7 w9 q taskParams.arg1 = (UArg)argv;
7 s% K! P% ^% q2 N% @ a% q) l taskParams.stackSize = 0x1000;
0 G: w8 H' G8 i/ ~ q4 g2 [ Task_create(smain, &taskParams, &eb);9 ?! g# n6 T3 _/ Y; u9 t
- o: b' ~- [+ h& y- k0 |9 `
if (Error_check(&eb)) {
3 E3 r$ H% |* U: B% z System_abort("main: failed to create application startup thread");; s. A; R, X; n8 A! v
}7 f/ e; J% Z$ ` X4 J
3 [" h% J3 `8 W, g M0 V6 e% J5 [/ t$ S: K1 j
/* start scheduler, this never returns */
5 B# h, K4 ^. n% L, | BIOS_start();1 u+ u0 `% W2 M" ^: p
5 A0 L7 N$ @4 r6 Y$ H
/* should never get here */
. p S9 `- ]* W3 o; k9 Y2 E Log_print0(Diags_EXIT, "<-- main:");+ m" j) _* t3 ^5 E9 V' c) m/ y
return (0);1 m: y. l7 l, V* Y
}
1 w0 p7 I4 P" A: O4 M这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。
% g9 a% ~/ N, t- h6 J' s7 |6 {' O: j* t, q0 v
|
|