|
|
Int main(Int argc, Char* argv[])$ O' \3 n2 B- @ G8 s. u k
{2 R W" f5 }8 [! W O
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
. w7 m/ r' l4 V: C4 Q) e ) S8 ?( U+ r+ S( x7 q- _, p
Error_Block eb;
& `" O4 K1 @# F' A* O6 o1 H Task_Params taskParams; \: |2 `- ^, n; q3 [( U0 }
) |/ Q/ s9 w7 K! P4 G/ G7 S Log_print0(Diags_ENTRY, "--> main:");
7 q7 j3 Z# k/ w4 R& v
! t2 s# Z/ D, M( e1 i /* must initialize the error block before using it */6 F) Q. B% z7 ]
Error_init(&eb);
! y: U l ]$ q9 ]$ [$ b
- h: l+ p' H3 Y0 m /* create main thread (interrupts not enabled in main on BIOS) */8 d2 _9 ^, H& e
Task_Params_init(&taskParams);
- {/ w4 Z7 |% i; x taskParams.instance->name = "smain";
, [5 s! [+ c# q! S$ @$ B) { Y taskParams.arg0 = (UArg)argc;
: `5 S4 Y# r, k! ? taskParams.arg1 = (UArg)argv;
+ f/ [8 U9 |( G taskParams.stackSize = 0x1000;5 K. Q4 ^1 h; b; z5 @# |6 e1 n$ m
Task_create(smain, &taskParams, &eb);" d( |( N9 ~* P& L' s& S. e
: d. ~8 J& ]2 ]
if (Error_check(&eb)) {
5 S. v' D4 W( n9 w+ z, s System_abort("main: failed to create application startup thread");
8 @: ?( N& B8 P+ k9 ? }
* G, I0 Q9 h- \2 e8 ]: C
* N3 P! Q9 V# P$ N /* start scheduler, this never returns */" V, m3 I& p8 L' W& r: u7 A: g( C
BIOS_start();
. y, X4 w4 ]. I; I* F1 C7 Y+ h! a5 p9 {+ ?/ [' ?( i0 Y1 P
/* should never get here */$ c6 {& {- e8 j) m8 z- B( S
Log_print0(Diags_EXIT, "<-- main:");% G6 ^/ ?; x$ u5 m
return (0);8 u, [8 a) n) N2 y* B
}
7 x" P5 F* |9 \( O1 t这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。+ i* r% _9 A8 ]' k
: ~9 Q" d& n& C# t/ `
|
|