cancel
Showing results for 
Search instead for 
Did you mean: 

X-CUBE-CELLULAR: how to work with STM32H7 (M7) ?

saico
Associate II

Hi, friends.

I am making X-CUBE-CELLULAR working on STM32H750 MCU.

my hardware with follow function:

USART1 for print DEBUG

USART2 for LTE CELLUAR (with lwip)

ETH RMII enabled (with freertos_plus_tcp)

QSPI enabled

I am building amazon FreeRTOS worked on my board,

when using RMII ETH everything work fine,

but when change to LTE CELLUAR, something BAD.

Andy body can help me.

2 REPLIES 2
saico
Associate II

==============================DEBUG msg for RMII ETH======================================

13 4083 [iot_thread] [INFO ][DEMO][4081] ---------STARTING DEMO---------

14 4085 [iot_thread] [INFO ][INIT][4085] SDK successfully initialized.

15 4085 [iot_thread] [INFO ][DEMO][4085] Successfully initialized the demo. Network type for the demo: 4

16 4085 [iot_thread] [INFO] Creating a TLS connection to xxxxxxxxxxx.ats.iot.cn-north-1.amazonaws.com.cn:8883.

17 4088 [EMAC-task] Heap: current 145176 lowest 145128

18 4144 [iot_thread] DNS[0xB152]: The answer to 'xxxxxxxxxxx.ats.iot.cn-north-1.amazonaws.com.cn' (52.80.68.38) will be stored

19 4144 [iot_thread] DNS[0xB152]: The answer to 'xxxxxxxxxxx.ats.iot.cn-north-1.amazonaws.com.cn' (52.80.33.106) will be stored

20 4434 [EMAC-task] Heap: current 122184 lowest 122184

21 4517 [EMAC-task] Network buffers: 54 lowest 54

22 5403 [EMAC-task] RX descriptors 7/8

23 6755 [EMAC-task] Heap: current 109720 lowest 107272

24 8337 [EMAC-task] Heap: current 96368 lowest 96368

25 10305 [iot_thread] [DEBUG] Encoded size for length 24 is 1 bytes.

26 10306 [iot_thread] [DEBUG] CONNECT packet remaining length=24 and packet size=26.

27 10306 [iot_thread] [DEBUG] CONNECT packet size is 26 and remaining length is 24.

28 10306 [iot_thread] [DEBUG] Encoded size for length 24 is 1 bytes.

29 10306 [iot_thread] [DEBUG] Length of serialized CONNECT packet is 26.

30 10308 [iot_thread] [DEBUG] BytesSent=26, BytesRemaining=0

31 10308 [iot_thread] [DEBUG] Successfully sent packet at time 6223.

32 10308 [iot_thread] [DEBUG] Sent 26 bytes of CONNECT packet.

33 10309 [iot_thread] [DEBUG] No data was received from the transport.

34 10310 [iot_thread] [DEBUG] No data was received from the transport.

35 10311 [iot_thread] [DEBUG] No data was received from the transport.

36 10312 [iot_thread] [DEBUG] No data was received from the transport.

37 10322 [iot_thread] [DEBUG] No data was received from the transport.

38 10323 [iot_thread] [DEBUG] No data was received from the transport.

39 10324 [iot_thread] [DEBUG] No data was received from the transport.

40 10325 [iot_thread] [DEBUG] No data was received from the transport.

41 10326 [iot_thread] [DEBUG] No data was received from the transport.

47 10340 [iot_thread] [DEBUG] No data was received from the transport.

54 10349 [iot_thread] [DEBUG] No data was received from the transport.

59 10364 [iot_thread] [DEBUG] No data was received from the transport.

66 10380 [iot_thread] [DEBUG] No data was received from the transport.

72 10386 [iot_thread] [DEBUG] No data was received from the transport.

77 10401 [iot_thread] [DEBUG] No data was received from the transport.

83 10416 [iot_thread] [DEBUG] No data was received from the transport.

90 10423 [iot_thread] [DEBUG] No data was received from the transport.

96 10439 [iot_thread] [DEBUG] No data was received from the transport.

105 10603 [SubPub0] [INFO] Sending subscribe request to agent for topic filter: xniot/work/340351303335 with id 1

