Hello ,
I have a problem with running Nfcrdlib_NFCForum example. I am using PN7462 board (this kit: https://www.digikey.com/catalog/en/partgroup/pn7360-pn7362-pn7462-nfc-controller-development-kit/602...)
When I start debugging this example I get this:
phFlashBoot_HardFault_Handler() at phFlashBoot_GCC.c:107 0x203160
Using Step Into and Step Over arrows I was able to come to this place (tasks.c) until I get harfault handler interrupt:
/* Avoid dependency on memset() if it is not required. */
#if( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) || ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) )
{
/* Fill the stack with a known value to assist debugging. */
( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
}
#endif /* ( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) || ( ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) ) ) */
I am using:
PN7462AU FW & SW Examples Full Version - v05_02_01
MCUXpresso IDE v10.0.2 [Build 411] [2017-07-11]
Best regards,
Gytis
已解决! 转到解答。
Hello,
The first time I ran the NfcrdlibEx3_NFCForum project for PN7462, it went into the phFlashBoot_HardFault_Handler(void) when the scheduler started because, as default, SNEP_CLIENT and SNEP_SERVER are defined in NfcrdlibEx3_NFCForum.h
Please go to NfcrdlibEx3_NFCForum.h and only define the SNEP mode as CLIENT or SERVER, but not both.
/* Enable SNEP client PUT operation in this example. */
#define SNEP_CLIENT
/* Enable SNEP server to receive a SNEP PUT message in this example. */
#define SNEP_SERVER
I hope this helps!
Regards,
Ivan.
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello,
The first time I ran the NfcrdlibEx3_NFCForum project for PN7462, it went into the phFlashBoot_HardFault_Handler(void) when the scheduler started because, as default, SNEP_CLIENT and SNEP_SERVER are defined in NfcrdlibEx3_NFCForum.h
Please go to NfcrdlibEx3_NFCForum.h and only define the SNEP mode as CLIENT or SERVER, but not both.
/* Enable SNEP client PUT operation in this example. */
#define SNEP_CLIENT
/* Enable SNEP server to receive a SNEP PUT message in this example. */
#define SNEP_SERVER
I hope this helps!
Regards,
Ivan.
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------