|
|
Int main(Int argc, Char* argv[])
. f$ c0 P% e5 N4 u{
+ l, c4 x" Q' c5 j EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;; h! C N0 L z% d
8 i' P4 m9 [% Z Error_Block eb;
3 }9 `4 f; R9 v$ K" x Task_Params taskParams;
0 ~; _$ n& m6 A; z/ B2 x/ Q; Y1 R
( l. B0 u9 Q& }" e$ T! S# u Log_print0(Diags_ENTRY, "--> main:");
) Z4 s5 ` F# l9 r, j/ o
/ @' _+ w9 X8 Q; k4 Z/ U7 n /* must initialize the error block before using it */
$ n0 e: p- d1 j2 R Error_init(&eb);
8 h. @( [" K' b6 r. V c! k# h# y0 B, g; t& l
/* create main thread (interrupts not enabled in main on BIOS) */. W+ `7 F' h% f
Task_Params_init(&taskParams);
8 `) `; S' ~' }- V- r: ? taskParams.instance->name = "smain";
: s- B( d9 ] m taskParams.arg0 = (UArg)argc;
( l9 s! s. J. P+ G u3 r taskParams.arg1 = (UArg)argv;
7 R5 ~& q+ p2 s0 p taskParams.stackSize = 0x1000;
5 [; ^4 a7 }, b7 }7 v. K Task_create(smain, &taskParams, &eb);
) U4 C1 G( v" j! c0 \3 w0 t# K( q- B
if (Error_check(&eb)) {! q% g1 D3 K. H4 X c! V5 e
System_abort("main: failed to create application startup thread");
' A; L" y6 O' e6 S0 Q4 p }: m% _ w' u* N. Y+ R1 P
, x0 e# u' T4 K L /* start scheduler, this never returns */
3 `% k2 @% C% H8 Q9 s BIOS_start();% L9 y9 ~. t, ?4 Q) m( l
3 L8 B* K# s* p2 A /* should never get here */! g% b, T7 N- n/ l& ^/ D1 `: |
Log_print0(Diags_EXIT, "<-- main:");
9 V! g. q& \+ u return (0);5 Z5 n5 N1 ?* ?2 c1 d0 L
}. g' ^0 j _/ G8 K+ e
这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。
2 }/ M1 B& C, B- x. \( p
& _# T0 B# {7 x" a9 { F |
|