|
Int main(Int argc, Char* argv[])2 f) v( ^7 j% Z7 H
{1 f5 F( z3 a$ I9 q' U B: a
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;( n. M) M O. }! z8 R/ i
: x, `, y4 r1 t Error_Block eb;0 ^0 v( S- D ?
Task_Params taskParams;
# c H, K3 @1 V: W) {, p
% H! X8 L) N, g Log_print0(Diags_ENTRY, "--> main:");, L4 i; n: w) f, h
6 ~ K) J* H J3 h6 H/ A( B2 P
/* must initialize the error block before using it */
" g4 S+ T! G( s1 x Error_init(&eb);
i& y$ b2 n b8 j. F! {, i7 \- f
/* create main thread (interrupts not enabled in main on BIOS) */2 [ T4 [& \- S# U8 V: J
Task_Params_init(&taskParams);' R5 G2 i7 X8 |3 j. K
taskParams.instance->name = "smain";; t9 Y; D1 [9 W+ d6 [$ D
taskParams.arg0 = (UArg)argc;
4 C7 Z4 Q' C) m. ] taskParams.arg1 = (UArg)argv;
! y. G+ H% v' ~/ M, f5 v taskParams.stackSize = 0x1000;
9 O+ [% h% W' v9 D7 s8 e# a; n4 W Task_create(smain, &taskParams, &eb);
& [/ H; P8 g* i: i) @
. r, N7 x' x7 _; y/ r% f0 ?: ] if (Error_check(&eb)) {. ?; B) k& e' w
System_abort("main: failed to create application startup thread");2 i/ `5 G2 Y& B$ N" U
}
+ f6 j: f! \- o; s6 z, l( I : S* B" f4 F7 q1 v+ M5 H
/* start scheduler, this never returns */% J3 d, F, z/ w5 H
BIOS_start();- b' [* L" m: a* o2 J/ G5 d
* O1 y o/ S' K
/* should never get here */
' ?; U \* F3 O7 O Log_print0(Diags_EXIT, "<-- main:");+ [4 K A. D* a! ?. K
return (0);$ ^3 X; j- K- l
}
! @! J' W! Q9 |3 I这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。, s7 j5 M" v" Q2 {8 E
3 k/ r) I9 n9 X |
|