Not possible to write a device certificate with at AT%CMNG=0,16842753,1

NCS: v2.7.0
nRFCloud/utils: a2db3ffedbda237f9c1efb7a68ec2d270c346e56
Hardware: Custom Board with nRF9161


I am writing a provisioning automation (with robotframework), but I am stuck at writing the signed device certificate back to the device.
When writing the certificate:



So I tried to follow the solution proposed by Nordic.

I flashed the modem-shell:

and ran the scripts in github.com/.../utils.git:


and


But I get the same error again, please find the log attached:





Could you help me to get more insight on the error?

  • Hello,

    Available ports:
     1: /dev/ttyACM0         nRF9160-DK
    Opening port /dev/ttyACM0 as generic device...

    -> at AT+CGMR
    <- mosh:~$ at AT+CGMR
    <- mfw_nrf91x1_2.0.2
    <- OK

    saw this in the log. Are you using the nrf9160 DK as a UART-USB CDC ACM bridge to your custom board? If not, why do you run MFW on nRF9160 DK?

  • Are you using the nrf9160 DK as a UART-USB CDC ACM bridge to your custom board?

    yes

  • Have you tried writing the cert directly with at+cmng? Does that also fail?

  • Without CONFIG_AT_SHELL?

  • Just using the normal AT command interface.