|
Int main(Int argc, Char* argv[])
" {# [7 f i8 ` H6 H4 b{6 t+ y' t& ~9 j: B9 ]
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
& V0 G. ]- D# G 3 ~% ?6 Z5 ]9 o( V
Error_Block eb;9 s+ H" G( `# N
Task_Params taskParams;
- M. c* {2 f6 m1 c3 e) Y# X: h
' m7 u% J- ]5 ?! s- ~& X* O Log_print0(Diags_ENTRY, "--> main:");
9 j, z) M1 T) D' I. t' E
; h) |$ C/ k g9 w' t/ B# K /* must initialize the error block before using it */
9 W; [" s( {" x7 x Error_init(&eb);
+ A* }$ G. \% @7 A1 T3 S5 S4 H
4 L+ D9 y) a) F, e$ _ /* create main thread (interrupts not enabled in main on BIOS) */ D9 n# H$ C. H
Task_Params_init(&taskParams);
8 u& {8 i$ ] P taskParams.instance->name = "smain";
7 W5 R, F% f/ i& v taskParams.arg0 = (UArg)argc;
' K. M# @6 F* s: H! P7 E' ] taskParams.arg1 = (UArg)argv;
0 W a) G! c" A# s taskParams.stackSize = 0x1000;
9 L, y5 o' ]) o* f: m Task_create(smain, &taskParams, &eb);) A- T3 `1 O& Y; J* b5 ]( n/ P- z
- ?; w2 t( x0 L) U4 ]0 E if (Error_check(&eb)) {# S5 Q! L- s' n% s; v
System_abort("main: failed to create application startup thread");( |7 f4 a, @3 ?) R# w" x
}0 j4 z" H2 D U$ K
" M0 \9 l- U7 u9 w( ~- E /* start scheduler, this never returns */
* z+ f% b; K: T: a BIOS_start();
! \# L* _, h$ }6 {; n
+ Z) D/ w) R, K$ b( {; F `' \ /* should never get here */7 |5 y Z( ^2 w$ K( q, v! A' N; {
Log_print0(Diags_EXIT, "<-- main:");
6 Z, Y; Q$ [* [; w! F6 m/ N return (0);
! s: Z1 W/ R$ a) y9 i}
; g7 R5 I& r; Y7 C这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。! N" r5 s% S5 y$ Q2 _+ k& y
! O9 `6 i/ p; P; Q4 B0 X" y
|
|