|
Int main(Int argc, Char* argv[])! i; n9 Z1 O; ~ e
{ H$ r }+ v0 R+ @
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;1 J7 G+ B. o% f* B
$ b! @% L3 @3 [ Error_Block eb;
4 r2 Y2 F% t& f$ B4 L Task_Params taskParams;0 g' ^/ F( O4 Q; J
; u; }3 t; C' U1 N8 @ Log_print0(Diags_ENTRY, "--> main:");0 C: V# U( k- }) @% q1 ^, r$ y% B# h
) D9 i8 A7 H) A! W8 K
/* must initialize the error block before using it */) c3 o7 a |3 G( s% y9 r* A
Error_init(&eb);' C2 g" \7 h! x: O8 m
# |: u# ~/ ]# |( `8 g /* create main thread (interrupts not enabled in main on BIOS) */
4 g' Y' V- v2 b3 `! G Task_Params_init(&taskParams);. O* i* n/ _% t" v
taskParams.instance->name = "smain";# q5 k+ Y \# j# w, ~3 X4 O
taskParams.arg0 = (UArg)argc;
8 A8 h0 B7 f2 w9 l9 B! X0 E F taskParams.arg1 = (UArg)argv;
, E1 U, D, b0 g/ g5 ]) B# o taskParams.stackSize = 0x1000;
+ @9 b1 H- n) x7 n4 ]! p Task_create(smain, &taskParams, &eb);- v3 x+ f) R- Q1 A% M% z
3 z' F( \+ h( c; }5 ^, V0 F! C
if (Error_check(&eb)) {( I; Y: z9 Y: T' _4 @, S* s
System_abort("main: failed to create application startup thread");9 R5 U& X a" E$ J5 b( \! @- Q
}
9 N# }1 U& R" G$ S) C + g# q3 Y/ J8 [# V$ e5 J: k
/* start scheduler, this never returns */" y! q. h- l* h7 X' D
BIOS_start();' ~, a( I% y+ Z+ y- k
7 H! I: P" \2 D% ?( M9 I! z% b- B. d /* should never get here */+ l# p: ]. _3 H8 s6 v4 a
Log_print0(Diags_EXIT, "<-- main:");
8 a6 P9 s. m) v0 T# L6 O7 V; L return (0);
( }" V" ^" M: `}
% ~% F0 S6 B+ t2 x& t# n# X这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。 K- L4 h5 g, C$ n
, ^* b! s4 v% {9 s$ A6 O |
|