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

NMP timeout on MCUMGR

Hi, 

I build the smp_svr sample for nrf52dk_nrf52832. I installed Go on my windows machine and I am able to run the mcumgr tool.
When connecting Teraterm to the UART of my board, I see the boot info and log info from the sample.

Disconnecting teraterm and running mcumgr from a terminal : >mcumgr -c acm0 image list
Error: NMP timeout

What can I do to solve this?

Parents
  • Hi Bob,

    Could you let me know what was your connstring and type  in the mcumgr script ? 


    Have you made sure that when you compilied smp_svr you did add CONFIG_MCUMGR_SMP_UART=y into the config ? It's required for SMP_SVR to support UART. 

  • Hi,
    I added the overlay-serial.conf, overlay-fs.conf and overlay-shell-mgmnt.conf as Kconfig fragments. (VSCode). The generated autoconfig.h shows #define CONFIG_MCUMGR_SMP_UART 1. So I think the CONFIG_MCUMGR_SMP_UART=y was indeed set.
    I used the following mcumgr strings:
    mcumgr conn add acm0 type="serial" connstring="com7,baud=115200,mtu=512"
    resulted in "Connection profile acm0 successfully added"
    Then: mcumgr -c acm0 image list
    Resulted in "Error: NMP timeout"

    My final goal is to have a POC for the DFU, image update.
    I flashed a smp_svr example and want to update the application with a new hello world 2 or similar.
    I hope I am on the right track...

  • Hi Bob,

    Could you try again without using overlay-shell-mgmnt.conf  ? 
    The shell-mgmnt only needed if you plan to use shell commands at the same time with mcumgr. If not you can remove it. 
    I am seeing the same issue if I include  overlay-shell-mgmnt.conf . It works fine if I removed the configuration. 

Reply
  • Hi Bob,

    Could you try again without using overlay-shell-mgmnt.conf  ? 
    The shell-mgmnt only needed if you plan to use shell commands at the same time with mcumgr. If not you can remove it. 
    I am seeing the same issue if I include  overlay-shell-mgmnt.conf . It works fine if I removed the configuration. 

Children
No Data
Related