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

burning bootloader and uploading program

Hello,

I have been trying to upload a program and continually get the error; Timed out waiting for acknowledgement from device. Failed to upgrade target. No data received on serial port.

I have tried burning Bootloader but get the same above error message. I have tried this procedure on 2 - nRF52832-DK boards, an Adafruit Bluefruit Feather nRF52832 and a personal project using an nRF52832 MDBT42Q-512KV2. I have tried with both a Mac and PC. I am using Bootloader "0.3.0 SoftDevice s132 6.1.1. Furthermore I have made attempts with J-Link for Bluefruit nRF52, Bootloader DFU for Bluefruit nRF52 using Arduino 1.8.12. I have used various versions of Adafruit nRF52 versions through Board manager. Furthermore I have tried programing using a command prompt on both the PC and Mac. I have used multiple Serial to USB cables.

That about sums it up. The only thing I can get to intermittently work is burning the bootloader to a nRF52832-DK board that will the only accept one upload of a program. The I try to upload another program I get the same above error until I burn the bootloader again. It will then accept a program but only once. How strange!!! - this process only works on one DK board.

Anything suggestions on what to do next to get things moving ahead?

I appreciate any feedback you may have.

  • I have been trying to upload a program and continually get the error; Timed out waiting for acknowledgement from device. Failed to upgrade target. No data received on serial port.

     Where do you get this error, and how do you try to upload your program? Do you use a debugger? Or BLE? Or Serial (nrfutil) or USB(nrfutil)?

    NB: We are really short staffed due to Summer Holidays in Norway. You must expect some extra delay in technical questions these days, I am afraid. I am sorry for the inconvenience.

    BR

    Edvin

  • Hi Edvin,

    I get it. Things are far from normal anywhere on the globe. In answer to your question, I have tried the following methods you have described. I ave used nrf52832-dk, JLink programmer, and USB. Have not tried serial or BLE. Last night I did have success burning to an Adafruit Feather nrf52832 using JLink to first run msddisable then burn Bootloader followed by USB uploading program. Unfortunately, I can also use this method to upload to the nrf52832-DK. Hope this gives you some insight. I know I must be close but I just can't seem to uncover the missing link. Stay well,

  • I have never seen an Adafruit Feather before, and I don't know how they work, just so that we are on the same page here. Does this have an on board debugger? Or how would you usually program it?

    I am still not sure if this is a question on "How do I implement my own custom bootloader?" or "How do I program my adafruit feather?".

     

    I am using Bootloader "0.3.0 SoftDevice s132 6.1.1.

     What is this?

    Is this at all related to the nRF5 SDK? Or are you using the Arduino IDE?

  • Hi Edvin,

    The Adafruit Feather Is a breakout board for the nRF52832 which is very useful for prototyping.

    http://www.adafruit.com/product/3406

    I have my own project using the Adafruit module.

    http://www.adafruit.com/product/4077

    My problem is, I can't seem to burn boot loaders or upload programs. 

    The error I get for all devices including the Nordic nRF52832-DK is "Timed out waiting for acknowledgement from device. Failed to upgrade target. No data received on serial port."

    I have check all connections to the nRF52832s which seem to be OK. I am trying to gain insight on what causes the above stated error and how to overcome it.

    I appreciate your help.

    Craig H

  • Hello Craig,

     

    Edvin said:

    I am using Bootloader "0.3.0 SoftDevice s132 6.1.1.

     What is this?

    Is this at all related to the nRF5 SDK? Or are you using the Arduino IDE?

     What is bootloader version 0.3.0? Where did you find this?

    If you have a JLink programmer, can you please try to download and install nrf command line tools, and use the command:

    nrfjprog --program bootloader.hex --verify

    What does it say then?

Related