|
Int main(Int argc, Char* argv[])
8 e4 d+ t7 W/ i" _6 f0 v{. i) | F6 Y( M
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
+ a) Z' _9 j( w( N3 w 8 c. ~0 c, m& K& r% e( w
Error_Block eb;
3 a0 |' M( L+ K4 ~! w/ ~0 U Task_Params taskParams;1 g6 e- L, N/ s5 ]; ]& a
" E2 M- o4 o" @
Log_print0(Diags_ENTRY, "--> main:");
' \$ @) l6 o% x+ H P* e& u( }4 i9 {1 ^ P: `) C& M# G
/* must initialize the error block before using it */
' [0 e3 l, k* ?9 r7 M5 j Error_init(&eb);
1 I! c$ j a; R/ q9 s; q3 y
- d% m, L1 m5 M /* create main thread (interrupts not enabled in main on BIOS) */* f$ }6 T. y9 P- f) P) W
Task_Params_init(&taskParams);
$ @' k' `9 A2 P; C taskParams.instance->name = "smain";: @. ?. G! B ~: i8 C5 [+ b9 I
taskParams.arg0 = (UArg)argc;, h2 N' k1 n0 n# h& G! C4 d
taskParams.arg1 = (UArg)argv;
' T# I' [2 F' i; e: F% x taskParams.stackSize = 0x1000;
3 a9 E7 V5 c/ G Task_create(smain, &taskParams, &eb);' {8 T+ v) V/ v6 q9 ~& G% W# J
) v- f) n( q; \( b# K if (Error_check(&eb)) {
" P) D, ?+ G7 W+ s8 f System_abort("main: failed to create application startup thread");
& U+ ]' X" g% E+ o1 ]. h6 m* C L# n }
8 t A- b$ S6 U& o' W# e2 G ( J4 U6 k8 a/ | {
/* start scheduler, this never returns */& P9 [: Y- \9 `' I7 ]' H8 U
BIOS_start();
B' n6 [9 J7 ~0 f; i; o/ O6 c
% W1 G4 B% R0 Y /* should never get here */
! m/ I& R/ O5 e/ U- C9 e0 J Log_print0(Diags_EXIT, "<-- main:");
/ l: K8 G f# J6 h: O( ^) S+ z. g6 s0 s return (0);( i: j& d+ g X6 O5 j: i
}
3 f1 Z% J1 f9 m- [$ |5 D3 |# q这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。0 \8 ?* V% Z6 m* q
# O+ w7 _* B) m' L/ o/ o
|
|