106 10622 [MQTT Agent] [DEBUG] Encoded size for length 28 is 1 bytes.

107 10622 [MQTT Agent] [DEBUG] Subscription packet remaining length=28 and packet size=30.

108 10622 [MQTT Agent] [DEBUG] SUBSCRIBE packet size is 30 and remaining length is 28.

109 10622 [MQTT Agent] [DEBUG] Encoded size for length 28 is 1 bytes.

110 10622 [MQTT Agent] [DEBUG] Length of serialized SUBSCRIBE packet is 30.

111 10626 [MQTT Agent] [DEBUG] BytesSent=30, BytesRemaining=0

112 10626 [MQTT Agent] [DEBUG] Successfully sent packet at time 6541.

113 10626 [MQTT Agent] [DEBUG] Sent 30 bytes of SUBSCRIBE packet.

114 10636 [MQTT Agent] [DEBUG] No data was received from the transport.

115 11636 [MQTT Agent] [DEBUG] Encoded size for length 3 is 1 bytes.

116 11638 [MQTT Agent] [DEBUG] BytesReceived=3, BytesRemaining=0, TotalBytesReceived=3.

117 11638 [MQTT Agent] [INFO] Packet received. ReceivedBytes=3.

118 11638 [MQTT Agent] [DEBUG] Received packet of type 90.

119 11638 [MQTT Agent] [DEBUG] Packet identifier 1.

120 11638 [MQTT Agent] [DEBUG] Topic filter 0 accepted, max QoS 0.

121 11638 [MQTT Agent] [DEBUG] Returned Command Context 0 to pool

122 11639 [MQTT Agent] [DEBUG] No data was received from the transport.

123 11729 [SubPub0] [INFO] Received subscribe ack for topic xniot/work/340351303335 containing ID 1

124 11747 [SubPub0] [INFO] {"TotalCNT":   1,"ErrorCNT":   0,"Localid":   0,"TaskNumber":   0}

125 11766 [MQTT Agent] [INFO] Publishing message to xniot/dtos/340351303335.

126 11766 [MQTT Agent] [DEBUG] Encoded size for length 107 is 1 bytes.

127 11766 [MQTT Agent] [DEBUG] Encoded size for length 107 is 1 bytes.

128 11766 [MQTT Agent] [DEBUG] PUBLISH packet remaining length=107 and packet size=109.

129 11766 [MQTT Agent] [DEBUG] PUBLISH packet size is 109 and remaining length is 107.

130 11766 [MQTT Agent] [DEBUG] Encoded size for length 107 is 1 bytes.

131 11766 [MQTT Agent] [DEBUG] Serialized PUBLISH header size is 27.

132 11779 [MQTT Agent] [DEBUG] BytesSent=27, BytesRemaining=0

133 11779 [MQTT Agent] [DEBUG] Successfully sent packet at time 7694.

134 11779 [MQTT Agent] [DEBUG] Sent 27 bytes of PUBLISH header.

135 11782 [MQTT Agent] [DEBUG] BytesSent=82, BytesRemaining=0

136 11782 [MQTT Agent] [DEBUG] Successfully sent packet at time 7697.

137 11782 [MQTT Agent] [DEBUG] Sent 82 bytes of PUBLISH payload.

138 11782 [MQTT Agent] [DEBUG] Returned Command Context 1 to pool

139 11783 [MQTT Agent] [DEBUG] No data was received from the transport.

140 11962 [SubPub0] [INFO] Task 0 waiting for publish 0 to complete.

141 11968 [SubPub0] [INFO] Publish 0 completed successfully.

142 11983 [SubPub0] [INFO] Short delay before next publish... 

143 12784 [MQTT Agent] [DEBUG] No data was received from the transport.

144 13793 [MQTT Agent] [DEBUG] No data was received from the transport.

145 14795 [MQTT Agent] [DEBUG] No data was received from the transport.

146 15805 [MQTT Agent] [DEBUG] No data was received from the transport.

147 16806 [MQTT Agent] [DEBUG] No data was received from the transport.

148 17807 [MQTT Agent] [DEBUG] No data was received from the transport.

saico
Associate II

==============================DEBUG msg for CELLULAR======================================

