Issues Flashing nrf52840

Trying to flash devices and getting this error:

make flash

DONE nrf52840_xxaa
Flashing: _build/nrf52840_xxaa.hex
nrfjprog -f nrf52 --program _build/nrf52840_xxaa.hex --sectorerase
ERROR: Unable to connect to a debugger.
ERROR: The --family option given with the command (or the default from
ERROR: nrfjprog.ini) does not match the device connected.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
make: *** [Makefile:310: flash] Error 18

When I use the --log command I get tons of these errors:
[error]: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".

[error]: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".

[error]: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".

[error]: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".

[error]: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".

[error]: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".

[error]: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".



This is very odd as I'm running Ubuntu Linux so I'm not sure why it's looking for DLLs

  • Hi,

     

    ERROR: Unable to connect to a debugger.
    ERROR: The --family option given with the command (or the default from
    ERROR: nrfjprog.ini) does not match the device connected.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.

    Are you certain that your device is powered?

    This is a normal output if the target device is not properly powered, or connected via SWD lines.

     

    This is very odd as I'm running Ubuntu Linux so I'm not sure why it's looking for DLLs

    I agree, but it is just visual from segger's side. On your platform, the library is a native shared object.

     

    Kind regards,

    Håkon

Related