|
|
Int main(Int argc, Char* argv[])
4 }% W6 b% [* ~( K{" o% v0 M1 F6 Z# b$ v
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
6 V4 D3 ~, U( v! X: b
! y8 N1 v) ?0 J Error_Block eb;) Q' Y9 c; l/ F+ P- ~3 B, q: w
Task_Params taskParams;, V+ G3 q W: M$ C! k5 y
6 h, `) D7 P6 P5 i# I Log_print0(Diags_ENTRY, "--> main:");
( M. E' m: c% C' V$ {, N% {# A* }8 G( D4 i9 [
/* must initialize the error block before using it */4 v1 z: E, K/ _) T
Error_init(&eb);
: s1 X8 i% b1 K$ ^
; O' {8 S: E1 A( T /* create main thread (interrupts not enabled in main on BIOS) */! j! l6 O* K* d9 y: Q! c
Task_Params_init(&taskParams);* ~, M8 T/ l9 [9 y/ b+ e9 I
taskParams.instance->name = "smain";
9 b- [+ n( ?% A2 n5 w h taskParams.arg0 = (UArg)argc;
7 B9 g8 p" ^ y" l- m6 l taskParams.arg1 = (UArg)argv;
; P( ~$ B: U) W* f, F) [ D% e taskParams.stackSize = 0x1000;+ \! G2 B0 ?; K3 _% B& r2 L8 U# @
Task_create(smain, &taskParams, &eb);7 H- {, u8 m0 k. U: H0 F7 O5 F
+ S" F! k3 U( Y& C3 Z
if (Error_check(&eb)) {% J5 l( |$ j+ p0 y) W$ \3 N# r
System_abort("main: failed to create application startup thread");- E. i/ `6 @7 y1 r
}
3 c D% E; N7 k- O" H, l( L
' X& y9 R9 E; i& x$ ^ /* start scheduler, this never returns */
* U" B- y, W8 z X) l$ P, D1 i) X- w BIOS_start();
L, ?3 X+ K( J) d
6 s7 }/ B/ C) s9 e$ X) }; ]/ j /* should never get here */( r+ o: [) {9 R& n' @
Log_print0(Diags_EXIT, "<-- main:");, B0 g! W7 k- H
return (0);
7 o n4 o+ \3 A7 B" s+ b- x2 Z}
: M- h4 e- s" l- g ~这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。
# u) J$ f4 e8 I2 K( E7 [' d0 g$ s% }
8 e& E& a$ g5 g) r3 S |
|