FATAL ERROR: command exited with status 1: /opt/SEGGER/JLink_V770e/JLinkExe -nogui 1 -if swd -speed 4000 -device nrf52 -CommanderScript /tmp/tmp9lqsoklajlink/runner.jlink -nogui 1

Hello, 

I am getting an error when I try to flash my device with j-link (see capture I attach) and this is some information I have:

-I can flash correctly with zephyr 3.2.0 vanila but now that I am working with NCS 2.2.0 I get this error.

-I can flash other devices with the same microcontroller (nrf52840) and NCS 2.2.0, so I just get this error in one of the devices I have.

I hope you can help me and I can provide you all information you need.

Best regards

  • Hi Naeem, the thing is that I tried to reduce the size and just now my flash says 77% and It stills not working I realized It just fails when the flash is larger than 50% and I do not know why this behaviour, I though this was because I have 2 images for dfu upgrade so I decided to erase slot1_partition and increase slot0_partition but It still not working, I do not understand... I do not know if this is a bug of v2.2.0 or I am doing something wrong...

  • Hi Ruben,

    Sorry for the delayed response.
    Your experiment seems interesting to figure out if this really is the issue. However, I am not able to conclude that. Have you done these experiments with nordic samples as well?

    I understand that enabling debug options could result into flash overflown error, but the numbers you are reporting seems too much.

    Can you produce any such case with NCS built-in samples?

    I also recommend you to use latest version of the NCS SDK that is currently v2.4.0. You may also like to visit known issues (under release notes) of concerned SDK version.

    BR,
    Naeem

  • Hi Naeem,

    I was trying to flash with another projects which flash memory used was larger than 50% and It worked good so seems the problem is only for that project and not hardware. 

    -In the past I was working with zephyr vanila and everything was working fine but now that I work with nrf 2.2.0 I have troubles, you can see that is not allocating correctly the application when I use west flash



    -I only get to flash with the next comand correctly nrfjprog -f nrf52 --debugreset && nrfjprog -f nrf52 --program build/zephyr/zephyr.hex --sectorerase --verify && nrfjprog -f nrf52 --debugreset.

    -This error just happens when my memory flash used is larger than 50% so seems maybe is something related to partitions but I do not understand because I have other project that I can flash correctly so the problems seems is just related to this project.

    ¿maybe the bootloader is not working correctly? I am going to try to install NCS for VScode and try if that fixs the problem, but all this seems like a nordic bug that is not able to allocate memory correctly.

  • I could share you my code in case you need it.

  • Hi Ruben,

    I was on vacations for last two weeks, that's why could not respond.

    Can you let me know how to reproduce the issue using Nordic Sample (or their modification) using VS Code?

Related