openthread / ot-rtos

OpenThread RTOS, an integration of OpenThread, LwIP, and FreeRTOS.
https://openthread.io/
BSD 3-Clause "New" or "Revised" License
147 stars 53 forks source link

[mqtt] test mqtt hard fault on nRF52840 #11

Closed jwhui closed 5 years ago

jwhui commented 5 years ago

Describe the bug test mqtt command results in hard fault on nRF52840

To Reproduce Information to reproduce the behavior, including:

  1. Git commit id: 11c9594
  2. IEEE 802.15.4 hardware platform: nRF52840
  3. Build steps:
    cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/arm-none-eabi.cmake -DPLATFORM_NAME=nrf52 -DCLOUDIOT_DEVICE=my-device -DCLOUDIOT_REGISTRY=my-registry -DCLOUDIOT_PROJECT=ot-cloud-iot -DCLOUDIOT_REGION=us-central1 -DCLOUDIOT_PRIV_KEY=rsa_private.pem
  4. Network topology
    • RPi OTBR with nRF52840
    • nRF52840 DK running ot-rtos

Expected behavior test mqtt command succeeds as documented.

Console/log output

> ifconfig up
Done
> thread start
Done
> state
child
Done
> test mqtt
> Error during t

After this, the device is stuck in a hard fault and CLI is unresponsive.

jwhui commented 5 years ago

@gjc13, thanks for looking into this.

I tried #14 (741ac39). The output is now:

> test mqtt
> Error during token creation

However, the CLI is still responsive.

Thoughts?