|
|
Int main(Int argc, Char* argv[])
) d5 X9 c1 s; f0 }{
5 l% ?4 g3 s& a0 y/ g EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;7 g1 p- [- v5 M: P& H6 d
5 e8 D' l1 t$ W2 c% T9 }: ~ Error_Block eb;% ^# V2 e8 X8 u
Task_Params taskParams;# J1 V4 P. O: Y; f$ `, j
6 f o+ o$ e0 \) A& L* U' j$ l
Log_print0(Diags_ENTRY, "--> main:");+ u. P' ]! y! t# t
' ?. M+ @9 L5 f# h9 i u. h: ` /* must initialize the error block before using it */
( u9 C4 ?4 l7 e- G3 H3 [ Error_init(&eb);' |9 o9 }' W6 V, f' m9 ]3 Q6 r
. B: i6 O. ~2 n" G /* create main thread (interrupts not enabled in main on BIOS) */2 I2 v, g$ q* p4 _, x! I
Task_Params_init(&taskParams);
3 F( z' I- H2 e& v& p+ t J$ u taskParams.instance->name = "smain";) Z. X7 ?6 [% h$ C; T/ L
taskParams.arg0 = (UArg)argc;
; s' `3 N7 k% z6 ^ taskParams.arg1 = (UArg)argv;+ e% U6 k1 U$ F9 H2 |
taskParams.stackSize = 0x1000;: E$ d# B& f K+ n: }$ ]
Task_create(smain, &taskParams, &eb);
* Y6 u! X+ k3 }* ?( h
; m0 g0 ?) V) U" c8 M+ [4 L if (Error_check(&eb)) {
5 R3 M9 k$ |4 N- Y' P" k* Z; b8 l System_abort("main: failed to create application startup thread");
" K# n4 b; `5 h. p* G" `4 ^ }
6 o2 q" j# `( ~$ B" I4 ], a# x9 M
- q# b: r9 {! @9 H. A; h /* start scheduler, this never returns */- [/ z0 g* L5 O) O$ ?$ v: R
BIOS_start();$ ]0 ~7 Q7 Z. Z% N9 Y
1 ]0 Q0 u, Z: A8 u
/* should never get here */' H! e6 g! l: r1 q, Q: k
Log_print0(Diags_EXIT, "<-- main:");
- D$ G0 }' c; M7 J7 @; ? return (0);( _& q0 J) L" v! `
}, B% f. U: H4 c) u
这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。
7 B6 w2 u3 E3 c7 D) \ a; {9 Z3 E/ @2 b( l0 S
|
|