This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MQTT: Failed to provision CA certificate: -14

Hi

I have five custom boards, same batch.

I used one of the boards for developing FW, based on the MQTT simple sample.

The FW uses CA certificates in an h file like the simple sample example.

When i flash the same FW to the four other boards I get:

<inf> mqtt_simple: The MQTT simple sample started
<inf> mqtt_simple: Provisioning certificates
<err> mqtt_simple: Failed to provision CA certificate: -14
<err> mqtt_simple: Failed to provision certificates

I checked using the Nordic MQTT simple sample and my board

if I run

west build -b <MY_BOARD_NAME>_ns -- -DOVERLAY_CONFIG=overlay-tls.conf && west flash
, I get the same error the remaining four boards, but not on my first initial board.

When running

west build -b <MY_BOARD_NAME>_ns && west flash

I get:

<inf> mqtt_simple: The MQTT simple sample started
<inf> mqtt_simple: Disabling PSM and eDRX
<err> lte_lc: Failed to disable eDRX, error: -8
<inf> mqtt_simple: LTE Link Connecting...
<err> lte_lc: Failed to subscribe to CEREG notifications
<err> lte_lc: Failed to enable notifications
<inf> mqtt_simple: Failed to establish LTE connection: -8
<inf> mqtt_simple: Retrying in 120 seconds
,on the four remaining boards, but not on my first initial board.

Before digging deeper into the HW, is there some configuration that I have done on the first board that needs to be set and I have forgot about it?

The FW is exactly the same between the boards, both my own and the Nordic mqtt simple sample.

As a note on three of the boards I also get:

<err> i2c_nrfx_twim: Error on I2C line occurred for message 0
<inf> mqtt_simple: The MQTT simple sample started

I have checked the error codes to this spec: https://docs.zephyrproject.org/apidoc/latest/group__system__errno.html

But it makes no sense on what the errors are about...

Any hints? HW or FW?

/Regards

Parents Reply Children
Related