I am using nrf52 and sdk12.2.2. Can I program this with bootloader and application image at once using nrf go studio?
At present I am first uploading bootloader image after that I am uploading application zip file via OTA.
But I want to upload bootloader and application file using nrf go studio for production purpose.
You want to use the nRF5x Command Line Tools for production programming, using a batch file for example.
More specifically, the tools you are looking for are mergehex and nrfjprog. They are available for linux, win, and osx. The options allow you to make one flash image out of the components. Just read through the help docs.
If you still want to use nRFgo to load the single flash image, you just load it from the application tab onto a blank device.
Download nRF Command Line Tools which include a tool called mergehex.
You can use this tool to merge any number of hex files (assuming they don't have overlapping addresses).
mergehex -m application.hex bootloader.hex softdevice.hex -o merged.hex
Next you can use nRF Go to flash the merged hex file, or you can use the command line tool nrfjprog which is included in the aforementioned package.
Where is the option to program merged hex file in nrf go studio?
I tried to program nrf52 using command line tool.
nrfjprog -f NRF52 --program ..\all.hex
My all.hex files includes 3 files
When you are using a bootloader, you also need to flash something called a "bootloader settings" hex file.
This needs to be done in order for the bootloader to start the application instead of the DFU profile.
To generate this hex file (which should be the last thing you need for everything to work) you use nrfutil