Hello,
I am having trouble understanding the flashing process of an nrf52840. I have programmed a simple flashing example with the nRF5 SDK. I compiled the project using make and GNU gcc. If I transfer the generated hex-file with the nrf Connect Programmer and the bootloader, the example works. If I transfer the hex file with the Segger J-Flash software, it does not work. Somewhere the nrf Connect Programmer writes a few bytes extra (probably in some vector table). By the way, I can flash the bootloader with Segger J-Flash without any problems and it works. If I use Segger embedded Studio, I can even compile and flash the Blink example without a bootloader via the J-Link V8. The MBR (mbr_nrf52_2.4.1_mbr.hex) and the eleven-file of the project are then transferred. However, the elf-file cannot be flashed via the Segger software J-Flash, an error message is displayed. The corresponding hex file can be flashed, but the flashing example does not work. I also tried to flash the hex files via the command line with nrfjprog, but I got the error message "ERROR: JLinkARM DLL reported an error".
I would like to be able to compile a project with make and GNU-gcc and simply transfer the resulting hex-file to the nrf52840 without a bootloader via the programming device.
Thank you and regards
Markus