S32G2 PFE_demo code missing header files

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

S32G2 PFE_demo code missing header files

ソリューションへジャンプ
7,559件の閲覧回数
viswa_kondapall
Contributor IV

Hi,

I am working on PFE, Lwip: PFE-demo code which is M7 RTD-PFE-Demo code. Code not compiling with missing header file. Its NXP SW bundle -- why header files are missing and how to get the files. -- With errors how to build the software.????????????

C:/S32-DS-Workspace/lwip_s32g274a/stacks/tcpip/code/ports/platform/generic/gcc/setting/arch/cc.h:37:10: fatal error: Dev'assert.h: No such file or directory
37 | #include "Devassert.h"
| ^~~~~~~~~~~~~
compilation terminated.
make: *** [stacks/tcpip/lwip/src/netif/ppp/polarssl/subdir.mk:32: stacks/tcpip/lwip/src/netif/ppp/polarssl/arc4.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ../stacks/tcpip/lwip/src/include/lwip/arch.h:48,
from ../stacks/tcpip/lwip/src/include/lwip/debug.h:40,
from ../stacks/tcpip/lwip/src/include/lwip/opt.h:52,
from ../stacks/tcpip/lwip/src/include/netif/ppp/ppp_opts.h:31,
from ../stacks/tcpip/lwip/src/netif/ppp/polarssl/des.c:42:
C:/S32-DS-Workspace/lwip_s32g274a/stacks/tcpip/code/ports/platform/generic/gcc/setting/arch/cc.h:37:10: fatal error: Devassert.h: No such file or directory
37 | #include "Devassert.h"
| ^~~~~~~~~~~~~
In file included from ../stacks/tcpip/lwip/src/include/lwip/arch.h:48,
from ../stacks/tcpip/lwip/src/include/lwip/debug.h:40,
from ../stacks/tcpip/lwip/src/include/lwip/opt.h:52,
from ../stacks/tcpip/lwip/src/include/netif/ppp/ppp_opts.h:31,
from ../stacks/tcpip/lwip/src/netif/ppp/polarssl/md4.c:42:
C:/S32-DS-Workspace/lwip_s32g274a/stacks/tcpip/code/ports/platform/generic/gcc/setting/arch/cc.h:37:10: fatal error: Devassert.h: No such file or directory
37 | #include "Devassert.h"
| ^~~~~~~~~~~~~
In file included from ../stacks/tcpip/lwip/src/include/lwip/arch.h:48,
from ../stacks/tcpip/lwip/src/include/lwip/debug.h:40,
from ../stacks/tcpip/lwip/src/include/lwip/opt.h:52,
from ../stacks/tcpip/lwip/src/include/netif/ppp/ppp_opts.h:31,
from ../stacks/tcpip/lwip/src/netif/ppp/auth.c:71:
C:/S32-DS-Workspace/lwip_s32g274a/stacks/tcpip/code/ports/platform/generic/gcc/setting/arch/cc.h:37:10: fatal error: Devassert.h: No such file or directory
37 | #include "Devassert.h"

------------------------------------------------------------------------------------

arm-none-eabi-gcc "@stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.args" -MMD -MP -MF"stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.d" -MT"stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.o" -o "stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.o" "../stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.c"
arm-none-eabi-gcc "@stacks/tcpip/code/apps/udpecho/udpecho.args" -MMD -MP -MF"stacks/tcpip/code/apps/udpecho/udpecho.d" -MT"stacks/tcpip/code/apps/udpecho/udpecho.o" -o "stacks/tcpip/code/apps/udpecho/udpecho.o" "../stacks/tcpip/code/apps/udpecho/udpecho.c"
../stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.c:72:10: fatal error: Devassert.h: No such file or directory
72 | #include "Devassert.h"
| ^~~~~~~~~~~~~

compilation terminated.
make: *** [stacks/tcpip/code/ports/osif/rtd/subdir.mk:20: stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.o] Error 1
make: *** Waiting for unfinished jobs....
Building file: ../stacks/tcpip/code/apps/tcpecho_raw/tcpecho_raw.c
In file included from ../RTD/include/Gmac_Ip_Device_Registers.h:75,
from ../RTD/include/Gmac_Ip_Types.h:75,
from ../RTD/include/Gmac_Ip.h:82,
from ../stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.c:174:
C:/S32-DS-Workspace/lwip_s32g274a/generate/include/Mcal.h:55:10: fatal error: Compiler.h: No such file or directory
55 | #include "Compiler.h"
| ^~~~~~~~~~~~
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@stacks/tcpip/code/apps/tcpecho_raw/tcpecho_raw.args" -MMD -MP -MF"stacks/tcpip/code/apps/tcpecho_raw/tcpecho_raw.d" -MT"stacks/tcpip/code/apps/tcpecho_raw/tcpecho_raw.o" -o "stacks/tcpip/code/apps/tcpecho_raw/tcpecho_raw.o" "../stacks/tcpip/code/apps/tcpecho_raw/tcpecho_raw.c"
compilation terminated.
make: *** [stacks/tcpip/code/ports/netif/gmacif/rtd/subdir.mk:20: stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.o] Error 1
In file included from ../RTD/include/OsIf.h:45,
from ../stacks/tcpip/code/ports/OS/sys_arch.c:109:
../RTD/include/OsIf_Internal.h:44:10: fatal error: StandardTypes.h: No such file or directory
44 | #include "StandardTypes.h"
| ^~~~~~~~~~~~~~~~~
Finished building: ../stacks/tcpip/lwip/src/api/tcpip.c
compilation terminated.
make: *** [stacks/tcpip/code/ports/OS/subdir.mk:20: stacks/tcpip/code/ports/OS/sys_arch.o] Error 1

Finished building: ../stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.c
Finished building: ../stacks/tcpip/lwip/src/api/sockets.c


Finished building: ../stacks/tcpip/code/apps/udpecho/udpecho.c

Finished building: ../stacks/tcpip/code/apps/tcpecho_raw/tcpecho_raw.c

"make -j8 all" terminated with exit code 2. Build might be incomplete.

23:23:49 Build Failed. 7 errors, 0 warnings. (took 4m:46s.78ms)

//-----------------------------------

../stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.c:75:10: fatal error: S32G274A_SCB.h: No such file or directory
75 | #include "S32G274A_SCB.h"
| ^~~~~~~~~~~~~~~~
In file included from ../RTD/include/Gmac_Ip_Device_Registers.h:75,
from ../RTD/include/Gmac_Ip_Types.h:75,
from ../RTD/include/Gmac_Ip.h:82,
from ../stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.c:174:
C:/S32-DS-Workspace/lwip_s32g274a/generate/include/Mcal.h:55:10: fatal error: Compiler.h: No such file or directory
55 | #include "Compiler.h"
| ^~~~~~~~~~~~
compilation terminated.
compilation terminated.
make: *** [stacks/tcpip/code/ports/osif/rtd/subdir.mk:20: stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [stacks/tcpip/code/ports/netif/gmacif/rtd/subdir.mk:20: stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.o] Error 1
In file included from ../RTD/include/OsIf.h:45,
from ../stacks/tcpip/code/ports/OS/sys_arch.c:109:
../RTD/include/OsIf_Internal.h:44:10: fatal error: StandardTypes.h: No such file or directory
44 | #include "StandardTypes.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [stacks/tcpip/code/ports/OS/subdir.mk:20: stacks/tcpip/code/ports/OS/sys_arch.o] Error 1

タグ(1)
0 件の賞賛
返信
1 解決策
7,496件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @viswa_kondapall,

Hope you are doing well.

You can check installed RTD version and TCP/IP Stack version in S32DS3.4.

Please follow below steps to check version:

1. Click on help -> S32DS Extension and Updates

2. Search RTD on seach bar to check installed version of RTD and same for TCP/IP.

I tried to compile lwip_s32g274a example application from pfe_demo package and it is successfully compiled.

Can you re-install RTD and TCP/IP Stack again as it causes the issue when it is not properly installed.

Please follow "PFE_Ethernet_Quick_Start.pdf" guide for compilation.

Environment used by me:

S32DS 3.4

TCP/IP Stack Version 1.0.3

S32 RTD AUTOSAR 4.4 Version 4.0.0.

FreeRTOS Version 2.0.0 and 4.0.0.

 

Please find attached screenshot for your referrence.

 

Hope this helps.

 

Thanks,

Mayank s Patel

元の投稿で解決策を見る

0 件の賞賛
返信
24 返答(返信)
7,109件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @viswa_kondapall,

Hope you are doing well.

Please share TCP/IP Stack Version, PFE Firmware Version, PFE MCAL Driver Version.

Also, share RTD Version as need to check you are using compatible version or not.

 

Thanks,

Mayank s Patel

0 件の賞賛
返信
7,098件の閲覧回数
viswa_kondapall
Contributor IV

Hi Mayank,

PFE_demo code we took as example. As per the LWIP document we imported into S32DS 3.4.

Autosar: 4.4.0 : PFE: 0.8.3   RTD: 1.0.0.HF01. 

No idea about TCP/IP Stack version. PFE-MCAL drvier- not aware 

Also, share RTD Version as need to check you are using compatible version or not : Not aware of this. 

How to find TCP/IP stack version to find ?? PFE-MCAL driver not added  but using what were came from the project.

PFE-MCAL-Driver:

S32G PFE MCAL 4.4 driver SW32G2XX_MCL01_0.8.2_D2011. 

1. Devassert.h file is missing in the code, so from RTD1.0.0 HF01 base_TS plugins copied and placed in the the project workspace in RTD folder. like this header files are missing while loaded the.

Could please help here to take it forward.

Regards,

Viswanath K

 

 

 

 

タグ(2)
0 件の賞賛
返信
7,497件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @viswa_kondapall,

Hope you are doing well.

You can check installed RTD version and TCP/IP Stack version in S32DS3.4.

Please follow below steps to check version:

1. Click on help -> S32DS Extension and Updates

2. Search RTD on seach bar to check installed version of RTD and same for TCP/IP.

I tried to compile lwip_s32g274a example application from pfe_demo package and it is successfully compiled.

Can you re-install RTD and TCP/IP Stack again as it causes the issue when it is not properly installed.

Please follow "PFE_Ethernet_Quick_Start.pdf" guide for compilation.

Environment used by me:

S32DS 3.4

TCP/IP Stack Version 1.0.3

S32 RTD AUTOSAR 4.4 Version 4.0.0.

FreeRTOS Version 2.0.0 and 4.0.0.

 

Please find attached screenshot for your referrence.

 

Hope this helps.

 

Thanks,

Mayank s Patel

0 件の賞賛
返信
6,902件の閲覧回数
viswa_kondapall
Contributor IV

Hi Mayank,

S32 RTD AUTOSAR 4.4 Version 4.0.0. -- error message is coming as unsuitable package in S32 DS 3.4

reset of the packages were installed.

Regards,

Viswanath K 

0 件の賞賛
返信
7,063件の閲覧回数
viswa_kondapall
Contributor IV

Hi Manyank,

After going through the code its is implemented only for Ping and this is outdated code. But we want to use full TCP/IP stack features and we like to use PFE-Demo with latest RTD and RTOS. how to do for this ?? 

I am doing a trail with S32DS 3.5 with 1.3 TCP/IP stack and latest RTD and RTOS. Project has very few folders. Do we need to add HSE/PFE/RTD files like in PFE_demo code. could you please guide me here. below example code :

viswa_kondapall_0-1681925301480.png

PFE_DEMO code folders:

viswa_kondapall_1-1681925428205.png

 

Regards,

Viswanath K

 

 

タグ(2)
0 件の賞賛
返信
6,931件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @viswa_kondapall,

Sorry for the late.

 

you don't need to add HSE and RTD Files as code is written in the .c files for the same.

You need to follow user guide steps to perform the ping test. "Ping Test" application is for referrence and you can take a referrence for the same for further development.

 

Hope this helps.

 

Thanks,

Mayank s Patel

0 件の賞賛
返信
6,907件の閲覧回数
viswa_kondapall
Contributor IV

Hi mayank,

We followed the document PFE quick start and other document given in the pfe_demo. Ping is not wokring. 

My doubt is do we need to flash SJA1110 bin files in SJA1110 switch ?? for M7 firmware procedure ???

Regards,

Viswanath K

 

 

 

0 件の賞賛
返信
6,891件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @viswa_kondapall,

It depends on which port you are using for the ping.

PFE_MAC0 and PFE_MAC1 is connected through SJA1110 switch and PFE_MAC2 is connected directly.

If you are using PFE_MAC2 then you don't need to flash SJA1110 switch but you can try to flash the switch and then check.

 

Also, there can be possibilities in error. Are you using SD Card for Flashing lwip app? or using S32 Probe?

Also, on a serial terminal error logs comes out from the bootloader. can you share the same error logs here?

0 件の賞賛
返信
6,467件の閲覧回数
viswa_kondapall
Contributor IV

Hi Mayank,

Small doubt on PFE_MAC0/1/2.

We are configuring/connecting PFE_MAC0 to 2.Gbps/ PFE_MAC1 to 1Gbps and PFE_MAC2 to Gbps.

I think PFE_MAC2 is direct connection. but How PFE_MAC0/1 are connected ?

Is it through Serdes and SJA110 switch then which are need to configure. We dont have SJA development package to change the confgiration 1-2.5Gbps and 2-1Gbps.

Serdes need to bin file to load ?? or SJA1110 PFE_MAC0 - 2.5Gbps bin how to get. I mean how to get the bin file or files for the 2 PFE_MAC0/1 is it 2 different files or both configuration in 1 file. ??

Regards,

Viswanath K

0 件の賞賛
返信
6,201件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @viswa_kondapall,

Sorry for the delay.

The SJA1110 SDK is available for S32 DS. you need to acquire the license on Flexera and use it.

Also, the Serdes enable process is available in the "Guide to enable PFE with LWIP based on RTD.pdf".

The PFE_Demo is available on nxp.com, extract it and find the documents in this package.

 

Hope this helps you.

 

Thanks,

Mayank s Patel

0 件の賞賛
返信
6,194件の閲覧回数
viswa_kondapall
Contributor IV

Hi Mayank,

SJA1110 development is not available and we dont have the license. 

Thank you. Serdes yes definitely i will take it from LWIP example. We made build ready but we are facing an issue is PFE firmware is not loading consistently. 

I created another thread but no one is replied to that. PFE flow posted in that thread. 

 https://community.nxp.com/t5/S32G/S32G2-PFE-ETH-Doubts/m-p/1650397#M3192

This is the link. Could you please help in this.

 

タグ(2)
0 件の賞賛
返信
6,188件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @viswa_kondapall,

You can contact your vendor for the SJA1110 package and acquiring a license.

I will look into the ticket of Eth-doubts and get back to you in a ticket response.

 

Thanks,

Mayank s Patel

0 件の賞賛
返信
6,427件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @viswa_kondapall,

PFE_EMAC0 is connected to the Serdes and Serdes is having two ports Serdes0 and Serdes1.

Serdes0 is connected to the PCIE interface and Serdes1 is connected to Eth Phy.

PFE_EMAC1 is directly connected with the Eth Phy and GMAC RGMII port is shared with it.

PFE_EMAC2 is connected with the SJA1110 Switch. Please refer to the attached diagram which shows high-level Ethernet architecture.

By default, SJA1110 is configured at speed 1G FW. If you want to use 2G then need to change the firmware of SJA1110. for that, you need to get information from the vendor.

The Serdes configuration method is available in the BSP User Manual. Please refer to this and also, serdes sample application available in the PFE Packages.

 

NOTE: Attached ethernet architecture image explains very high-level detail. 

 

Hope this helps you.

 

Thanks,

Mayank s Patel

 

0 件の賞賛
返信
6,419件の閲覧回数
viswa_kondapall
Contributor IV

Hi Mayank,

Ethernet Arch not opening -- its very small size may be not fully uploaded.

Regards,

Viswanath K

タグ(2)
0 件の賞賛
返信
6,416件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @viswa_kondapall,

Ethernet_Architecture.jpg

0 件の賞賛
返信
6,407件の閲覧回数
viswa_kondapall
Contributor IV

Hi Mayank,

Please correct me if i am wrong. 

Ethernet enablement document is saying :

1. PFE_MAC2 is directly connected -- 

viswa_kondapall_0-1684235841934.png

 

PFE_MAC0:

My understanding is for PFE_MAC0 needs - serdes and switch for the SGMII mode for 2.Gbps. 

viswa_kondapall_1-1684235908129.png

 

PFE_MAC1:

PFE_MAC1(Connect to AQR113C or AQR107)
SerDes_1 works on SGMII only mode. PFE_MAC1 works on lane1. Set SW8 to On in this mode.
1) Follow the Section 3 load ‘flash_image_1G.bin’ to SJA1110.
2) Connect U86 to your PC using a network cable as shown in Figure 27

viswa_kondapall_2-1684236050627.png

 

Please correct me if i am wrong. Which is one is correct. ??

viswa_kondapall_3-1684236153745.png

 

Regards,

Viswanath K

 

タグ(2)
0 件の賞賛
返信
6,403件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @viswa_kondapall,

Please share the full name of the document to which you are referring and also, share the board which you are using.

I guess some confusion here.

0 件の賞賛
返信
6,399件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @viswa_kondapall,

Sorry for the same. The mistake made by me while drawing the diagram as I was referring to the wrong document. The document you are referring is right.

I will get back to you with an answer to your question.

Thank you for your patience.

 

Thanks,

Mayank s Patel

0 件の賞賛
返信
6,414件の閲覧回数
viswa_kondapall
Contributor IV

Hi,

Thank for the Ethernet PIC. Is it mentioned in any document ?? or drawn to help us ?

regards,

Viswa

 

タグ(2)
0 件の賞賛
返信
6,411件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @viswa_kondapall,

I have drawn this high-level diagram to support you. 

In BSP User Manual and reference Manual data is available of the same.

 

 

Thanks,

Mayank s Patel

0 件の賞賛
返信