9 25734 [iot_thread] [INFO ][DEMO][25734] ---------STARTING DEMO---------

10 25736 [iot_thread] [INFO ][INIT][25736] SDK successfully initialized.

11 25736 [iot_thread] [INFO ][DEMO][25736] Successfully initialized the demo. Network type for the demo: 4

12 25736 [iot_thread] [INFO] Creating a TLS connection to xxxxxxxxxxx.ats.iot.cn-north-1.amazonaws.com.cn:8883.

13 32151 [iot_thread] [DEBUG] Encoded size for length 24 is 1 bytes.

14 32151 [iot_thread] [DEBUG] CONNECT packet remaining length=24 and packet size=26.

15 32151 [iot_thread] [DEBUG] CONNECT packet size is 26 and remaining length is 24.

16 32151 [iot_thread] [DEBUG] Encoded size for length 24 is 1 bytes.

17 32151 [iot_thread] [DEBUG] Length of serialized CONNECT packet is 26.

18 32167 [iot_thread] [DEBUG] BytesSent=26, BytesRemaining=0

19 32167 [iot_thread] [DEBUG] Successfully sent packet at time 6431.

20 32167 [iot_thread] [DEBUG] Sent 26 bytes of CONNECT packet.

21 32267 [iot_thread] [DEBUG] Encoded size for length 2 is 1 bytes.

22 32267 [iot_thread] [DEBUG] BytesReceived=2, BytesRemaining=0, TotalBytesReceived=2.

23 32267 [iot_thread] [INFO] Packet received. ReceivedBytes=2.

24 32267 [iot_thread] [INFO] CONNACK session present bit not set.

25 32267 [iot_thread] [INFO] Connection accepted.

26 32267 [iot_thread] [INFO] Received MQTT CONNACK successfully from broker.

27 32269 [iot_thread] [INFO] MQTT connection established with the broker.

28 32269 [iot_thread] [INFO] Session present: 0

29 32359 [SubPub0] [INFO] Sending subscribe request to agent for topic filter: xniot/work/340351303335 with id 1

30 32378 [MQTT Agent] [DEBUG] Encoded size for length 28 is 1 bytes.

31 32378 [MQTT Agent] [DEBUG] Subscription packet remaining length=28 and packet size=30.

32 32378 [MQTT Agent] [DEBUG] SUBSCRIBE packet size is 30 and remaining length is 28.

33 32380 [MQTT Agent] [DEBUG] Encoded size for length 28 is 1 bytes.

34 32380 [MQTT Agent] [DEBUG] Length of serialized SUBSCRIBE packet is 30.

35 32393 [MQTT Agent] [DEBUG] BytesSent=30, BytesRemaining=0

36 32393 [MQTT Agent] [DEBUG] Successfully sent packet at time 6657.

37 32395 [MQTT Agent] [DEBUG] Sent 30 bytes of SUBSCRIBE packet.

38 32535 [MQTT Agent] [DEBUG] Encoded size for length 3 is 1 bytes.

39 32535 [MQTT Agent] [DEBUG] BytesReceived=3, BytesRemaining=0, TotalBytesReceived=3.

40 32535 [MQTT Agent] [INFO] Packet received. ReceivedBytes=3.

41 32535 [MQTT Agent] [DEBUG] Received packet of type 90.

42 32535 [MQTT Agent] [DEBUG] Packet identifier 1.

43 32535 [MQTT Agent] [DEBUG] Topic filter 0 accepted, max QoS 0.

44 32537 [MQTT Agent] [DEBUG] Returned Command Context 0 to pool

45 32612 [SubPub0] [INFO] Received subscribe ack for topic xniot/work/340351303335 containing ID 1

46 32630 [SubPub0] [INFO] {"TotalCNT":   1,"ErrorCNT":   0,"Localid":   0,"TaskNumber":   0}

47 32648 [SubPub0] [INFO] Task 0 waiting for publish 0 to complete.

48 42664 [SubPub0] [INFO] Short delay before next publish... 

49 52672 [SubPub0] [INFO] {"TotalCNT":   2,"ErrorCNT":   1,"Localid":   1,"TaskNumber":   0}

50 52690 [SubPub0] [INFO] Task 0 waiting for publish 1 to complete.