|
Int main(Int argc, Char* argv[])% l9 c$ u l" t( f" U
{
$ ?: f$ i1 Q+ Z j! K! J1 n EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;! L8 `& E5 D- ], c
7 R. `0 D) {, t6 }
Error_Block eb;
6 z9 J' q5 p1 I$ d Task_Params taskParams;
/ P3 o# p$ q* I: j5 A) q
+ m- F% q8 K$ I Log_print0(Diags_ENTRY, "--> main:");
3 `3 b! u1 m9 U0 x1 y% E+ l9 {- w1 U9 e9 m3 L7 ^0 R
/* must initialize the error block before using it */2 a# u- s8 n) v9 _% _; O2 c
Error_init(&eb);/ k+ ~/ U/ m) ?/ {% s7 G
6 e4 F& _( H% b- H /* create main thread (interrupts not enabled in main on BIOS) */+ G4 I* x* {# n- S0 c
Task_Params_init(&taskParams);
/ \- i) F5 `1 b! p taskParams.instance->name = "smain";
5 _$ J' c0 y( V& N+ d# _8 ?# L taskParams.arg0 = (UArg)argc;
/ Q2 H8 v% I4 C, D/ F% r taskParams.arg1 = (UArg)argv;
# }) `8 e! P3 O3 o taskParams.stackSize = 0x1000;
& D D8 N3 Q1 i+ a: _+ l, { Task_create(smain, &taskParams, &eb);
: V0 K3 L1 j! b' P
0 i$ V/ Y1 ~ k3 L: K% S2 R& N& C if (Error_check(&eb)) {
: t, [) h/ U# r$ K6 J0 {! D System_abort("main: failed to create application startup thread");3 G$ ^2 b( i" ~$ Q7 ]3 H
}1 u Z2 E% D3 Z) e1 v+ v
5 q, ~* d2 ?4 _* S3 n2 l- @6 v
/* start scheduler, this never returns */5 _, x h# ^# B; z- t
BIOS_start();& |: {! q$ b- C; j5 G9 W# B
# o) ^" V& t' j9 R
/* should never get here */
) V* _7 H0 m- j4 @ Log_print0(Diags_EXIT, "<-- main:");8 E& S3 V+ `" p
return (0);4 x6 _! g' {: \4 X; x4 H
}
0 M* N: y* E3 o! s这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。; L! e( {6 Y0 ?' `) }
4 L/ m4 x0 |' V: ^- j2 @1 x
|
|