|
|
Int main(Int argc, Char* argv[])! J) ~5 z- v( S
{: Q- c+ v+ O# b% \* ?8 E/ @
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
& l) A7 X0 a" E9 {" z) u ) y; L# A: C6 p+ [3 V2 Z: `( I" U1 e
Error_Block eb;
2 K! \) M2 F+ W5 W% J Task_Params taskParams;
" ^, j! r' U C3 B* l
$ ]# \7 ^& J( v( [& c Log_print0(Diags_ENTRY, "--> main:");
# H3 q. \- v0 o( H# V; \" O% L. ~! B2 d- B: }
/* must initialize the error block before using it */
0 ^, @, a2 j; i+ a% N) x1 z7 w Error_init(&eb);
) `" W- U0 g1 w l$ A0 Q; ?+ N6 C& _
/ p) E' `( O& {& A5 H0 N /* create main thread (interrupts not enabled in main on BIOS) */
' W% U2 X: O. ~' r0 G8 R- \ Task_Params_init(&taskParams);
: L9 p, O) @2 l/ C' Z taskParams.instance->name = "smain";
. L" S, I8 P6 f taskParams.arg0 = (UArg)argc;8 Z# `% I' ~0 X
taskParams.arg1 = (UArg)argv;
3 K0 w0 d8 k7 Z taskParams.stackSize = 0x1000;
1 ~0 Z9 H6 X% _- f) x, Z: H Task_create(smain, &taskParams, &eb);# k% i! j, \, K3 L
) f: f" w4 ~7 K) g if (Error_check(&eb)) {5 b0 b$ b; y" ?3 `7 L
System_abort("main: failed to create application startup thread");1 B; F& _" s; N2 r
}
' r! `) H5 K" @- I) t
3 s- d& p, V6 b* h; f /* start scheduler, this never returns */: J: n4 c9 z* L& C
BIOS_start();
9 R7 n2 X* E: x6 E: |- C& e; J
8 d6 ^0 g7 ~4 `; w: O /* should never get here */" a! ^. _; I z6 o# H1 S8 ~* {# @1 S
Log_print0(Diags_EXIT, "<-- main:");1 g. l. C( y6 K, b8 J) D6 b
return (0);
- ]4 D2 u+ A' l: x: `: n, H& S}
* i: U" s: |; @& f+ h6 v2 E% r1 a这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。
/ ^4 m4 `" a/ O# }% O# v. D h* k: A
|
|