|
|
Int main(Int argc, Char* argv[])
1 q# N+ S$ P2 L. i6 B: j{
! T. ^2 a3 P: S' _ EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
4 z5 `/ }- n* o+ d: z ! E. \0 U4 U! G
Error_Block eb;; i7 S" [& x$ J' I
Task_Params taskParams;
) v* y8 r1 H" L( o5 g I* I* G- s6 b$ E! [3 v
Log_print0(Diags_ENTRY, "--> main:");
3 E! z* e g/ A) m) A
$ K$ N' s U1 r; a" z /* must initialize the error block before using it */, h( w& O- m9 D; H# A+ ?, b8 H5 u
Error_init(&eb);$ I" Q$ P2 I5 B( a
; e m6 c$ {6 w5 p5 P, I% P9 x! h0 i /* create main thread (interrupts not enabled in main on BIOS) */
1 ^9 D t$ `" b o1 {5 E' D; [% f Task_Params_init(&taskParams);1 B6 Y! l( u! c* {7 ^0 v& n
taskParams.instance->name = "smain";6 f8 U/ a6 W& U0 D- }) p
taskParams.arg0 = (UArg)argc;
) |0 \2 ?: \& }9 B7 |* R taskParams.arg1 = (UArg)argv;
4 _" v {( `* x taskParams.stackSize = 0x1000;& X7 i( }1 J* Y8 I, q
Task_create(smain, &taskParams, &eb);
. l- S+ ~5 ~% d4 _9 i) A4 A! a9 h) ~* Q
if (Error_check(&eb)) {
, T! I2 Q) [. Q* n- a) G4 a* r: X System_abort("main: failed to create application startup thread");
( V, z8 L5 h( U' ] }5 ?. j) M# p4 c; U
; W2 U4 {8 n8 U7 O) f /* start scheduler, this never returns */
0 U: F. @/ \; T1 V" t BIOS_start();. I- ~$ K, N' m: J
( G$ V. x y4 \! e5 n) H/ O; i% ~% a; e; x
/* should never get here */& [; z: n" q* j" F4 V4 f
Log_print0(Diags_EXIT, "<-- main:");
7 `& T4 g+ B' E3 ?9 }2 n return (0);
- Q& {; {: m- a& L9 p}
! N- j( L# g" o7 p这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。% O$ I/ ]3 I# t, l/ F
& I# l- D" X; \2 h5 N7 B9 H |
|