|
Int main(Int argc, Char* argv[])
# w g. V6 @: D! C" X0 ^# L{5 c) F9 y: D; L# x- Y
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
5 ]* h; N( i1 G5 J& [4 E8 I$ M 1 W2 Q$ d( H7 `
Error_Block eb;
) U/ |- X9 R9 \# f* j# v Task_Params taskParams;, J/ i- k/ G) w
* P, A" c& o r) G6 d4 w$ G Log_print0(Diags_ENTRY, "--> main:");
8 u. M" I0 e# e7 b! O
% }2 c+ X6 `9 n /* must initialize the error block before using it */
9 i6 D/ x6 c' f) W Error_init(&eb);/ v( _0 ~/ |/ Q5 U! e
- I; S7 A- r; Q( a) g# F" _
/* create main thread (interrupts not enabled in main on BIOS) */8 d; Y% @9 d5 U* z6 f# |/ A
Task_Params_init(&taskParams);8 a& K& U1 V. v
taskParams.instance->name = "smain";( S1 C8 B' I# G8 d- F5 f+ [
taskParams.arg0 = (UArg)argc;1 o/ v) s4 l. K4 N1 ^
taskParams.arg1 = (UArg)argv;
" M( j O; Q6 I! ]8 }5 t) H taskParams.stackSize = 0x1000;% E# N- i/ J6 v- d' O( w3 G
Task_create(smain, &taskParams, &eb);" \" `+ [+ l+ p, w( I
# j6 h, T' [& A5 d6 K if (Error_check(&eb)) {% t2 u( y0 D8 x, Y
System_abort("main: failed to create application startup thread");" l* U6 T) P' a. U( b( {* H
}& I, U% k$ p/ I
) r9 ?' ^2 q+ q( r
/* start scheduler, this never returns */# |/ C$ u2 F( [" ~* K3 L6 f- k
BIOS_start();) J. o, y$ P& N4 L+ F
0 f+ I7 ~9 G' F2 D$ L. B) p
/* should never get here */2 `' D# s3 [ p# y+ E! N
Log_print0(Diags_EXIT, "<-- main:");
7 \+ S& u K* U9 i$ S! f return (0);/ l- F' _+ {% A# P0 B7 B0 c
}6 m/ G& u. Z( L! ]0 V
这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。
2 i& R# ]% T: R+ p g1 X- {1 {8 Z" ^- N% S
|
|