|
|
Int main(Int argc, Char* argv[])
1 }: L: b a" r: X8 a{! P3 S$ _& z& W0 P2 m- q% H
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;: d. V7 A3 j# ~8 s* W
1 j1 }" z- n: b Error_Block eb;
: r" J+ ? ~' T Task_Params taskParams;0 v* Z K/ w0 D; V- |; H) ?
, [) w' w- c/ h+ [; x4 V
Log_print0(Diags_ENTRY, "--> main:");! G/ B: Z) L a
/ n4 }/ p0 H' d( c% f7 J8 j( ?* H
/* must initialize the error block before using it */
; O7 H+ F( @4 w# I2 ?' S0 ?3 v7 j% z; e Error_init(&eb);0 T$ E" x0 `" ^1 U- Q3 o, K4 s) y8 Q4 e( d
4 x6 L `! y( r/ e8 _ /* create main thread (interrupts not enabled in main on BIOS) */9 l& W5 @ [6 i) v: i' i: M0 C
Task_Params_init(&taskParams);
; O, o$ c! H5 Z w7 X3 t taskParams.instance->name = "smain";
& Z, f% X5 {8 s9 u- B taskParams.arg0 = (UArg)argc;! ?4 J5 r+ d3 X5 l- r' z, B
taskParams.arg1 = (UArg)argv;3 ?" a7 o1 ^/ c) W6 B- L
taskParams.stackSize = 0x1000;
9 R* s( q3 v- k7 a* \: L! | Task_create(smain, &taskParams, &eb);
: L+ \1 l0 o* B( b8 @4 ~
' [- X' \2 N7 [6 h u; ^9 _ ?: a if (Error_check(&eb)) {; `2 k% }: g- e9 M3 f4 P
System_abort("main: failed to create application startup thread");
0 ], {# f; t* d' v- T$ m/ I }
. o. [1 S# O V D$ L/ n9 |& t* c4 n
/* start scheduler, this never returns */" s0 g/ M" _/ n) p" \
BIOS_start();9 b6 ~6 K3 ^& @- |/ n4 H! c6 i2 I
- y0 U2 \7 |5 w* x( \% ^ /* should never get here */8 ^# X9 E- P" t$ ~$ E0 u
Log_print0(Diags_EXIT, "<-- main:");5 ~3 n* {& V& A2 P* j" b$ |6 W
return (0); p: l, E: R Q7 o
}
' G: T0 K; K5 `8 U! J) Z. P这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。
/ f9 H& ~2 P6 m) n) s. O6 k. l* s" l9 g0 R
|
|