Description
Description
- Type: Bug
- Priority: Major
Bug
Target
UBLOX_EVK_ODIN_W2
Toolchain:
GCC_ARM|ARM|IAR
mbed-cli version:
(1.2.2
)
mbed-os sha:
ad284b2 (mbed-os-5.8.0)
or
addec7b (mbed-os-5.8.1)
Expected behavior
DTLS handshake works and device connects to mbed cloud
Actual behavior
DTLS handshake fails and device fails to connect to mbed cloud
Steps to reproduce
clone https://github.com/ARMmbed/mbed-cloud-client-example
Edit file mbed_cloud_client_user_config.h to change transport mode from TCP to UDP
-#define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP
+#define MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP
update mbed-os version to 5.8.0 or 5.8.1
compile the client example for UBLOX_EVK_ODIN_W2
Connection works if TCP is used
Workaround for UDP connection issue is to disable SHA256 hardware acceleration from file
https://github.com/ARMmbed/mbed-os/blob/master/features/mbedtls/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/mbedtls_device.h