I have installed the latest SDK 1.3.0 using the Toolchain Manager.
I would now like to open nRF Connect SDK Projekt and get the follwoing error:


I have added the CXX environment variable, but it did not help

I have installed the latest SDK 1.3.0 using the Toolchain Manager.
I would now like to open nRF Connect SDK Projekt and get the follwoing error:


I have added the CXX environment variable, but it did not help

Hi,
The "CMakeLists.txt" field should point to the CMakeLists.txt of your project, not the board.
E.g. if you want to build the asset_tracker project, the path should be <your NCS folder>/nrf/applications/asset_tracker/CMakeLists.txt.
In addition, if you want to use the modem in the nRF9160, you must build your application as non-secure. To do that, you must select the non-secure version of the board.
I.e. nrf9160dk_nrf9160ns (notice the "ns" at the end).
Finally, in case you are not already doing it, when you install NCS using the Toolchain Manager, you must open SES (or bash/cmd) from the Toolchain Manager for the environment to be configured correctly.
Best regards,
Didrik
Hi Didrik,
thank you for your swift reply and help. now I can build the asset tracker and even the lwm2m_client which will be the base for our application.
Later yesterday the toolchain manager downloaded SDK 1.3.1, but it seems incomplete. When I select the lwm2m_client in the 1.3.1 folder the build process fails again:


For the time being I will continue with lwm2m_client from the 1.3.0 folder which works. Just to let you know there is a problem with 1.3.1.
Best regards
Dirk
Hi Didrik,
thank you for your swift reply and help. now I can build the asset tracker and even the lwm2m_client which will be the base for our application.
Later yesterday the toolchain manager downloaded SDK 1.3.1, but it seems incomplete. When I select the lwm2m_client in the 1.3.1 folder the build process fails again:


For the time being I will continue with lwm2m_client from the 1.3.0 folder which works. Just to let you know there is a problem with 1.3.1.
Best regards
Dirk
I notice that you are still using the board folder from NCS v1.3.0.
Could you try to change that to 1.3.1 as well, and see if that helps?
The zephyr map for the 1.3.1 has no boards subdirectory. It only contains module.yml. That is the reason I tried to use the old board directory.
Another question is in regard to the secure and non secure partititon. The lwm2m_client takes 169.8k Code and 111.2k Data. From the nrf9169dk_nrf9160ns.yaml file it seems 256k FLASH and 128k SRAM are available. I assume we need to put our application into the non secure partition as well. Does this mean we have only86.2k FLASH and 16.8k SRAM left for our application? What is in the secure partition?
dhandzic said:The zephyr map for the 1.3.1 has no boards subdirectory. It only contains module.yml.
Are you sure you checked <your NCS folder>/v1.3.1/zephyr, and not <your NCS folder>/v1.3.1/nrf/zephyr?
dhandzic said:What is in the secure partition?
The secure partition is used by the bootloader (MCUBoot) and/or the Secure Partition Manager (SPM).
dhandzic said:The lwm2m_client takes 169.8k Code and 111.2k Data
Where do you get those numbers from?
You should also note that in NCS, the flash partitioning is not decided by the device tree, but by the Partiion Manager script: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/scripts/partition_manager/partition_manager.html
But the actual amount of flash and RAM available is also dependent on if you enable DFU or not.




The lwm2m_client code and data size I get from the SES after the build process, but I am not sure. They are shown in the project explorer pane but memory usage pane does not have any information. If you have other numbers it would be intresting.