|
|
Int main(Int argc, Char* argv[])
' Z& r3 {' h& ?3 w{& ?* n9 f: I: E" p+ l$ _. p- Q
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
/ r. r$ t0 }* Q8 @6 i
- N, B% Z8 S* n7 N% @ y! Q( Z. R Error_Block eb;
! Y* H$ r' Y* {1 A7 U' p. ? Task_Params taskParams;
" u9 { J8 h9 {8 c4 a! D% m
% s/ O% ]: `; u. \ Log_print0(Diags_ENTRY, "--> main:");
) N ^. s- |8 s8 o2 o( ]
# ^4 A P k+ c( X( A /* must initialize the error block before using it */3 L& l7 ^! X- R6 ?4 a
Error_init(&eb);; M8 ]0 N5 f( _- S4 q4 r3 |
" S& r( z0 k5 e' k
/* create main thread (interrupts not enabled in main on BIOS) */
" Z e6 W7 \5 h6 J" u Task_Params_init(&taskParams);4 c& E- [+ Y' F- f4 T3 E$ E
taskParams.instance->name = "smain";2 J+ l" Q+ {( G9 M1 g# U7 ~2 _
taskParams.arg0 = (UArg)argc;/ R- p u1 ]& K
taskParams.arg1 = (UArg)argv;/ Z- m: S. O1 @6 _6 `3 w8 s
taskParams.stackSize = 0x1000;
# O% Q5 ]! x" g1 ^3 J Task_create(smain, &taskParams, &eb);
& R" y1 Q A5 ~$ Y) z
- L' u9 u' S( m3 P! A6 Z if (Error_check(&eb)) {
: K6 N0 i- q) U C$ w System_abort("main: failed to create application startup thread");$ {1 }, N3 ~/ {- m& H1 U1 N
}
9 M3 c: U0 k2 W, g+ \5 h i
b+ A+ g5 r* L% h5 d. w+ c /* start scheduler, this never returns */
. p# K" Z# D8 e, P( t: ~* s [ BIOS_start();
! x3 U) N$ S. `$ } ^" T6 u# f B4 j& k' P' `
/* should never get here */8 d3 ~7 l# k, O2 a
Log_print0(Diags_EXIT, "<-- main:");( T% z2 n; X2 \; u( `
return (0);
3 Z" [5 u1 `+ e7 ?5 ]1 w}
4 a7 t' a3 m; D o2 ~) t2 v d这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。
; }# [; o& H Z$ M' C/ {
9 @+ b! C6 i2 N* L: | |
|