|
Int main(Int argc, Char* argv[])
$ m' y) n7 N% h! Q; n9 [% t{8 e6 F) [! H# J: Y* Q
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
) T( A' t6 N* _4 \& G8 J" ]
: Y ]' F/ s2 S0 d Error_Block eb;
' ?) G9 e8 K2 ]. p" z% x. E/ Z Task_Params taskParams;+ @9 t1 [* ~: D, j) q
7 ]" D3 E( n% ~: n6 d0 h
Log_print0(Diags_ENTRY, "--> main:");
& C. C- L v. r. d8 Z# g! e
" _ R* ]5 h* i, D /* must initialize the error block before using it */, j' S& F8 E* f$ x) F- o
Error_init(&eb);
: i( {( G4 I1 n# ~9 V |- f+ e: A5 |5 a" [, G; Q6 @
/* create main thread (interrupts not enabled in main on BIOS) */. d9 I1 o5 i! B( M+ h0 Q% g4 F. p* D
Task_Params_init(&taskParams);
- `8 b) s! ^9 K5 X/ N& o# t taskParams.instance->name = "smain";
( ?' O/ Y0 L/ M" X% s$ Y2 p7 y taskParams.arg0 = (UArg)argc;
& x; T8 t* p Q& i- S# A- ~3 B taskParams.arg1 = (UArg)argv;
0 C, R6 t1 l" i O taskParams.stackSize = 0x1000;
- |: R8 {4 M* X2 s Task_create(smain, &taskParams, &eb);
; o' ?: w4 w4 n- D5 v
+ y& m* H3 x1 A. s if (Error_check(&eb)) {) h7 ?! W, L1 q
System_abort("main: failed to create application startup thread");
Z; `7 ~) J: [7 U. ` }
( U) m* R( N" o- U% n % J5 W% u3 E8 z" w+ ]
/* start scheduler, this never returns */
0 {; A; `, o# l6 J5 v$ A" f0 P% g3 N, ` BIOS_start();
/ V3 u9 v& ~; N% \) G! _8 B! C0 o k9 K ~
/* should never get here */" O) Q- c% Q2 E$ S, ?2 ]
Log_print0(Diags_EXIT, "<-- main:");4 ^4 p0 F) \' v
return (0);9 R( x/ d8 M$ ^1 e) C- S
}
- V6 [. m9 P: V9 a; ]$ H这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。1 \" m0 L- W9 N7 O
( @! k7 O3 j7 T
|
|