This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

DFU speed over UART on NCS/Zephyr

Hey all,

Here's another question. Many of the examples in the Nordic Connect SDK are rather large. Transferring them with MCUmgr at 115200 BAUD takes sometimes more than a minute. I took a look at how MCUmgr is implemented. It appears it uses the tarm serial library. The problem seems that Cgo may not support bauds greater than 230400. (Even then tarm doesn't go above 115200) Has anyone experimented with higher speeds over UART + MCUBoot? It also seems like there may be some work being done in pynrfjprog but no direct developer tools like nrfjprog have been updated to use this functionality.

Thanks!

Parents
  • Hi Jared,

    I do not think that any of us have experimented with UART + MCUBoot with higher speeds. 

    It also seems like there may be some work being done in pynrfjprog but no direct developer tools like nrfjprog have been updated to use this functionality.

    You are right, So we need to wait until higher speeds support is officially added in Zephyr. I do not have any timelines for this.

  • Thanks !

    I got it working at 1M BAUD using pynrfjprog. Speeds are so much faster now! Slight smile

    Now my question is, it seems that my .overlay file in the ncs/bootloader/mcuboot/boot/zephyr/boards directory is not being applied. I want to set the speed to 1M BAUD while leaving the application at 115200. Any thoughts there?

    It does work the other way around (i.e. if I set the BAUD to 1M in the base .dts file and then update it to 115200 in the application) I'm still getting my head around devicetree configuration. Any help is appreciated!

Reply
  • Thanks !

    I got it working at 1M BAUD using pynrfjprog. Speeds are so much faster now! Slight smile

    Now my question is, it seems that my .overlay file in the ncs/bootloader/mcuboot/boot/zephyr/boards directory is not being applied. I want to set the speed to 1M BAUD while leaving the application at 115200. Any thoughts there?

    It does work the other way around (i.e. if I set the BAUD to 1M in the base .dts file and then update it to 115200 in the application) I'm still getting my head around devicetree configuration. Any help is appreciated!

Children
Related