BasicDiscoveryLoop Hardfault error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BasicDiscoveryLoop Hardfault error

564 Views
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?
Labels (1)
Tags (1)
0 Kudos
2 Replies

334 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos

334 Views
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 Kudos