Hi,
I have a project using nrf connect 2.0.0 SDK. How can I upgrade this app to use 2.2.0 SDK instead? I have installed 2.2.0 SDK using the toolchain manager, but not sure how to bring the project to use it. The CMakeList.txt talks about
Hi,
I have a project using nrf connect 2.0.0 SDK. How can I upgrade this app to use 2.2.0 SDK instead? I have installed 2.2.0 SDK using the toolchain manager, but not sure how to bring the project to use it. The CMakeList.txt talks about
Hi Kaushalya,
If you are using VS Code to build the project, change the SDK and toolchain version. See Setting up SDK and toolchain for more information.
If you instead are building on command line, then select "Open bash" or similar next to the version of the SDK you want to use.
Make sure to check the release notes to see if there are any changes you must make in your project when migrating.
Best regards,
Marte
Hi Marte,
Thanks. I managed to change the SDK and toolchain, but not it cant seem to locate "devicetree.h, device.h and spi.h. I can see these files are in my "C:\ncs\v2.2.0\zephyr\include\zephyr". I can hardcode the absolute path, but then that would creat problems if I upgrade to another SDK.
Cheers,
Kaushalya
Hi Kaushalya,
There was a change in Zephyr 3.1.0 where all Zephyr public headers were moved to include/zephyr. Due to this, when you include Zephyr headers, you need to prefix them with zephyr/:
#include <zephyr/device.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/spi.h>
You can find this change as the first point in the list of API changes here: Zephyr 3.1.0 - Release notes.
Best regards,
Marte
Thanks Marte, that solved the problem.