|
Int main(Int argc, Char* argv[])+ ~; E. P% m8 L# [# u5 a p7 f/ s# j
{# l$ z# u. k- W4 `, ]2 f8 V+ ~
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
' J$ C; V# X4 [/ g, n
0 i, G$ |6 a4 Z Error_Block eb; ?& e( y# B) Z) t. U
Task_Params taskParams;
+ V! I2 X! H8 f8 S! U. C- ?( K9 ]# u/ V! B9 {! W( k
Log_print0(Diags_ENTRY, "--> main:");$ z* h. h. m {: ~- F
7 L" m+ J F; E# }8 M8 E# V6 P/ s' ^
/* must initialize the error block before using it */
. Q+ ?4 ]+ d; ]* C' \* Z, r: `8 ^ Error_init(&eb);
# j2 s; S# U2 C0 _8 Y
5 r/ X) z) D; N( a5 S /* create main thread (interrupts not enabled in main on BIOS) */
H1 g$ h6 j+ r K8 ^ Task_Params_init(&taskParams);2 l$ f" |) j" E0 ^0 x
taskParams.instance->name = "smain"; N: W, \5 S( |* f$ h
taskParams.arg0 = (UArg)argc;3 G/ W" \- l5 j% d, S( h
taskParams.arg1 = (UArg)argv;
$ V) ~7 f9 W. R7 g taskParams.stackSize = 0x1000;
4 K( P2 n5 D6 G2 u2 | Task_create(smain, &taskParams, &eb);
: \! l% n3 t I1 K! B3 n
! X7 c `/ b. @. p5 n# t9 c/ K- r if (Error_check(&eb)) {& I- O4 K0 e$ d* u! P; R
System_abort("main: failed to create application startup thread");' j) e. o' L* L# i/ [/ n$ _) D
}
% p* {9 q7 t1 z3 x
2 e0 F5 T* i ]# ?+ s5 N$ w /* start scheduler, this never returns */4 W* W: z6 K9 {0 H* h
BIOS_start();1 J, I3 t7 d! A6 X# V" G
2 t4 {7 a, y% G/ x; ? /* should never get here */
8 c. C! E% a9 B Log_print0(Diags_EXIT, "<-- main:");# U+ u% B0 j7 e3 s7 ?. G
return (0);! z; V+ x' v7 d3 o) h0 q7 N
}
; E( F+ ~+ P1 K" i: d( |这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。, ^- z& y1 c- @" s: w% q' h' R1 y( D
6 _! [( f5 e0 d$ ?8 y |
|