NXP FRDM-k64f ethernet AWS problem

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

NXP FRDM-k64f ethernet AWS problem

Jump to solution
1,891 Views
RenanStarke
Contributor I
Good day,
 
I was reading a issue with NXP mdio_nxp_enet with Zephyr v3.7.0 (https://github.com/zephyrproject-rtos/zephyr/issues/76446) and I'm having a similar, but worse problem. We are using the FRDM-K64F board as a development platform and using AWS IOT sample to build our application. Unfortunately, after some random time, the PHY and LINK go down, and I suspect the CPU became without clock. The only way to restart the application is to unplug/plug to restart everything. I appreciate any help you can provide.
 

PHY (0) is entering autonegotiation sequence

PHY (0) autonegotiation completed

PHY 0 is up

PHY (0) Link speed 100 Mb, full duplex

 

I: PHY 0 is up

I: PHY (0) Link speed 100 Mb, full duplex

 

ethernet MAC 02:04:9f:a5:16:a2

*** Booting Zephyr OS build v3.7.0 ***

I: starting DHCPv4

I: Address[1]: 192.168.0.42

I: Subnet[1]: 255.255.255.0

I: Router[1]: 192.168.0.1

I: Lease time[1]: 86400 seconds

I: Initializing digital input pins.

I: Initializing Temperature (maxim_max31865) Sensor

I: Initializing analog voltage inputs.

I: ADCs HW counter setup done

I: Initializing analog current inputs.

I: Starting analog current inputs thread.

I: Starting analog voltage inputs thread.

Acquired time from NTP server: 1744238440

I: Setup TLS credentials

I: Resolved: 52.67.214.160:8883

MQTT event: CONNACK [0] result: 0

I: Subscribing to 1 topic(s)

MQTT event: SUBACK [7] result: 0

I: PUBLISHED on topic "sdk/test/java" [ id: 22435 qos: 0 ], payload: 343 B

(...)

I: PUBLISHED on topic "sdk/test/java" [ id: 28156 qos: 0 ], payload: 343 B

PHY 0 is down

I: Link is down <------------ After this, everything stops. Can't debug, can't flash using CMSIS DAP. Recover only with power cycle.

0 Kudos
Reply
1 Solution
1,578 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @RenanStarke ,

I just received the reply from the internal team. The said it is best for the you to report this issue in the upstream Zephyr repo.  That way, others in the Zephyr Community can help support this issue, including those who support Zephyr's networking stack and the AWS sample.  You can create a new GitHub Issue at https://github.com/zephyrproject-rtos/zephyr/issues/new/choose .

Once that Issue is created, NXP can also take a deeper look at this.

Hope it can help you.

BRs,

Celeste

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
8 Replies
1,854 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @RenanStarke ,

Thanks for your post. Which example demo you are using?

Could you please help me check whether the same error will occur if you use the baremetal AWS IOT project in Select Board | MCUXpresso SDK Builder instead of the Zephyr project?
Would it be convenient for you to tell me the detailed test steps so as to help me reproduce your problem?

BRs,

Celeste

0 Kudos
Reply
1,848 Views
RenanStarke
Contributor I

Hi @Celeste_Liu , thank you.

I'm using aws_iot_mqtt_sample with Zephyr 3.7.0 LTS and zephyr-sdk-0.16.8. The problem occurs when the sample code is modified to publish a static string every minute, simulating our application.

west build -b frdm_k64f    (without any modification in DTS nor prj.conf)

Although I haven't tested it with AWS using MCU Expresso, I observed that with Zephyr 4.1.0, the Ethernet connection is lost after prolonged operation, but the MCU clock and PHY remain operational.

0 Kudos
Reply
1,728 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @RenanStarke ,

Sorry for the late reply.

I have updated Zephyr to the latest version. After checking frdm_k64f.yaml, it seems that it doesn't support the aws_iot_mqtt example.

Celeste_Liu_0-1745246373277.png

And there will be error messages after using "west build".

Celeste_Liu_1-1745246870821.png

So, are you porting the aws_iot_mqtt example to the K64F by yourself?

BRs,

Celeste

0 Kudos
Reply
1,712 Views
RenanStarke
Contributor I

Hello @Celeste_Liu,

"I'm using Zephyr 4.1.0, and it works without any modification or porting. The compiler error you saw is related to AWS TLS certificates. Unfortunately, you have to create a "thing" in the AWS IoT Core, place the certificate files into the creds folder, and then run a Python script as indicated in the build error."

Regarding the YAML file, I think it lists the supported hardware, not the sample itself."

 

 

0 Kudos
Reply
1,686 Views
RenanStarke
Contributor I
You can also disable TLS and connect the sample to test.mosquito.org using 1883 port. Since there is a network problem in zephyr 3.7.0, disabling TLS also triggers the link/phy down.
0 Kudos
Reply
1,607 Views
Celeste_Liu
NXP Employee
NXP Employee

Thank you for your patience. I have reported this issue to the internal team. I will let you know as soon as they have any feedback.

0 Kudos
Reply
1,665 Views
Celeste_Liu
NXP Employee
NXP Employee

Thanks for your information. I'm a bit busy at the moment, so there's been a delay in my response. Sorry for the inconvenience caused.
I'll conduct the tests as soon as possible and keep in touch with you.

0 Kudos
Reply
1,579 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @RenanStarke ,

I just received the reply from the internal team. The said it is best for the you to report this issue in the upstream Zephyr repo.  That way, others in the Zephyr Community can help support this issue, including those who support Zephyr's networking stack and the AWS sample.  You can create a new GitHub Issue at https://github.com/zephyrproject-rtos/zephyr/issues/new/choose .

Once that Issue is created, NXP can also take a deeper look at this.

Hope it can help you.

BRs,

Celeste

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply