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

Regarding flash download failed... (nrf51822)

Hi I am using nrf51 SDK (version 10)

firmware:s110_nrf51_8.0.0_softdevice.

while uploading program in nrf51822 through J-segger I have getting following errors:

  • *** error 56: cannot open file
    Error: Flash Download failed - Could not load file '..\..\..\..\..\..\components\softdevice\s110\hex\s110_nrf51_8.0.0_softdevice.hex'
    Flash Load finished at 22:19:30
  • J-Link warning & keil IDE stop working.

Please advise how can i go forward...

how to solved this problem...

Parents
  • I met similar problem today and I have solved it.
    I'm using SDK "nRF5_SDK_15.2.0_9412b96" and chip nRF52840.

    When I have copied project "[nRF5_SDK_15.2.0_9412b96]\examples\ble_peripheral\ble_app_uart_xxx" as "...\ble_app_uart_yyy" to get new start, I found that in project "ble_app_uart_yyy", Keil 5  cannot download SoftDevice file to the chip.
    Keil 5 reports an error which is almost the same with as said by Deepak Handore.
    "Error: Flash Download failed  -  Could not load file '..\..\..\..\..\..\components\softdevice\s140\hex\s140_nrf52_6.1.0_softdevice.hex'"
    But in old project "ble_app_uart_xxx", there is no problem.
    The SoftDevice file is OK. I have checked it.

    I tried to reduce the length of directory name "ble_app_uart_yyy", and then the problem miraculously disappered.
    Before: [nRF5_SDK_15.2.0_9412b96]\examples\ble_peripheral\ble_app_uart_yyy...yyy (very long name)
    After:  [nRF5_SDK_15.2.0_9412b96]\examples\ble_peripheral\ble_app_uart_yyy       (shorter name)
    I have check that if (length_of_dir_name > 54), Keil 5 would report this problem.
    And if (length_of_dir_name <= 54), everything is fine.

    Good luck.

Reply
  • I met similar problem today and I have solved it.
    I'm using SDK "nRF5_SDK_15.2.0_9412b96" and chip nRF52840.

    When I have copied project "[nRF5_SDK_15.2.0_9412b96]\examples\ble_peripheral\ble_app_uart_xxx" as "...\ble_app_uart_yyy" to get new start, I found that in project "ble_app_uart_yyy", Keil 5  cannot download SoftDevice file to the chip.
    Keil 5 reports an error which is almost the same with as said by Deepak Handore.
    "Error: Flash Download failed  -  Could not load file '..\..\..\..\..\..\components\softdevice\s140\hex\s140_nrf52_6.1.0_softdevice.hex'"
    But in old project "ble_app_uart_xxx", there is no problem.
    The SoftDevice file is OK. I have checked it.

    I tried to reduce the length of directory name "ble_app_uart_yyy", and then the problem miraculously disappered.
    Before: [nRF5_SDK_15.2.0_9412b96]\examples\ble_peripheral\ble_app_uart_yyy...yyy (very long name)
    After:  [nRF5_SDK_15.2.0_9412b96]\examples\ble_peripheral\ble_app_uart_yyy       (shorter name)
    I have check that if (length_of_dir_name > 54), Keil 5 would report this problem.
    And if (length_of_dir_name <= 54), everything is fine.

    Good luck.

Children
Related