This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Could not install bootloader after softdevice.

Hi everyone.

I have a custom board with nRF52832. I am using J-Link for programming. In my custom board, SWD pins are exposed. So I can erase nRF52832 succesfully and programmed SoftDevice.

And my problem is starting now. When i try to program bootloader (Bootloader information: feather_nrf52832_bootloader-0.6.2_s132_6.1.1) J Link says to me:

Conecting to J-Link...Connecting to target...Downloading...ERROR: Could not download file.
Done

What am I doing wrong? My english is not native so i hope that i can explain the situation. 

(By the way, P0.20 and P0.22 pins are pulled up to VCC by 10K resistors. )

Best Regards..

Parents
  • Hello,

    The feather_nrf52832_bootloader-0.6.2_s132_6.1.1.hex I downloaded from here: https://github.com/adafruit/Adafruit_nRF52_Bootloader/releases already included the Softdevice. Maybe that explains why you can't load it.

    Either way, please try to use our Programmer app in nRF Connect for Desktop and see if you get the same result.

    Memory layout after programming the hex file:

    Best regards,

    Vidar

  • Hello Vidar,

    I downloaded bootloader from your link too. Anyway i try tu use programmer app in nRF Connect for Desktop. I am adding hex file and see file memory load but there is another problem. It does not recognize my Jlink. 

    Select device says to me choose a Nordic Development Kit to your computer. My version is J-Flash Lite V6.86a. Maybe my version is older. So device part is not active. 

    I have worked a couples week ago with nrf52840 and everything is working well that time. But now i could not move forward. 

    If you want to my custom board i can send some pics.

    Any idea for me again?

    Best Regards..

  • Hello,

    It should work with any J-link programmer. Does it not appear in the device dropdown menu in the top left corner? Anyway. Maybe you can try nrfjprog from the command line instead (nRF Command Line Tools).

    e.g.

    > nrfjprog --program feather_nrf52832_bootloader-0.6.2_s132_6.1.1 --chiperase --reset

    Best regards,

    Vidar

  • Hello again,

    I used 

    > nrfjprog --program feather_nrf52832_bootloader-0.6.2_s132_6.1.1 --chiperase --reset

    in command line. 

    ERROR: Unable to connect to a debugger.
    ERROR: JLinkARM DLL reported an error. Try again. If error condition
    ERROR: persists, run the same command again with argument --log, contact Nordic
    ERROR: Semiconductor and provide the generated log.log file to them.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.

    I am getting confused. Could I have made a mistake in the installation?

    I could not see Jlink in programmer for example.

    By the way i am using this device in my custom board.

    https://www.raytac.com/product/ins.php?index_id=31

    And I sampled for my board adafrfuit schematic.

    https://learn.adafruit.com/assets/52793

    Still i could not find a solution? Thanks for the replies Vidar again. really apreciated.

    Best Regards..

Reply
  • Hello again,

    I used 

    > nrfjprog --program feather_nrf52832_bootloader-0.6.2_s132_6.1.1 --chiperase --reset

    in command line. 

    ERROR: Unable to connect to a debugger.
    ERROR: JLinkARM DLL reported an error. Try again. If error condition
    ERROR: persists, run the same command again with argument --log, contact Nordic
    ERROR: Semiconductor and provide the generated log.log file to them.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.

    I am getting confused. Could I have made a mistake in the installation?

    I could not see Jlink in programmer for example.

    By the way i am using this device in my custom board.

    https://www.raytac.com/product/ins.php?index_id=31

    And I sampled for my board adafrfuit schematic.

    https://learn.adafruit.com/assets/52793

    Still i could not find a solution? Thanks for the replies Vidar again. really apreciated.

    Best Regards..

Children
Related