Hello! I am using MIFARE Classic example with RC663 reader to understand the functionality. The sample code I have downloaded from NXP site is running fine with FreeRTOS library, but when tried to run the same code using NULL OS is not working.

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

Hello! I am using MIFARE Classic example with RC663 reader to understand the functionality. The sample code I have downloaded from NXP site is running fine with FreeRTOS library, but when tried to run the same code using NULL OS is not working.

ソリューションへジャンプ
3,094件の閲覧回数
sameerhuddar
Contributor I

Can anyone guide or assist regarding using NULL OS for Mifare Classic example?

0 件の賞賛
返信
1 解決策
2,712件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Sameer,

It is not recommended putting printf() function in an interrupt service, because there is very small time slot allowed for an IRQ handler,while printf() consumes too much time and it might cause some issue out of application spec. and as a rule of thumb, we put printf() in main loop instead. so please try remove the DEBUG_PRINTF inside 'RF_IRQ_Handler' function and check if the problem is still there.

Hope that helps,

Have a great day!

Kan

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
2,712件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Sameer,

Please modify ph_NxpBuild_App.h and use #define NXPBUILD__PH_OSAL_NULLOS in stead.

Please kindly refer to the following for more details.

pastedImage_1.png


Wish it helps.

Have a great day,
Kan Li
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
2,712件の閲覧回数
sameerhuddar
Contributor I

Just FYI, my main objective is to use this mifare classic example project as reference for implementing it as small module inside 'main' application that is also doing other tasks like controlling temperature and displaying information etc. but without any rtos. Also,the main application is developed on Uvision Keil and controller is LPC1769.

If you could guide on this, It will be very much helpful.

With Regards,

Sameer

0 件の賞賛
返信
2,712件の閲覧回数
sameerhuddar
Contributor I

Dear Kan Li,

Thank you for your support, I have tried that earlier by modifying ph_NxpBuild_App.h but, while running the application in debug mode,a message "stalled on bus operation" is being generated on bottom left side of the IDE. For debugging, I had written statements through DEBUG_PRINTF inside 'RF_IRQ_Handler' function defined in "ph_Platform.c" file, the interrupt is executing only once and then that message(stalled on bus operation) is generated.

While using FreeRtos, interrupt handler function and discovery loop are running simultaneously. Is it related to memory allocation or related to this statement 'RdLib executed in Executive Loop' as I did not understand this statement?

I hope I have tried to explain the issue clearly.

0 件の賞賛
返信
2,713件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Sameer,

It is not recommended putting printf() function in an interrupt service, because there is very small time slot allowed for an IRQ handler,while printf() consumes too much time and it might cause some issue out of application spec. and as a rule of thumb, we put printf() in main loop instead. so please try remove the DEBUG_PRINTF inside 'RF_IRQ_Handler' function and check if the problem is still there.

Hope that helps,

Have a great day!

Kan

0 件の賞賛
返信
2,712件の閲覧回数
sameerhuddar
Contributor I

Hi Kan_Li,

Yes, as suggested I had already removed it and in the mean time was also able to run the same application as independent module without FreeRtos and Null OS API.

Thanks and Regards,

Sameer Huddar

0 件の賞賛
返信