NfcrdlibEx3_NFCForum HardFault_Handler()

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

NfcrdlibEx3_NFCForum HardFault_Handler()

ソリューションへジャンプ
2,067件の閲覧回数
gytiskazlauskas
Contributor II

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

1 解決策
1,570件の閲覧回数
IvanRuiz
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

5 返答(返信)
1,570件の閲覧回数
gytiskazlauskas
Contributor II

Thank you it helped!

1,570件の閲覧回数
IvanRuiz
NXP Employee
NXP Employee

Hello,

I am glad I could help you!

Regards,

Ivan.

0 件の賞賛
返信
1,571件の閲覧回数
IvanRuiz
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

1,570件の閲覧回数
michaelneurohr
NXP Employee
NXP Employee

Hi,

with the latest release of NFC Reader Library version 5.07, both, SNEP Server and SNEP Client can be enabled at the same time. The issue has been resolved.

Regards,

Michael

0 件の賞賛
返信
1,570件の閲覧回数
IvanRuiz
NXP Employee
NXP Employee

Hi,

Thank you very much for the information, Michael, it's very good to know.

Best regards,

Ivan.

0 件の賞賛
返信