I am working on adapting a project that compiles/flashes the code with a makefile that uses nrfjprog in a cmd line to program a blank nrf52480 with the softdevice and application (no mentioned bootloader).
It doesnt appear that the code utilizes anything specific about the jlink connection, other than that the chip is recognized/linked to the cmd line device via the j-link. Would this same code then work with any 'link' device to get the nrf recognized by the cmd line? or is there something about the nrfjprog that requires specifically j-link? what is the difference between nrfutil and nrfjprog? or is there documentation that I could look up for the code behind nrfjprog?
In poking around trying to utilize a different type of debugger/swd flasher, i managed to get nrfutil to output a compiled softdevice and application zip, with included .dat, .bin, and a .json file. If i were to try 'bit banging' the output files onto the chip, which address would i put each .dat/.bin at? is the json relevant? I would expect the softdevice segment to be at 0x0, and per docs, the soft device being used looks for the application at 0x27000, would i put the .dat files (which appear to be binary) before or after each .bin file? or does the .dat file just get used by nrfutil to flash to the right locations?
In trying to smash the code onto the chip/flash so far "manually" setting the soft device in any .bin format (directly converted from hex or with nrfutil) and the app from nrfutil no combination of 0x0 soft device and 0x27000 seem to give a responsive chip but im not sure where .dat goes if anywhere. i dont have a way with the 'manual' flasher to set ram addresses, is that necessary?
Please let me know what other information I should be using/needing!
Thanks