|
|
您好,最近我在把创龙的基本startware的UPP移植到基于syslink下面,在进行UPP初始化时,新建HWI中断,但是当运行到Hwi_create()函数时,DSP那端总是跑飞了,Hwi创建程序片段如下:
) b# u& t. l! w2 `! X$ I/ Bvoid UPP_new(void)
g F( n, n# M& l& \{ 9 t; m1 s- u( B/ o
PSCInit();' t1 T+ r/ P1 z8 j
( G2 Z# [. v; I6 O: m UPPPinMuxSetup();5 c% T8 S: C! s
% c/ g2 w: G5 w7 Y9 c1 ~& S UPPInit();
! w4 L& F' f, _ Z) }4 A7 r/ D6 X) g
UPPInterruptInit();
( A# U8 m- P" ?7 N
! f5 b% l& x# f; v$ U( q) w2 f UPPEnable();7 N0 r: Y( P: a" }2 H
, t' g9 a' N3 \2 l) O, t$ O Hwi_Handle hwi;
" I1 N% @; O8 ]5 h2 N1 Y Hwi_Params hwiParams; ) l3 m* q. V- `3 A
Error_Block eb;
$ k. m4 R ~3 a, ^' x
; o, x! A, {2 ] Error_init(&eb);4 _ [2 ~% E/ r/ Z" [
. C: x) _1 _6 ]0 D
Hwi_Params_init(&hwiParams); $ V: r: y0 N- L/ k3 \% S6 S
hwiParams.arg = 0;
/ \9 p* F p* ] hwiParams.maskSetting = Hwi_MaskingOption_SELF;0 Q" h- y" R' N" F% n
hwiParams.enableInt = TRUE;
* ~7 P3 i. g. _7 E. Z* U) Q k. s hwiParams.eventId = SYS_INT_UPP_INT;" j9 j% ^9 U9 j9 ], A3 p s( n
hwi = Hwi_create(C674X_MASK_INT5, UPPIsr, &hwiParams, &eb);' c9 S7 w8 B4 O
/ ~4 G4 o+ w# }( I P/ n7 T; F6 ] if (hwi == NULL)
( B' \1 i0 D* \9 ~- a8 y System_abort("Hwi create failed");
) Y2 ~8 j& s8 m, d s; Y}6 V2 q" F4 n6 W3 s
* |# Z7 g/ s9 T7 b% h每次运行到 hwi = Hwi_create(C674X_MASK_INT5, UPPIsr, &hwiParams, &eb);时程序就飞了,实在找不到原因了,刚接触BIOS的菜鸟求助各路大神们。。。
1 G0 {% p8 {. h! c
1 L# j ~+ S: G6 C5 b2 [% z V3 R2 O- L8 @( D6 m
|
|