|
Int main(Int argc, Char* argv[])! t0 }" ?5 M* `5 `4 } }* c( b6 Y% y
{( g9 M8 c7 g. {
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;" Q0 c+ _' B0 B" `
$ o# f3 {# h# l4 {- G) T/ B
Error_Block eb;' G/ |0 _4 u+ l7 I, N$ \5 ]# m D
Task_Params taskParams;
+ ?* N6 m! o8 O* z& w9 a
1 J }1 I+ G9 i. q# L. n: V Log_print0(Diags_ENTRY, "--> main:");5 O. S5 `% g, G: a9 A
; _8 ~) `: e i) W( P, ^8 Y* b& y1 k /* must initialize the error block before using it */0 ]% y |$ b* o9 C
Error_init(&eb);
5 N! v9 o S+ m0 ` n1 b& h. M8 r% N* R! R0 k' k/ j+ n' |; [- h, f
/* create main thread (interrupts not enabled in main on BIOS) */! `8 H5 c- W: w( r
Task_Params_init(&taskParams);
) L, D! D& r) _3 D" I taskParams.instance->name = "smain";
% D& q! [9 [" U4 ~ taskParams.arg0 = (UArg)argc;, b) Q# x; O1 _, \
taskParams.arg1 = (UArg)argv;5 [$ G$ B6 K+ M* s' k! d i
taskParams.stackSize = 0x1000;% }- }8 `: R0 Y* P* s6 T
Task_create(smain, &taskParams, &eb);$ _; P7 ~: L$ Q
" Y& Q8 y8 ]! V) F if (Error_check(&eb)) {6 k# X" u8 G1 l
System_abort("main: failed to create application startup thread");9 ~6 o: d# N$ c3 _: X: Q- Y0 {
}2 T; R2 K; ~9 Y$ C$ b; D3 M2 i, C
, Y5 z: ^- A8 j$ s% y2 ?+ z /* start scheduler, this never returns */
% G. s. b2 `- @; c! i7 g0 ] BIOS_start();
; Q' a& C5 X8 G" j6 c# U! @8 `4 f3 P: Y2 _1 p
/* should never get here */- [3 V; X3 P. B7 x/ X7 O' g# c7 f
Log_print0(Diags_EXIT, "<-- main:");4 p b4 A5 I0 ~; X" b
return (0);, L" e9 i3 \6 ^- O" n v
}
$ \! }: c' J! @7 x/ w这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。7 e; g. h& Y/ {0 K% s3 L- t/ {
: U9 ]" G( \# y
|
|