I created a copy of bluetooth/peripheral example and copied the nRF5340DK board files to make my custom board definitions.
The guideby Øyvind A. Sandberg is really good here although a bit more detail in where you reference the board folder name vs where you reference you app id would be nice.
When I build using west on commandline it all works, but when I use the "open nRF Connect SDK Project" function in SES to generate project files (.emProject) I cannot build result in SES.
Assuming it could be a path issue I moved the proejctfolder to c:\test\ and then it builds in both commandline and SES.
The difference is the name of the build folder in SES is generated based on board name and is 29 characters while the folder when using west on commandline is "build" aka 5 characters.
It has trouble when it comes to the dependencies for cpureset object which has a very long convoluted path.
Is there a workaround for this? I'd rather not have to use the drive root to work in just to avoid a path issue...