Re: DFU over UART #nrf52832


gurpreet+zephy@...
 

Thanks Andrzej and Carles. 
I tried these steps but had some compiler errors with 
CONFIG_SOC_NRF52840_QIAA=y
enabled.
warning: the value '' is invalid for UART_0_NRF_TX_PIN (defined at /home/gps/src/zephyr/boards/arm/nrf52_pca10040/Kconfig.defconfig:14, drivers/serial/Kconfig.nrfx:62), which has type int -- assignment ignored
 
warning: the value '' is invalid for UART_0_NRF_RX_PIN (defined at /home/gps/src/zephyr/boards/arm/nrf52_pca10040/Kconfig.defconfig:17, drivers/serial/Kconfig.nrfx:69), which has type int -- assignment ignored
 
Error: Aborting due to non-whitelisted Kconfig warning 'warning: the value '' is invalid for
UART_0_NRF_TX_PIN (defined at /home/gps/src/zephyr/boards/arm/nrf52_pca10040/Kconfig.defconfig:14,
drivers/serial/Kconfig.nrfx:62), which has type int -- assignment ignored'. Note: If this warning
Once I disabled this, the code successfully compiled. I then proceeded to add a serial interface to mcumgr as follows:
>mcumgr conn show
Connection profiles: 
  myserial-nrf: type=serial, connstring='dev=/dev/ttyACM0,baud=115200'

But when i try to run it, there is a timeout. 
>mcumgr -c "myserial-nrf" image list
Error: NMP timeout
 
Note, the same command works with BLE. 

>mcumgr --conntype ble --connstring 'peer_name=Zephyr' image list 
Images:
 slot=0
    version: 1.2.0
    bootable: true
    flags: active confirmed
    hash: 5d0888224321f9734009ab06a0b11c76e5f0303baaad421534f99de590ec0123
Split status: N/A (0)

Any thoughts on what I may be doing wrong here? 

Thanks in advance,
Gurpreet 

Join users@lists.zephyrproject.org to automatically receive all group messages.