Hello,
Secure Boot has now been renamed to SPM. What tutorial are you following?
Please follow the Getting started Assistant in nRF Connect for Desktop. (Not the same as nRF Connect SDK (NCS)) After installing, please start the program and click "Add/Remove Apps". This menu will allow you to add the "Getting Started Assistant (v0.9.2)". Following the assistant will ensure that you have the latest version of NCS.
When compiling using the latest version NCS, both SPM and the sample you want to program are combined into one .hex (multi-image) file that you can program. See this link for more information information. Be aware that Segger Embedded Studio 4.16 does not support debugging multi-image projects,
Kind regards,
Øyvind
is this the one?
Ah, that's good information for me to know.
That explains why there is no merged.hex in the build folder.
The best solution for you is to focus on one support ticket: #228915 and solve this first.
Can you please help me with that ticket?I am not getting any reply on that.
Yes, of course, that is why I'm here
In Segger Embedded Studio 4.16, go to File -> Open nRF Connect SDK Project. Make sure to choose nrf9160_pca10090ns under board name. This should solve your issue.
I was doing it with that option only and getting the error.
When I compile the asset tracker application using nrf9160_pca10090, I get the same error as you:

When I compile the application using nrf9160_pca10090ns, I get:

When I compile the asset tracker application using nrf9160_pca10090, I get the same error as you:

When I compile the application using nrf9160_pca10090ns, I get:

But I am doing it in non secure mode only and still getting the error.Why so?
Actually in both cases I get the errors.There is no difference in errors with and without "ns".
This is very strange behavior, I am not able to reproduce this and I don't know the reason.
Have you tried compiling using the command line? See this link.
If this does not help, I suggest that you delete your NCS folder and try to clone the NCS repository in a new folder to start from scratch.