Hello.
I would like to use NXP's PN7362 chip. I downloaded PN7462AU FW and SW Examples Full Version - v06.10.00 from NXP's website.
You can check the ExamplePN7462.eww IAR project by opening the ExamplePN7462AU. The project was written in old IAR, so I opened it with the latest IAR 9.30.1. When running a project with IAR 9.30.1, the following error appears. Error[467] : Cannot handle absolute value.
If you check the error, the error is detected in the part of the phhalSysSer_IAR.s file that is set to BL. An error was also found in the heap_2.c file of FreeRTOS, so I replaced the heap_2.c file, but the error is the same.
How can I resolve this error?
I ask for your help me.
Solved! Go to Solution.
Hi @JY2
I would suggest you use the latest read library. v7.07. The recommended IDE is MCUXpresso.
For your issue, you can try the following step,
From
<name>$PROJ_DIR$\..\..\RTOS\FreeRTOS\heap_2.c</name>
To <name>$PROJ_DIR$\..\..\RTOS\FreeRTOS\portable\MemMang\heap_3.c</name>
Save .icf file in project location.
Change Debugger Run To Option to main as shown below
JLink Rest option to be set to Normal as below
If this not work, I would suggest you use MCUXpresso IDE.
Regards
Daniel
Hi @JY2
I would suggest you use the latest read library. v7.07. The recommended IDE is MCUXpresso.
For your issue, you can try the following step,
From
<name>$PROJ_DIR$\..\..\RTOS\FreeRTOS\heap_2.c</name>
To <name>$PROJ_DIR$\..\..\RTOS\FreeRTOS\portable\MemMang\heap_3.c</name>
Save .icf file in project location.
Change Debugger Run To Option to main as shown below
JLink Rest option to be set to Normal as below
If this not work, I would suggest you use MCUXpresso IDE.
Regards
Daniel
Hello, @danielchen .
Thanks for your answer.
However, it does not build.
An error occurs in parts such as BLphSysSv_OTP_SetSecrowLock in the phhalSysSer_IAR.s file. Can't you solve this?
The same error occurs when replacing with the 7.07 version of phhalSysSer_IAR.s file. I would like to build a phEXMain project.
If it's impossible, I think I should use MCUXpresso.
Additionally, if I use MCUXpresso, I can't check the settings of the project on the pin settings page.
Can't you check it out?
The build is normal, but the pin setup page displays the error "The selected project is not based on MCUXpresso SDK". Is there any way to get a normal SDK? Please check.
Thank you.
Hi @JY2
I would suggest you use MCUXpresso.
For PN7462 compile issue , please refer to below link
Regards
Daniel
HI, @danielchen
Thank you for your reply.
I proceeded with the link you sent me.
Compiling is normal, but I can't check the pin setting of the MCU as shown in the picture below.
Can't you check the contents of the pin setting of the MCU?
I want to check how you set it up in the SDK provided.
I would appreciate it if you could check and change the PIN settings on the development board.
Thank you.
Hi @JY2 :
Currently the config tool supports i.MX RT, Kinetis, LPC, PN76. unfortunately not support PN74.
For PN74, you need to manually config.
Regards
Daniel
Hi, @danielchen !
Thank you for your reply.
Check page 79 of the UM10883 document as follows.
By setting precompile directive “#PHFL_HALAPI_WITH_RTOS” or “#PHFL_HALAPI_NO_RTOS” the mode of the configuration is specified.
To build example in one or another mode, comment/uncomment proper directive in the “APP_NxpBuild.h” file.
Is this the right information?
The phExMain_NoRTOS file does not seem to work properly even if you modify the mentioned part.
Please check which part of #define should be changed to operate as NO_RTOS.
Thank you.
Hi @JY2
From what I can see from the source code , the preprocessor defined symbols are "PH_OSAL_FREERTOS" and "PH_OSAL_NULLOS" (phOsal_Config.h)
But I am not sure that every demo can work with both FreeRTOS and NULLOS. maybe some demos can.
Regards
Daniel
Hi, @danielchen
I use the 7.07 version of the source code that you told me.
I changed "PH_OSAL_FREERTOS" to "PH_OSAL_NULLOS" in the project-Properties-MCUC Compiler-Preprocessor as shown in the screen you captured. However, the source code is not built.
The 298th line of the file "phRtos_NoRtos.c"
"__phUser_EnterCriticalSection();" C:/workspace/NXP/SW368332/Platform/PN7462AU/phRtos/src/phRtos_NoRtos.c:298: multiple definition of `SysTick_Handler'; ./phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.o:C:/workspace/NXP/SW368332/RTOS/phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.An error message such as c:156: first defined here is output.
It may not work normally if I modify it to my mind. Does this SDK not support NO_RTOS mode?
I'd appreciate it if you could let me know if there's any additional work.
I look forward to hearing from you.
Thank you.
Yes, I can reproduce your issue on my side, I will check it and update you later.
Regards
Daniel
Hi @JY2
May I know why you need this demo with NULLOS, because it does not make sense with NULLOS , this demo involved USB task, clif task, CT task and maybe other tasks.
Regards
Daniel
Hi, @danielchen .
The reason why I want NULLOS is because the UM10883.pdf document says that it also supports without RTOS.
(
UM10883.pdf
9.2 PN7462AU_ex_phExMain – (CLIF + CTIF functionality)
9.2.3 FreeRTOS usage in this example
Example can be built in two configuration modes, with FreeRTOS and without FreeRTOS support.
By setting precompile directive “#PHFL_HALAPI_WITH_RTOS” or “#PHFL_HALAPI_NO_RTOS” the mode of the configuration is specified.
)
Also, it's because I only worked on projects that are not based on RTOS.
I understood that the examples provided by NXP also support because they are divided into #define RTOS and NULLOS.
Should I understand that the project is configured based on RTOS and that only a few support NULLOS?
Thank you for your valuable time.
Regards.
Yes.
This demo is RTOS based, you can see this info from readme file.
I tried Ex6_LPCD demo , it can build with NULL OS.
Hope this helps.
Regards
Daniel
Thank you for your kind consideration.
I look forward to hearing from you soon.
Regards
JY.