|
Int main(Int argc, Char* argv[])
) t0 J' t4 q' ^7 V$ }0 w0 e{: _2 k# M" [/ V0 n/ o/ A$ W" x* i) e! G
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;. c5 G' i; W! |, P+ O2 [
3 U8 N& _: N; Q4 h9 M Error_Block eb;
% o1 e% G" q0 M: d5 ^ Task_Params taskParams;
, w- r8 k8 G' H
* t, d* x( p- W. B3 ~+ V Log_print0(Diags_ENTRY, "--> main:");5 H" o& v# @* l4 R
8 K6 E( f2 g8 B+ W% A" w* c: n& n
/* must initialize the error block before using it */' U" z3 I2 m% b0 M6 S8 t
Error_init(&eb);! f! I* L s. N& L9 \- R* @
7 M v) T! g/ F1 ]+ V! f
/* create main thread (interrupts not enabled in main on BIOS) *// f; j. ?& v: t$ B3 t
Task_Params_init(&taskParams);0 [% i% P) y S5 Y
taskParams.instance->name = "smain";
8 b; j5 }+ O; A5 e- r taskParams.arg0 = (UArg)argc;5 `9 b9 P$ q, L" A
taskParams.arg1 = (UArg)argv;( u, c& a% r& P" t2 V
taskParams.stackSize = 0x1000;% ]; c3 O* M! @1 `1 T
Task_create(smain, &taskParams, &eb);
& Q5 m, Q. x2 @8 j5 V4 }: O1 K' g$ J$ F Q; H* L- r
if (Error_check(&eb)) {9 {% w, z; t/ t! D7 A5 u; _1 D
System_abort("main: failed to create application startup thread");: D% a7 H! i* e" P
}
& t! e+ m' G7 A( Z+ |: C ( h: q: y4 N+ e8 Y/ y" I! y# N: c ~
/* start scheduler, this never returns */
+ C( V7 X& ] j9 V; \' e7 Y BIOS_start();
' v% h- u! t- ?( Z3 i
4 l$ h2 h! f& G, B9 ^ /* should never get here */. z3 y- b/ r0 L7 e
Log_print0(Diags_EXIT, "<-- main:");" t6 A+ E# u5 A! J- q% y
return (0);
- p7 D9 G* x9 e k! e2 w}
) V2 Q" D# }- I3 h _3 M* q这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。
1 ?2 u0 v/ V5 t- N3 b2 V: U; }" ~
2 u2 [' x; l, x% `' L, H; c# Y |
|