|
Int main(Int argc, Char* argv[])! C; x; f5 S8 W: P; G9 H* w
{# H: H3 A) ^4 g9 J! I% D# E
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
' L7 w9 M1 e3 |8 q) F9 ^
0 A% \7 t: n2 e* h Error_Block eb;/ Y3 G. D0 w- Z! L. i- M7 n; {
Task_Params taskParams;7 `' K3 b! r- c& _; Q% P& N
; W; o# k8 ^$ }$ }9 `% d Log_print0(Diags_ENTRY, "--> main:");
+ E' {) ~' e, v' s0 l
/ e/ h; \; v+ @/ l7 l: W- K7 \" R; J /* must initialize the error block before using it */
0 ?# I( }2 B. w Error_init(&eb);# l6 J" J! \' ~% l- K
j$ Z; a8 l3 J" T. A /* create main thread (interrupts not enabled in main on BIOS) */
0 C$ Z4 B; X& b Task_Params_init(&taskParams);7 j$ [7 d3 I# N
taskParams.instance->name = "smain";6 [3 {& v. z7 r1 H, T) ^
taskParams.arg0 = (UArg)argc;% [4 Z0 C) B; y, d# B
taskParams.arg1 = (UArg)argv;! ~' P, Z5 D5 `
taskParams.stackSize = 0x1000;( \% S. Y* J+ ?0 S4 S3 D$ B! j
Task_create(smain, &taskParams, &eb);6 ?1 |" ^9 A3 K% O6 X1 Q
: n! H# w0 e! c: U
if (Error_check(&eb)) {) x0 V) j# H# ~
System_abort("main: failed to create application startup thread");2 A: K- M6 a d
}
# z+ P: U: r3 X- B% z ; l1 A4 O( v* A7 ?8 d
/* start scheduler, this never returns */( r8 j7 R9 H' s8 J
BIOS_start();7 S1 l$ y& e+ j) r) p# N
/ J$ ?1 ~* V% a9 w% a /* should never get here */
9 y. ^' g: f& ?$ c9 P8 ~ Log_print0(Diags_EXIT, "<-- main:");
+ G( o7 B# y6 | return (0);
2 A, n! o; C* Z/ p# A% P& w}& y4 B, h" ~9 J# i! \: J: j* W A
这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。: M) A. _- h$ W: F; C8 `
# c# x1 Z' C, {
|
|