BasicDiscoveryLoop Hardfault error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

BasicDiscoveryLoop Hardfault error

1,146件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by evandi on Tue Apr 12 10:13:21 MST 2016
Hi, this is my first time working with LPCXpresso/NXP chips so please bear with me.

I have a PN5180 dev kit (OM25180FDK) and I'm trying to get it to run the BasicDiscoveryLoop example program given in the starter guide. The program runs fine until it gets to the place where it is waiting for interrupts, at which point It encounters a hard fault.

Stepping through with the debugger allowed me to track the issue down to this line:

/*wait for IRQ pin event or Abort event*/
statusTmp = phOsal_Event_WaitAny(E_PH_OSAL_EVT_RF | E_PH_OSAL_EVT_ABORT, PH_MAX_DELAY, &tReceivedEvents);


which is located in phhalHw_Pn5180_Wait.c.

Simply running the program (debug mode) also gives me an error message:

No source available for "__write() at 0xda9a"


How do I go about resolving this issue?
ラベル(1)
タグ(1)
0 件の賞賛
返信
2 返答(返信)

916件の閲覧回数
lpcware
NXP Employee
NXP Employee
bump
0 件の賞賛
返信

916件の閲覧回数
isaacavila
NXP Employee
NXP Employee

Hello,

Were you able to solve your problem? If not, make sure that HAL for PN5180 is selected, please check ph_NxpBuild_Lpc.h file located at NxpRdLib and define NXPBUILD__PHHAL_HW_PN5180 as follows:

NxpRdLib.jpg

Recompile the library and example and it should be working!

Hope this helps!

Regards,

Isaac

0 件の賞賛
返信