|
Int main(Int argc, Char* argv[])
+ k' d' h0 y1 j9 W' @/ `{- g( w8 A* { G5 d. h
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;; S' e* X# s; Y4 d! ?5 @
7 b/ k) ~7 @0 {! x
Error_Block eb; Z) f5 N8 b% j. t
Task_Params taskParams;
5 m, N% y, ]4 y9 Q
* u B, X7 G/ D# B3 a* z5 X5 f Log_print0(Diags_ENTRY, "--> main:");
2 j; x" u/ ?+ e6 ~' s
8 y' Y/ a% U N /* must initialize the error block before using it */
/ g2 B% j8 g: C* { Error_init(&eb);
. K( V, W3 s. N+ i
" {' K4 ?* V: l( P9 B /* create main thread (interrupts not enabled in main on BIOS) */7 C: |1 f( ]- g9 X+ S. y7 f0 p
Task_Params_init(&taskParams);
7 p' f) V2 Y6 D9 z' {) U% d1 d taskParams.instance->name = "smain";
6 d& J: }& Q: m2 K$ _6 h+ z% s taskParams.arg0 = (UArg)argc;5 a1 \+ @% R8 I8 g: Y9 {/ _% Q
taskParams.arg1 = (UArg)argv;
8 a% Z& l) H3 K0 J taskParams.stackSize = 0x1000;
% X; Q2 X, {0 m9 |) |1 o3 J+ M Task_create(smain, &taskParams, &eb);7 c- h6 n$ h# b+ K- |6 \- z
. r1 Y# G9 H6 J/ U" f; e l; K
if (Error_check(&eb)) {
r, z. E' G0 ^: c) I$ N System_abort("main: failed to create application startup thread");0 X9 |: O' D. J; z H% E# O% {
}8 L* F$ |$ e2 p& b- T! L: a& {' Q+ Z2 G
! N3 q2 R4 U# d$ H' o7 A% x! O. S /* start scheduler, this never returns */$ J, d5 R, o& b
BIOS_start();
3 w' k8 z9 W& \7 e
. r, o5 x( F, E& L% E$ I /* should never get here */( o3 F9 T" z9 s3 K- c
Log_print0(Diags_EXIT, "<-- main:");
$ T& T2 j# R; n* ~3 l' s return (0);2 ]. R7 v+ r& e, n I' w, K
}
6 ^; r/ C7 h# ^) w: o这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。% N4 ^8 v! X( _4 f
$ P' V9 t5 E5 T$ w8 C. }' Y |
|