This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Upgrade to Zephyr OS 2.1 breaks build

A project built using the nRF9160 and Zephyr OS v1.14.99 previously built and ran just fine, but since upgrading to the latest versions of the zephyr and nrf repos (using west update) the build doesn't work. It looks like there is an error somewhere in the code generation.

This project uses a custom board and I essentially copied the nrf9160_pca10090 board folder and renamed things to match the project name and renumbered the pins. I also made an overlay file for the spm library in the nrf repo. As I said, before updating my copies of the repos this project built and ran just fine.

Here is a snippet showing the type of error I'm seeing:

Parents
  • I figured out what the issue was - the syntax in the DTS overlay files changed. Previously. an entry looked like this:

    &uart2 {
        status = "ok";
    };

    Now it looks like this:

    &uart2 {
        status = "okay";
    };

    Simply changing every "ok" to "okay" fixed the issue.

Reply
  • I figured out what the issue was - the syntax in the DTS overlay files changed. Previously. an entry looked like this:

    &uart2 {
        status = "ok";
    };

    Now it looks like this:

    &uart2 {
        status = "okay";
    };

    Simply changing every "ok" to "okay" fixed the issue.

Children
  • Actually this wasn't the issue. It was actually that the cmake boilerplate needed to be updated to support my custom board. It was copy-pasting these lines and changing "nrf9160_pca10090ns" and "nrf9160_pca10090" with the board identifiers of my custom board:

      if(${BOARD} STREQUAL nrf9160_pca10090ns)
        set(BOARD nrf9160_pca10090)
        message("Changed board to secure nrf9160_pca10090 (NOT NS)")
      endif()