|
Int main(Int argc, Char* argv[])
- E4 v0 E' {! w# B6 h{
( ~+ G& K( [( o EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
, W0 {: A. P; i% O: r, p9 u2 ^9 j / r+ F6 |3 e! Y9 h
Error_Block eb;
3 t% F8 U, g* h% }- y& m7 I* d1 \ Task_Params taskParams;
, e2 c- u. d+ z. `4 @6 f4 u* t
( Q0 i, I" e! b9 m& a( n% F Log_print0(Diags_ENTRY, "--> main:");. q7 I5 ~6 _, p. e
; ?9 g# l! R! m L; h /* must initialize the error block before using it */
( `2 H2 J% i- \0 @7 D Error_init(&eb);* G0 [' H! L7 I/ f( q
- X, n; `1 v' t* n2 k
/* create main thread (interrupts not enabled in main on BIOS) */
6 W/ W; @' `4 P Task_Params_init(&taskParams);
0 z: ]1 K. H% q; {, p6 ^ taskParams.instance->name = "smain";! |& F7 e; `& x1 V9 T* ^7 r
taskParams.arg0 = (UArg)argc;
7 e, d2 Y( D2 D& e) T4 I taskParams.arg1 = (UArg)argv;1 V: D: o3 e9 `; |
taskParams.stackSize = 0x1000;7 p+ e c: X+ f8 i6 R' J* e
Task_create(smain, &taskParams, &eb);
0 h. X, D1 y" k# {3 C( l
% b7 |( o8 S( [. k+ \- p% H if (Error_check(&eb)) {) P& \ d b; u9 M4 Y
System_abort("main: failed to create application startup thread");! U5 n% ^$ l3 D
}
9 t3 c( X% x6 v2 H5 H
3 d% ?7 Q8 ?2 I L% y) D) Q /* start scheduler, this never returns */+ E: |8 Q' ^' i+ {5 C5 ^
BIOS_start();# Q. g( ^5 G& D: l! N
* U8 E5 y: `6 B# n /* should never get here */
6 J- V" M) J+ P( E; z1 Z Log_print0(Diags_EXIT, "<-- main:");
- q# t8 C( {' p& J- V) Y return (0);$ G* m+ P" d6 a: y5 L8 u
}3 c# F6 G( n! h
这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。
+ s( x. |( P2 x
2 I, q# _1 ^4 }+ ~' R9 c; m |
|