Closed ahmedwahdan closed 4 years ago
Hi @ahmedwahdan
I believe you are referring to the porting guide here? Could you list specifically which files include the missing headers?
freertos_plus/aws/ota/test/aws_test_ota_cbor.c
libraries/3rdparty/unity/expectdata/*.c
libraries/3rdparty/lwip/test/unit/lwip_check.h
Hi @ahmedwahdan
In what step are you trying to build those files? Are you trying to port OTA as one of the libraries as well?
For the Unity files, those seem to be part of the tests when building Unity, not tests that use the Unity framework. Are you trying to test Unity for your toolchain? If not, you should not need to build those files while porting.
The lwip file seems to be referring to the check unit testing framework. However, you should not need to include the test/
directory for lwip either: https://docs.aws.amazon.com/freertos/latest/portingguide/porting-lwip.html#porting-testing-lwip
I'm just trying to port to my board and use Ethernet till it's up and running correctly, then switch to PPPOS, but I'm kind of lost here. I reached that point of the porting https://docs.aws.amazon.com/freertos/latest/portingguide/afr-porting-config.html. Thanks for helping.
Step 6 Import all of the files in freertos/libraries and its subdirectories into the aws_tests IDE project. and then a note for not importing the unnecessary modules. I don't know which is required and which is not. For sure I removed modules I don't need, but this is porting for testing so I kept the testing files. I need FreeRTOS + AWS SDK (MQTT) + Lwip, could you clear what is really required to accomplish this task? I'm playing around to figure out what to keep and what to remove.
Hi @ahmedwahdan I assume that you port will also use FreeRTOS+TCP?
You will find the latest sources and network interface here. STM32Fxx is a combined driver for any STM23Fxx. You just have to #define the correct part. The driver uses a generic PHY driver, found in Common/phyHandling.c I have both a STM32F4 and a STM32F7 so I can do some co-testing. Have you decided about the IDE to use? I'm using the Open STM32 tools, but I am open to any other tool .
Hi @htibosch I need to use lwip stack because I will use it's PPPOS interface later. I'm currently working on CubeIDE. Thanks for helping.
Hi @ahmedwahdan
Thank you for pointing out the issue in our documentation. We will work on updating it to clarify which modules are not required. In the meantime, you should not need to include test files that are from libraries/3rdparty
, as those test the libraries and not FreeRTOS.
Hi @muneebahmed10 I tried to do porting the other way, using generated project from cubemx with lwip integrated. I added the mqtt libraries and all the dependencies required. The code is highly dependent on the RTOS(i.e Task Pool) which make it very hard to debug. Currently I'm stuck at this point: IotMqtt_Connect > _IotMqtt_ScheduleOperation > IotTaskPool_ScheduleDeferred The operation got blocked on TASKPOOL_ENTER_CRITICAL(). note: I just started from the Run_Demo function, and initialized all the required functions. https://github.com/ahmedwahdan/STM32_Lwip_PPPOS
I found the task pool is not initialized, the problem now is with the thread stack size. The default value is 5000 which is an enormous number!, Could this size be minimized?
Hello @ahmedwahdan
Are you still having issues? Where are you seeing the default stack size as 5000? You can definitely minimize the default size of the task pool stack. It is different depending on the platform and how much space is available. The demo code has the default as:
#define IOT_THREAD_DEFAULT_STACK_SIZE 2048
Hello @sarenameas I'm set a reasonable size for the stack size, Currently I'm facing a problem with TLS handshake
00> PSH ACK F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: dumping 'input record from network' (5416 bytes) 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0000: 16 03 03 15 23 02 00 00 51 03 03 ce c2 e9 a6 2f ....#...Q....../ 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0010: 21 90 0b bb e3 0f cf e3 f0 fa ea 90 b5 20 13 dc !............ .. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssltls.c:4233: 0020: 51 33 73 cc 21 2f ba 4f 7a 69 42 20 5f 8a 5a 32 Q3s.!/.OziB .Z2 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0030: e2 7a bf 03 38 33 4b 39 0c 0e 0c 6b d1 25 c4 1d .z..83K9...k.%.. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0040: dd 39 ad 22 6f de f5 83 94 8d f0 9d c0 2f 00 00 .9."o......../.. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0050: 09 ff 01 00 01 00 00 17 00 00 0b 00 13 0f 00 13 ................ 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0060: 0c 00 05 a4 30 82 05 a0 30 82 04 88 a0 03 02 01 ....0...0....... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0070: 02 02 10 04 b1 f9 df c2 bd 23 88 18 a5 2c be 73 .........#...,.s 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0080: 31 5d dd 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 1].0....H...... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0090: 05 00 30 46 31 0b 30 09 06 03 55 04 06 13 02 55 ..0F1.0...U....U 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 00a0: 53 31 0f 30 0d 06 03 55 04 0a 13 06 41 6d 61 7a S1.0...U....Amaz 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 00b0: 6f 6e 31 15 30 13 06 03 55 04 0b 13 0c 53 65 72 on1.0...U....Ser 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 00c0: 76 65 72 20 43 41 20 31 42 31 0f 30 0d 06 03 55 ver CA 1B1.0...U 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 00d0: 04 03 13 06 41 6d 61 7a 6f 6e 30 1e 17 0d 32 30 ....Amazon0...20 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 00e0: 30 32 31 37 30 30 30 30 30 30 5a 17 0d 32 31 30 0217000000Z..210 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 00f0: 31 32 38 31 32 30 30 30 30 5a 30 28 31 26 30 24 128120000Z0(1&0$ 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0100: 06 03 55 04 03 0c 1d 2a 2e 69 6f 74 2e 75 73 2d ..U.....iot.us- 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0110: 65 61 73 74 2d 32 2e 61 6d 61 7a 6f 6e 61 77 73 east-2.amazonaws 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0120: 2e 63 6f 6d 30 82 01 22 30 0d 06 09 2a 86 48 86 .com0.."0....H. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0130: f7 0d 01 01 01 05 00 03 82 01 0f 00 30 82 01 0a ............0... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0140: 02 82 01 01 00 bc 11 e2 59 b8 30 2a 4d a3 1c fd ........Y.0M... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0150: e4 e3 58 3e 5c 77 4f 93 ff 33 0b 56 ca 1c 29 9f ..X>\wO..3.V..). 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0160: fa a9 78 6a b2 a8 1d c4 9e 79 ed 3f 5e f3 20 42 ..xj.....y.?^. B 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0170: 26 9d 37 66 57 93 f8 92 e5 e4 b9 41 11 64 55 2e &.7fW......A.dU. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0180: 12 b8 c3 58 b1 cf d9 75 50 ea 1f be a7 d1 12 b2 ...X...uP....... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0190: cb e1 1b 7b c0 a2 21 19 1a 1d 1d 71 ef 5c 8e b3 ...{..!....q... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 01a0: 61 be 88 01 6d 71 55 04 7a bf 0d 78 84 62 11 6c a...mqU.z..x.b.l 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 01b0: 42 04 4d 96 d4 15 b5 83 5b 1c 07 55 9c 39 f3 7b B.M.....[..U.9.{ 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 01c0: 6a a6 ff 3f 57 9e 5c 5c 14 5f 50 aa b8 8b 14 16 j..?W.\._P..... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 01d0: 82 f7 73 9d c1 14 f0 da 5a 6c f8 0c 47 17 43 9b ..s.....Zl..G.C. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 01e0: 59 ef dc df b8 d6 ae eb e9 23 0d 7c 20 9f 03 9a Y........#.| ... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 01f0: 46 7c 53 ee 1e 22 0d 40 36 91 6b 71 d6 e6 09 9f F|S..".@6.kq.... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0200: 11 b5 ed 90 35 9a 37 41 bd cc 68 70 6c 9b b4 e8 ....5.7A..hpl... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0210: 88 db 92 a6 f7 d5 8c 73 a1 08 d7 f5 9d 9b f4 39 .......s.......9 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0220: 1b 31 2f a6 99 62 bd 3b d7 a6 0a 5a 2f 23 29 3f .1/..b.;...Z/#)? 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0230: 23 5a 15 42 f9 0e 09 f3 cc 12 3f 7d 27 d4 26 58 #Z.B......?}'.&X 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0240: 38 bd c4 f3 45 02 03 01 00 01 a3 82 02 a6 30 82 8...E.........0. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0250: 02 a2 30 1f 06 03 55 1d 23 04 18 30 16 80 14 59 ..0...U.#..0...Y 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0260: a4 66 06 52 a0 7b 95 92 3c a3 94 07 27 96 74 5b .f.R.{..<...'.t[ 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0270: f9 3d d0 30 1d 06 03 55 1d 0e 04 16 04 14 7c 37 .=.0...U......|7 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0280: 88 d8 d7 c1 30 d2 9a c7 6c 4c fc 17 1b 1a c6 84 ....0...lL...... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0290: 25 e4 30 45 06 03 55 1d 11 04 3e 30 3c 82 1d 2a %.0E..U...>0<.. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 02a0: 2e 69 6f 74 2e 75 73 2d 65 61 73 74 2d 32 2e 61 .iot.us-east-2.a 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 02b0: 6d 61 7a 6f 6e 61 77 73 2e 63 6f 6d 82 1b 69 6f mazonaws.com..io 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 02c0: 74 2e 75 73 2d 65 61 73 74 2d 32 2e 61 6d 61 7a t.us-east-2.amaz 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 02d0: 6f 6e 61 77 73 2e 63 6f 6d 30 0e 06 03 55 1d 0f onaws.com0...U.. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 02e0: 01 01 ff 04 04 03 02 05 a0 30 1d 06 03 55 1d 25 .........0...U.% 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 02f0: 04 16 30 14 06 08 2b 06 01 05 05 07 03 01 06 08 ..0...+......... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0300: 2b 06 01 05 05 07 03 02 30 3b 06 03 55 1d 1f 04 +.......0;..U... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0310: 34 30 32 30 30 a0 2e a0 2c 86 2a 68 74 74 70 3a 40200...,.http: 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0320: 2f 2f 63 72 6c 2e 73 63 61 31 62 2e 61 6d 61 7a //crl.sca1b.amaz 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0330: 6f 6e 74 72 75 73 74 2e 63 6f 6d 2f 73 63 61 31 ontrust.com/sca1 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0340: 62 2e 63 72 6c 30 20 06 03 55 1d 20 04 19 30 17 b.crl0 ..U. ..0. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0350: 30 0b 06 09 60 86 48 01 86 fd 6c 01 02 30 08 06 0...
.H...l..0.. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0360: 06 67 81 0c 01 02 01 30 75 06 08 2b 06 01 05 05 .g.....0u..+.... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0370: 07 01 01 04 69 30 67 30 2d 06 08 2b 06 01 05 05 ....i0g0-..+.... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0380: 07 30 01 86 21 68 74 74 70 3a 2f 2f 6f 63 73 70 .0..!http://ocsp 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0390: 2e 73 63 61 31 62 2e 61 6d 61 7a 6f 6e 74 72 75 .sca1b.amazontru 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 03a0: 73 74 2e 63 6f 6d 30 36 06 08 2b 06 01 05 05 07 st.com06..+..... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 03b0: 30 02 86 2a 68 74 74 70 3a 2f 2f 63 72 74 2e 73 0..*http://crt.s 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 03c0: 63 61 31 62 2e 61 6d 61 7a 6f 6e 74 72 75 73 74 ca1b.amazontrust 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 03d0: 2e 63 6f 6d 2f 73 63 61 31 62 2e 63 72 74 30 0c .com/sca1b.crt0. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 03e0: 06 03 55 1d 13 01 01 ff 04 02 30 00 30 82 01 04 ..U.......0.0... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 03f0: 06 0a 2b 06 01 04 01 d6 79 02 04 02 04 81 f5 04 ..+.....y....... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0400: 81 f2 00 f0 00 76 00 a4 b9 09 90 b4 18 58 14 87 .....v.......X.. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0410: bb 13 a2 cc 67 70 0a 3c 35 98 04 f9 1b df b8 e3 ....gp.<5....... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0700: c2 4e 16 67 dd ce bc 6a c8 37 5a ec 3a 30 b0 1d .N.g...j.7Z.:0.. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0710: e6 d1 12 e8 12 28 48 cc e8 29 c1 b9 6e 53 d5 a3 .....(H..)..nS.. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0720: eb 03 39 1a cc 77 87 f6 01 b9 d9 70 cc cf 6b 8d ..9..w.....p..k. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0730: e3 e3 03 71 86 99 6d cb a6 94 2a 4e 13 d6 a7 bd ...q..m...*N.... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0740: 04 ec 0a 16 3c 0a eb 39 b1 c4 b5 58 a3 b6 c7 56 ....<..9...X...V 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0750: 25 ec 3e 52 7a a8 e3 29 16 07 b9 6e 50 cf fb 5f %.>Rz..)...nP.._ 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0760: 31 f8 1d ba 03 4a 62 89 03 ae 3e 47 f2 0f 27 91 1....Jb...>G..'. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0770: e3 14 20 85 f8 fa e9 8a 35 f5 5f 9e 99 4d e7 6b .. .....5._..M.k 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0780: 37 ef a4 50 3e 44 ec fa 5a 85 66 07 9c 7e 17 6a 7..P>D..Z.f..~.j 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0790: 55 f3 17 8a 35 1e ee e9 ac c3 75 4e 58 55 7d 53 U...5.....uNXU}S 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 07a0: 6b 0a 6b 9b 14 42 d7 e5 ac 01 89 b3 ea a3 fe cf k.k..B.......... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 07b0: c0 2b 0c 84 c2 d8 53 15 cb 67 f0 d0 88 ca 3a d1 .+....S..g....:. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 07c0: 17 73 f5 5f 9a d4 c5 72 1e 7e 01 f1 98 30 63 2a .s._...r.~...0c* 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 07d0: aa f2 7a 2d c5 e2 02 1a 86 e5 32 3e 0e bd 11 b4 ..z-......2>.... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 07e0: cf 3c 93 ef 17 50 10 9e 43 c2 06 2a e0 0d 68 be .<...P..C..*..h. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 07f0: d3 88 8b 4a 65 8c 4a d4 c3 2e 4c 9b 55 f4 86 e5 ...Je.J...L.U... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0800: 02 03 01 00 01 a3 82 01 3b 30 82 01 37 30 12 06 ........;0..70.. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0810: 03 55 1d 13 01 01 ff 04 08 30 06 01 01 ff 02 01 .U.......0...... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0820: 00 30 0e 06 03 55 1d 0f 01 01 ff 04 04 03 02 01 .0...U.......... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0830: 86 30 1d 06 03 55 1d 0e 04 16 04 14 59 a4 66 06 .0...U......Y.f. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0840: 52 a0 7b 95 92 3c a3 94 07 27 96 74 5b f9 3d d0 R.{..<...'.t[.=. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0850: 30 1f 06 03 55 1d 23 04 18 30 16 80 14 84 18 cc 0...U.#..0...... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0860: 85 34 ec bc 0c 94 94 2e 08 59 9c c7 b2 10 4e 0a .4.......Y....N. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0870: 08 30 7b 06 08 2b 06 01 05 05 07 01 01 04 6f 30 .0{..+........o0 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0880: 6d 30 2f 06 08 2b 06 01 05 05 07 30 01 86 23 68 m0/..+.....0..#h 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0890: 74 74 70 3a 2f 2f 6f 63 73 70 2e 72 6f 6f 74 63 ttp://ocsp.rootc 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 08a0: 61 31 2e 61 6d 61 7a 6f 6e 74 72 75 73 74 2e 63 a1.amazontrust.c 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 08b0: 6f 6d 30 3a 06 08 2b 06 01 05 05 07 30 02 86 2e om0:..+.....0... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 08c0: 68 74 74 70 3a 2f 2f 63 72 74 2e 72 6f 6f 74 63 http://crt.rootc 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 08e0: 6f 6d 2f 72 6f 6f 74 63 61 31 2e 63 65 72 30 3f om/rootca1.cer0? 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 08f0: 06 03 55 1d 1f 04 38 30 36 30 34 a0 32 a0 30 86 ..U...80604.2.0. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0900: 2e 68 74 74 70 3a 2f 2f 63 72 6c 2e 72 6f 6f 74 .http://crl.root 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0910: 63 61 31 2e 61 6d 61 7a 6f 6e 74 72 75 73 74 2e ca1.amazontrust. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0920: 63 6f 6d 2f 72 6f 6f 74 63 61 31 2e 63 72 6c 30 com/rootca1.crl0 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0930: 13 06 03 55 1d 20 04 0c 30 0a 30 08 06 06 67 81 ...U. ..0.0...g. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0940: 0c 01 02 01 30 0d 06 09 2a 86 48 86 f7 0d 01 01 ....0...*.H..... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0950: 0b 05 00 03 82 01 01 00 85 92 be 35 bb 79 cf a3 ...........5.y.. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0960: 81 42 1c e4 e3 63 73 53 39 52 35 e7 d1 ad fd ae .B...csS9R5..... 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0970: 99 8a ac 89 12 2f bb e7 6f 9a d5 4e 72 ea 20 30 ...../..o..Nr. 0 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0980: 61 f9 97 b2 cd a5 27 02 45 a8 ca 76 3e 98 4a 83 a.....'.E..v>.J. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4233: 0990: 9e b6 e6 45 e0 f2 43 f6 08 de 6d e8 6e db 31 07 ...E..C...m.n.1. 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4385: <= read record 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:5757: x509_verify_cert() returned -9984 (-0x2700) 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:5250: => send alert message 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:5251: send alert level=2 message=45 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:3343: => write record 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:3423: output record: msgtype = 21, version = [3:3], msglen = 2 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:3426: dumping 'output record sent to network' (7 bytes) 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:3426: 0000: 15 03 03 00 02 02 2d ......- 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:2755: => flush output 00> F:/Wahdan/Repos/LwIp_Mqtt/LwIP_MQTT/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:2774: message length: 7, out_left: 7
Any thoughts?
So in your log it says x5089verify_cert() returned -9984 (-0x2700)
That error is in x509.h: MBEDTLS_ERR_X509_CERT_VERIFY_FAILED
The server certificate could not be verified.
If you are connecting to AWS IoT Core your port should be using the certificates in aws_default_root_certificate.h to verify the server. This is done automatically in libraries/freertos_plus/standard/tls/src/iot_tls.c, see TLS_Connect().
I just want to verify that you ported iot_tls.c?
Hello @ahmedwahdan,
Are you still facing issues porting FreeRTOS, or can I close this issue?
Thanks
@ahmedwahdan This topic has become inactive so I'm going to close the issue. Please reopen this if you need any further assistance.
Describe the bug I'm following the porting guide to port AWS FreeRTOS to STM32F746G_Discovery board board, and I managed to list most of the missing including paths, but currently I'm stuck with the following files:
include "funky.h"
include "stanky.h"
include
Do I need to install other libraries?
Thank you!