case about nRF5340 DFU

Hi,

1.In ncs v3.0.0, can both USB DFU and UART DFU be enabled simultaneously on the nRF5340 DK board?
2. If USB and UART DFU can be enabled simultaneously, then how should they be configured?
3. The following example has been tested and can support BLE DFU,UART DFU and USBDFU, but cannot support both USBDFU and UART DFU simultaneously. How should it be modified to support both USBDFU and UART DFU simultaneously?

1_peripheral_lbs_dfu.zip

Kind regards,
Peter.Min

Parents
  • Hi Peter, 

    I haven't tried but as far I know it should be possible to have dual transport to do MCUMGR DFU.

    Which error do you have when you try to do dual USB + UART ? 

    I looked at the sample and saw you used CONFIG_MCUMGR_TRANSPORT_USB=y . But as far as I know this configuration doesn't exist. 
    I assume it's CONFIG_BOOT_SERIAL_CDC_ACM=y that what decide if USB should be supported or not. 

    Please let us know the issue when you try both UART and USB CDC ACM. 

  • Hi Hung Bui,

    There were no errors or the like.

    When the UART DFU test was available, the USB dfu was added. At this point, the USB DFU test was available, but the port of the UART DFU in use did not respond to the test tool AuTerm.

    Kind regards,
    Peter.Min

  • Hi Peter, 


    I haven't got time to try what you described. You may need to step into the code and check what doesn't work. Please be aware that we don't make the code for MCUMGR or SMP_SVR as it's part of Zephyr. 


    Please try to step in the code and check why the command on UART doesn't reach MCUMGR. I would suspect that there could be conflict on how the MCUMGR command from USB and from UART.  


Reply
  • Hi Peter, 


    I haven't got time to try what you described. You may need to step into the code and check what doesn't work. Please be aware that we don't make the code for MCUMGR or SMP_SVR as it's part of Zephyr. 


    Please try to step in the code and check why the command on UART doesn't reach MCUMGR. I would suspect that there could be conflict on how the MCUMGR command from USB and from UART.  


Children
No Data
Related