|
Int main(Int argc, Char* argv[])
* Q" P# f7 M4 j) x0 q' O/ {{- X5 F5 g& m4 L1 b$ y
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;* t, D. V9 S$ l! u4 q4 ?( G
. s& x, @9 c& L( J9 U' c
Error_Block eb;) d6 y# \5 I) l2 ~0 H: y( G% f
Task_Params taskParams;
) _/ d+ I* U$ q ]
' D; H/ l! t5 c, V/ p Log_print0(Diags_ENTRY, "--> main:");/ `$ U- g/ W" S5 |; W2 ?
0 O# S& n( X" i- t. [
/* must initialize the error block before using it */$ | f( ^1 g3 F0 k1 [: a
Error_init(&eb);- h- }" O# Z2 z2 Z' e+ v
* z& `- X- A$ D /* create main thread (interrupts not enabled in main on BIOS) */
3 z4 W8 y# D( B9 E Task_Params_init(&taskParams);' H6 Q2 k$ }3 \8 D# q; S
taskParams.instance->name = "smain";% b# j& Q% s# I6 J* t
taskParams.arg0 = (UArg)argc;
% Q+ z x# N/ u8 X [ taskParams.arg1 = (UArg)argv;$ v) {6 T5 [) ^' G
taskParams.stackSize = 0x1000;- Z7 y; c0 m5 ?7 x; }
Task_create(smain, &taskParams, &eb);& C+ X% Q. a! A) g Y
, y. J& F' t1 L8 { if (Error_check(&eb)) {
' s/ t: \4 ?# u; o6 }* L System_abort("main: failed to create application startup thread");
, q" R% ]. D" s }* b6 k8 h) g# Y/ D$ e: h; u
* j! Z$ n9 F" w( E) G: j
/* start scheduler, this never returns */
4 e( h! q+ |2 g, l$ a BIOS_start();! m6 H$ R; @* m5 B+ G9 L- s
! i( w0 y) [: ~
/* should never get here */
; a: Y) l9 \& { Log_print0(Diags_EXIT, "<-- main:"); K& ?9 ]! R7 c1 i
return (0);
/ K& S& L5 q) \5 B0 q* g/ Z2 Q}) Z! `6 P* ~5 p
这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。# |* U& l- V' ^- w
4 F- j) N( q/ i' h: N3 `3 |
|
|