|
|
Int main(Int argc, Char* argv[])- Y8 b% H0 P( R. c: H. o( r
{- R3 x- x2 F5 K* |( j
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
% w* ?. U& p( @7 l h% a' X4 Q- Z* q1 g. o3 a& r Y" x
Error_Block eb;
) K! W+ S Z# A, T& N Task_Params taskParams;8 H- y; R8 e+ b/ r& J
9 T9 z; J& f/ o9 g! n/ r2 } Log_print0(Diags_ENTRY, "--> main:");
3 Y8 ~: `' g* Q. D" n
# M# U# r9 B: C0 m /* must initialize the error block before using it */! w5 V. Q B) y& z" ^& `
Error_init(&eb);0 z3 E- x2 Y) m9 g9 h9 {: C$ _( K
/ f/ i r8 P: }5 S /* create main thread (interrupts not enabled in main on BIOS) */
% q9 `" g' }) U- s/ d% w& d, C- a Task_Params_init(&taskParams);
, z. t0 q x4 y8 c0 I taskParams.instance->name = "smain";
5 z9 X- [' ` z$ H& y taskParams.arg0 = (UArg)argc;, P8 z, E/ m( Q1 j( U
taskParams.arg1 = (UArg)argv;
- ]1 L& | M9 V9 [1 P) w6 b taskParams.stackSize = 0x1000;
: U# u. k' y7 V# d7 T Task_create(smain, &taskParams, &eb);
. s1 D% S* {+ a* {2 E6 g& P8 W
- G6 s, i" F3 \/ g" m7 } if (Error_check(&eb)) {: Z1 l- ?: `- W* e B# W3 l2 R
System_abort("main: failed to create application startup thread");0 e$ w2 a! e: O
}
- F, Q2 F: u( Q1 A) @9 Q 5 ?1 R" B: R4 U. k. j. J3 M% {/ r
/* start scheduler, this never returns */, `0 c/ f4 {" g1 i! m5 L! F1 Y5 c
BIOS_start();
7 r+ k" a/ b1 R& D5 f6 f# @ x |- f7 q' B" r* p) U
/* should never get here */
; |7 }9 ?' o4 ]$ z6 n# ` Log_print0(Diags_EXIT, "<-- main:");
6 A2 B$ ]) V0 u1 B& x" o5 K return (0);
; m3 z/ _3 j8 ~4 [}1 P3 V m4 z% n
这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。: C8 K* L% _5 H; _* p
! Z2 b& l5 S1 h' G2 ~
|
|