lwip_s32k344 example failed to reset on S32K3X4EVB-T172 Evaluation Board

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

lwip_s32k344 example failed to reset on S32K3X4EVB-T172 Evaluation Board

Jump to solution
1,844 Views
cranes
Contributor III

Hello,

I am using lwip_s32k344 tcpip stack example on S32K344 evaluation board. The program gets stuck in below do{} while loop in the function of Gmac_Ip_InitDMA() in Gmac_Ip.c. It looks that after the software reset is enabled, the reset operation can't complete. Do I need to do anything on the hardware? Is there any document about what this example does and how to use this example?

By the way, this example is from SW32K3_TCPIP_RTM_1_0_1_HF1_D2209_updatesite.zip and SW32K3_FreeRTOS_10_4_6_UOS_2_0_1_DS_updatesite_D2209.zip.

Thanks!

Crane

/* Provide a software reset. */
Base->DMA_MODE |= GMAC_DMA_MODE_SWR_MASK;

GMAC_StartTimeOut(&StartTime, &ElapsedTime, &TimeoutTicks, GMAC_TIMEOUT_VALUE_US);
do
{
if ((Base->DMA_MODE & GMAC_DMA_MODE_SWR_MASK) == 0U)
{
Status = GMAC_STATUS_SUCCESS;
break;
}
}
while (!GMAC_TimeoutExpired(&StartTime, &ElapsedTime, TimeoutTicks));

0 Kudos
Reply
1 Solution
1,561 Views
CongDang
NXP Employee
NXP Employee

I'm sure the information about hardware supporting (type of board) is reliable:

CongDang_0-1706528717633.png

while you won't be able to find S32K3X4EVB-T172 Evaluation Board is supported by  SW32K3_TCPIP_RTM_1_0_1_HF1.

About installing package, I think I'm in the same situation as you where what's written in the Release Notes makes us confused. Let me clarify further. Each TCPIP package will need to be installed along with package(s) of RTD . With S32K3 TCPIP_STACK 1.0.3, it supports both S32K3XX and S32K396. However with RTD, we have 2 separate packages to support S32K3XX and S32K396. So in your case, when you install S32K3 TCPIP_STACK 1.0.3, it cannot find the package of S32K396 and gives an error.

Please tell me know your current issue. Have you followed the instructions in https://community.nxp.com/t5/S32K/tcpip-1-0-3-can-t-be-installed/m-p/1686564#M25052 and failed? Or have you not found SW32K3 Real Time Drivers 4.4_R21-11 Version 3.0.0 package?

View solution in original post

0 Kudos
Reply
8 Replies
1,742 Views
CongDang
NXP Employee
NXP Employee

Hi,

With version TCPIP_101_HF1 we do not yet support the S32K3X4EVB-T172 board. Please use version S32K3 TCPIP_STACK 1.0.3 for this board version.

0 Kudos
Reply
1,676 Views
cranes
Contributor III

Hello,

So, you mean the information at this link https://www.nxp.com/document/guide/getting-started-with-aws-libraries-for-s32k3:GS-AWS-LIBRARIES-S32... is already outdated, right?

For S32K3 TCPIP_STACK 1.0.3, in the release notes, it requires S32K3 RTD RTM 3.0.0 and S32K3 FreeRTOS 10.5.1 UOS 3.1.0. 

But when installing TCPIP stack, it can't be completed.

cranes_1-1705789272702.png

The details is as below:

Cannot complete the install because one or more required items could not be found.
Software being installed: TCPIP_STACK S32K3 1.0.3.202306190957 (com.nxp.TCPIP_STACK.S32K3.root.1.0.3.feature.feature.group 1.0.3.202306190957)
Missing requirement: RTD S32K396 3.0.0.202303311831 (com.nxp.RTD.S32K396.root.feature.feature.group 3.0.0.202303311831) requires 'org.eclipse.equinox.p2.iu; com.nxp.s32ds.s32k396.dev.feature.feature.group 1.0.0' but it could not be found
Cannot satisfy dependency:
From: TCPIP_STACK S32K3 1.0.3.202306190957 (com.nxp.TCPIP_STACK.S32K3.root.1.0.3.feature.feature.group 1.0.3.202306190957)
To: org.eclipse.equinox.p2.iu; com.nxp.RTD.S32K396.root.feature.feature.group 0.0.0

