OM40007 LPC54018-based IoT Module with Amazon FreeRTOS example error

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

OM40007 LPC54018-based IoT Module with Amazon FreeRTOS example error

810 Views
ricktseng
Contributor III

In the SDK example , lpc54018iotmodule_aws_aws_shadow_wifi_qspi_xip , I see some errors as below :

2769 1550441 [ShDemoUpdt] Successfully performed update.

2770 1555027 [Shd-IOT-0] Shd-IOT-0 changing desired state.

2771 1555029 [ShDemoUpdt] Performing Thing Shadow update.

2772 1555060 [ShDemoUpdt] [Shadow 0] MQTT: Publish to operation topic succeeded.

2773 1555255 [MQTT] Successfully added new reported state to update queue.

2774 1555257 [ShDemoUpdt] Successfully performed update.

2775 1555259 [ShDemoUpdt] Performing Thing Shadow update.

2776 1555260 [Shd-IOT-0] Shd-IOT-0 done changing desired state.

2777 1555292 [ShDemoUpdt] [Shadow 0] MQTT: Publish to operation topic succeeded.

2778 1555439 [ShDemoUpdt] Successfully performed update.

2779 1560027 [Shd-IOT-0] Shd-IOT-0 changing desired state.

2780 1560029 [ShDemoUpdt] Performing Thing Shadow update.

2781 1560060 [ShDemoUpdt] [Shadow 0] MQTT: Publish to operation topic succeeded.

2782 1590062 [ShDemoUpdt] [Shadow 0] Error while waiting for update accepted/rejected callback.

2783 1590063 [ShDemoUpdt] Update failed, returned 1.

2784 1590066 [Shd-IOT-0] Shd-IOT-0 done changing desired state.

2785 1590068 [Shd-IOT-0] Shd-IOT-0 changing desired state.

2786 1590070 [ShDemoUpdt] Performing Thing Shadow update.

2787 1600099 [MQTT] [Shadow 0] Warning: got an MQTT disconnect message.

2788 1600139 [ShDemoUpdt] [Shadow 0] MQTT: Publish to operation topic failed.

2789 1600141 [ShDemoUpdt] Update failed, returned 2.

2790 1600144 [Shd-IOT-0] Shd-IOT-0 done changing desired state.

2791 1600146 [Shd-IOT-0] Shd-IOT-0 changing desired state.

2792 1600148 [ShDemoUpdt] Performing Thing Shadow update.

2793 1600150 [ShDemoUpdt] [Shadow 0] MQTT: Subscribe to accepted topic failed.

It was running OK at beginning, please see below :

SEGGER J-Link GDB Server V6.42b - Terminal output channel

0 115 [Tmr Svc] Write certificate...

1 231 [Tmr Svc] Write device private key...

2 722 [Tmr Svc] Starting WiFi...

3 2366 [Tmr Svc] WiFi module initialized.

4 6573 [Tmr Svc] WiFi connected to AP jacaranda2.

5 6573 [Tmr Svc] IP Address acquired 192.168.1.151

6 6583 [MainDemoTask] [Shadow 0] MQTT: Creation of dedicated MQTT client succeeded.

7 6753 [MQTT] Looked up axyxxxxxxxxxx.iot.us-west-2.amazonaws.com as 34.211.251.xxx

<<< I mask out the information >>>

8 23854 [MainDemoTask] [Shadow 0] MQTT: Connect succeeded.

9 23992 [MainDemoTask] [Shadow 0] MQTT: Subscribe to accepted topic succeeded.

10 24130 [MainDemoTask] [Shadow 0] MQTT: Subscribe to rejected topic succeeded.

11 24157 [MainDemoTask] [Shadow 0] MQTT: Publish to operation topic succeeded.

12 24427 [MainDemoTask] [Shadow 0] MQTT: Unsubscribe from rejected topic succeeded.

13 24565 [MainDemoTask] [Shadow 0] MQTT: Subscribe to callback topic succeeded.

14 24568 [MainDemoTask] Shadow client initialized.

15 24571 [ShDemoUpdt] Performing Thing Shadow update.

16 24707 [ShDemoUpdt] [Shadow 0] MQTT: Subscribe to accepted topic succeeded.

17 24844 [ShDemoUpdt] [Shadow 0] MQTT: Subscribe to rejected topic succeeded.

18 24876 [ShDemoUpdt] [Shadow 0] MQTT: Publish to operation topic succeeded.

19 25024 [ShDemoUpdt] Successfully performed update.

20 25027 [Shd-IOT-0] Shd-IOT-0 changing desired state.

21 25029 [ShDemoUpdt] Performing Thing Shadow update.

22 25060 [ShDemoUpdt] [Shadow 0] MQTT: Publish to operation topic succeeded.

23 25208 [ShDemoUpdt] Successfully performed update.

24 25211 [Shd-IOT-0] Shd-IOT-0 done changing desired state.

25 30027 [Shd-IOT-0] Shd-IOT-0 changing desired state.

26 30029 [ShDemoUpdt] Performing Thing Shadow update.

27 30060 [ShDemoUpdt] [Shadow 0] MQTT: Publish to operation topic succeeded.

28 30233 [MQTT] Successfully added new reported state to update queue.

29 30260 [ShDemoUpdt] Successfully performed update.

31 30262 [ShDemoUpdt] Performing Thing Shadow update.

30 30261 [Shd-IOT-0] Shd-IOT-0 done changing desired state.

32 30295 [ShDemoUpdt] [Shadow 0] MQTT: Publish to operation topic succeeded.

33 30443 [ShDemoUpdt] Successfully performed update.

34 35027 [Shd-IOT-0] Shd-IOT-0 changing desired state.

35 35029 [ShDemoUpdt] Performing Thing Shadow update.

36 35060 [ShDemoUpdt] [Shadow 0] MQTT: Publish to operation topic succeeded.

37 35205 [MQTT] Successfully added new reported state to update queue.

38 35276 [ShDemoUpdt] Successfully performed update.

40 35278 [ShDemoUpdt] Performing Thing Shadow update.

39 35277 [Shd-IOT-0] Shd-IOT-0 done changing desired state.

41 35311 [ShDemoUpdt] [Shadow 0] MQTT: Publish to operation topic succeeded.

>>>>

The SDK is : 

Screen Shot 2019-11-03 at 11.54.18 AM.png

The IDE is :

MCUXpresso IDE v10.3.1 [Build 2233] [2019-02-20]

Once it fails , it will never be able to publish again. The only way to fix it is to terminate the debug session and start over again from beginning.. 

My AWS iot thing is OK.. I can see the shadow update message from Mqtt Fx Client. As you can see from the above log , the errors happened after many successful publishes. I could duplicate the error if I re-run the program. The time to get the error message is random. Sometimes it runs more than one hours to show the error , sometimes errors come out in 10 minutes.. Anyone see something like it ??

Thanks

Rick

0 Kudos
1 Reply

743 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Rick Tseng 

   This community is mainly used for the Kinetis SDK, if you have the LPC question, please go to this block:

LPC Microcontrollers 

  You can create the question in the LPC area again, thanks  a lot for your understanding and cooperation.

   I think you also can share your mqtt.fx test result when you post the question in the LPC area.

   BTW, when the LPC54018 can publish the message, whether your amazone aws can receive it or not.

   You can provide more information when you create the LPC case.

Have a great day,
Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos