PN7462 Using Virtual Comm port API in Non-Rtos Firmware

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

PN7462 Using Virtual Comm port API in Non-Rtos Firmware

852 Views
EE_Ark
Contributor II

Hello,

 

I want to use Virtual Comm port functionality in my non-rtos firmware. Is this possible?

There is a sample project named 'PN7462AU_ex_phExVCom' but its RTOS based.

 

Thanks.

 

0 Kudos
4 Replies

835 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi EE:

Please go to example's properties->settings->preprocessor 

change PH_OSAL_FREERTOS to PH_OSAL_NULLOS

danielchen_0-1648099703111.png

 

Regards

Daniel

0 Kudos

806 Views
EE_Ark
Contributor II

After this change i'm getting lots of compilation errors :

 

c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_CM4.o: in function `phOsal_InitTickTimer':
C:/Users/test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM4.c:78: multiple definition of `phOsal_InitTickTimer'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:74: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_CM4.o: in function `phOsal_StartTickTimer':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM4.c:116: multiple definition of `phOsal_StartTickTimer'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:112: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_CM4.o: in function `phOsal_StopTickTimer':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM4.c:127: multiple definition of `phOsal_StopTickTimer'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:123: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_CM4.o: in function `phOsal_EnterCriticalSection':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM4.c:135: multiple definition of `phOsal_EnterCriticalSection'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:131: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_CM4.o: in function `phOsal_ExitCriticalSection':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM4.c:140: multiple definition of `phOsal_ExitCriticalSection'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:136: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_CM4.o: in function `phOsal_Sleep':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM4.c:145: multiple definition of `phOsal_Sleep'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:141: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_CM4.o: in function `phOsal_WakeUp':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM4.c:150: multiple definition of `phOsal_WakeUp'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:146: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_CM4.o: in function `SysTick_Handler':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM4.c:155: multiple definition of `SysTick_Handler'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:150: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.o: in function `phOsal_InitTickTimer':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.c:61: multiple definition of `phOsal_InitTickTimer'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:74: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.o: in function `phOsal_StartTickTimer':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.c:66: multiple definition of `phOsal_StartTickTimer'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:112: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.o: in function `phOsal_StopTickTimer':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.c:71: multiple definition of `phOsal_StopTickTimer'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:123: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.o: in function `phOsal_EnterCriticalSection':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.c:75: multiple definition of `phOsal_EnterCriticalSection'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:131: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.o: in function `phOsal_ExitCriticalSection':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.c:80: multiple definition of `phOsal_ExitCriticalSection'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:136: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.o: in function `phOsal_Sleep':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.c:85: multiple definition of `phOsal_Sleep'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:141: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.o: in function `phOsal_WakeUp':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.c:90: multiple definition of `phOsal_WakeUp'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:146: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./PN7462AU/phRtos/src/phRtos_NoRtos.o: in function `SysTick_Handler':
C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/Platform/PN7462AU/phRtos/src/phRtos_NoRtos.c:298: multiple definition of `SysTick_Handler'; ./phOsal/src/NullOs/portable/phOsal_Port_CM3.o:C:/Users/Test/Desktop/NxpNfcRdLib_PN7462_v06.10.00_Pub/RTOS/phOsal/src/NullOs/portable/phOsal_Port_CM3.c:150: first defined here
c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp\libcr_semihost.a(_cr__main.o): in function `__main':
_cr__main.c:(.text.__main+0x6): undefined reference to `main'

Tags (1)
0 Kudos

787 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi EE_Ark:

This demo is wrapped with PHFL_HALAPI_WITH_RTOS.  Sorry not support NON-RTOS.

Regards

Daniel

0 Kudos

762 Views
EE_Ark
Contributor II

Hi I just modified and made it work without RTOS. 

Problem solved.

Thanks.