It looks like it requires RTD S32K396. But in the release notes, it is not required for the S32K396 RTD version, not for the S32K344 RTD version. 

Is there anything missing or is it a must to install RTD S32K396 for S32K3X4EVB-T172 board?

Thanks!

Crane

 

 

0 Kudos
Reply
1,632 Views
CongDang
NXP Employee
NXP Employee

1. The information at the link is just an example. For detail, you should find in the Release Notes, it should mention what is board version is supported

2. Yes, because S32K3 TCPIP_STACK 1.0.3 also supports S32k396, so you need to install RTD S32K396 3.0.0 also.

0 Kudos
Reply
1,590 Views
cranes
Contributor III

In the release notes, it mentioned all dependencies, but there is no RTD for S32K396.

You said, "S32K3 TCPIP_STACK 1.0.3 also supports S32k396, so you need to install RTD S32K396 3.0.0 also". It says it supports S32K396, and it didn't say it depends on S32K396. So, "you need to install RTD S32K396" does not make sense.

Anyway, I try to look for RTD S32K396 3.0.0 and couldn't. I found the closest one Platform_Software_Integration_S32K396_2023_04_updatesite.zip, but it doesn't install. I found this link https://community.nxp.com/t5/S32K/tcpip-1-0-3-can-t-be-installed/m-p/1686564#M25052 . But  couldn't find this version as well.

If correct information about where to find its supporting software is provided under the webpage of S32K344 or S32K3X4EVB-T172, I would not need to ask these questions here. It's been over a month since I started asking questions here about TCPIP stack and still couldn't get it correctly installed and run.

Is the board supported really supported in this version of TCP/IP stack? There is no link on the webpage:

cranes_0-1706333516784.png

 

0 Kudos
Reply
1,562 Views
CongDang
NXP Employee
NXP Employee

I'm sure the information about hardware supporting (type of board) is reliable:

CongDang_0-1706528717633.png

while you won't be able to find S32K3X4EVB-T172 Evaluation Board is supported by  SW32K3_TCPIP_RTM_1_0_1_HF1.

About installing package, I think I'm in the same situation as you where what's written in the Release Notes makes us confused. Let me clarify further. Each TCPIP package will need to be installed along with package(s) of RTD . With S32K3 TCPIP_STACK 1.0.3, it supports both S32K3XX and S32K396. However with RTD, we have 2 separate packages to support S32K3XX and S32K396. So in your case, when you install S32K3 TCPIP_STACK 1.0.3, it cannot find the package of S32K396 and gives an error.

Please tell me know your current issue. Have you followed the instructions in https://community.nxp.com/t5/S32K/tcpip-1-0-3-can-t-be-installed/m-p/1686564#M25052 and failed? Or have you not found SW32K3 Real Time Drivers 4.4_R21-11 Version 3.0.0 package?

0 Kudos
Reply
1,542 Views
cranes
Contributor III

Hello,

The issue is addressed. Thanks!

Regards,

Crane

 

0 Kudos
Reply
1,824 Views
cranes
Contributor III

Hello,

Does lwip_s32k344 example got from here work?

cranes_1-1703110858559.png

Why is the macro IP_GMAC_BASE_PTRS (supposed to be 0x40484000) actually defined as IP_EMAC_BASE_PTRS (0x40480000)? 

cranes_0-1703110789538.png

And the mode is configured as GMAC in the Configuration Tool - peripherals, but there is no GMAC clock is configured in the Configuration Tool - clock, instead only EMAC clocks. Why it is like that and is it supposed to be like that?

Thanks!

Crane

 

0 Kudos
Reply
1,781 Views
cranes
Contributor III

If the base address is changed from 0x40480000 to 0x40484000, I got this error with the variable "base".: 

Base Error: Multiple errors reported.\ Failed to execute MI command: -var-create - * Base Error message from debugger back end: -var-create: unable to create variable object\ Unable to create variable object

I suspect what it is using is actually EMAC, not GMAC although in the Configuration Tool, the mode is chosen as GMAC Mode and in the drivers section, it is showing "Gmac". And although the files name and functions names all start with Gmac_xxx.

Then the question goes back the original question, why the reset fails and I got this error with the variable "base":

Base Error: Target not available.

What does this error mean? Does it mean the Emac controller is not available?

Thanks!

Crane

 

 

0 Kudos
Reply