FOTA update for NRF9160 device via UART

Hai,

I'm facing some difficulties in programming FOTA over UART on the NRF9160 board.

Currently, by using the following command I'm trying to push the bin file via UART but my nrf9160 is not able to process that bin.

mcumgr --conntype=serial --connstring=COM17 image upload app_update.bin

how i tested is?

USB-TTL tx pin to NRF9160 Uart2 rx pin

USB -TTL rx pin to NRF9160 Uart2 tx pin

from TTL com17 i sending bin to Uart2 rx.

Firstly is there any tutorial for doing this process, if yes please share that?

Next is there any additional settings required for the device to process that bin file.

If any knows about this please share the details.

Thanks in advance.

Parents
  • Hi,

     

    I'm facing some difficulties in programming FOTA over UART on the NRF9160 board.

    Currently, by using the following command I'm trying to push the bin file via UART but my nrf9160 is not able to process that bin.

    mcumgr --conntype=serial --connstring=COM17 image upload app_update.bin

    how i tested is?

    USB-TTL tx pin to NRF9160 Uart2 rx pin

    USB -TTL rx pin to NRF9160 Uart2 tx pin

    from TTL com17 i sending bin to Uart2 rx.

    Firstly is there any tutorial for doing this process, if yes please share that?

    Unless you have specified that the uart interface is "uart1" in mcuboot, it will select the uart0 interface.

     

    Here's an example on how to setup mcuboot with serial recovery:

    hello_world_mcuboot_serial_recover.zip

     

    Be sure to change the detection pin to your wanted gpio. You need to hold this down, then reset the board to enter serial recovery mode.

     

    Kind regards,

    Håkon

  • Hai Hakon,

    Thanks for your time,

    Actually, you are right I haven't specified my uart2 in any config.

    So is this the one I have to change CONFIG_UART_CONSOLE_ON_DEV_NAME = "UART_0" to UART_2 right?

    Be sure to change the detection pin to your wanted gpio. You need to hold this down, then reset the board to enter serial recovery mode.

    Sorry, can you please explain a bit I didn't get when I have to hold the button either on the running stage or when?

     

     

  • Hi,

     

    manoj97 said:
    Sorry, can you please explain a bit I didn't get when I have to hold the button either on the running stage or when?

    The GPIO connected to a button is defined in child_image/mcuboot.conf:

    CONFIG_BOOT_SERIAL_DETECT_PIN=13

     

    If you use a nRF9160-DK, you can look at the back of the kit to see which buttons go to which GPIO.

    example: Button1 is P0.06 on the nrf9160-DK

    manoj97 said:
    So is this the one I have to change CONFIG_UART_CONSOLE_ON_DEV_NAME = "UART_0" to UART_2 right?

    You can try this and see how it works. I haven't tested this myself.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    manoj97 said:
    Sorry, can you please explain a bit I didn't get when I have to hold the button either on the running stage or when?

    The GPIO connected to a button is defined in child_image/mcuboot.conf:

    CONFIG_BOOT_SERIAL_DETECT_PIN=13

     

    If you use a nRF9160-DK, you can look at the back of the kit to see which buttons go to which GPIO.

    example: Button1 is P0.06 on the nrf9160-DK

    manoj97 said:
    So is this the one I have to change CONFIG_UART_CONSOLE_ON_DEV_NAME = "UART_0" to UART_2 right?

    You can try this and see how it works. I haven't tested this myself.

     

    Kind regards,

    Håkon

Children
No Data
Related