Getting started with blinky on ublox nina-306

I'm just trying to get my feet under me to write some code for the nina-306 module. I'm playing along, and following the dev academy course.  I can't tell if this worked or not (my boards not coming till monday so I can't try to flash it).

After I build, in the terminal I see this:

* Executing task: nRF Connect: Build: blinky/build_1 (active)

Building blinky
west build --build-dir /Users/eric/Documents/work/beacon/blinky/build_1 /Users/eric/Documents/work/beacon/blinky

[7/7] Linking C executable zephyr/zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 21912 B 1 MB 2.09%
RAM: 7680 B 256 KB 2.93%
IDT_LIST: 0 GB 32 KB 0.00%
Generating files from /Users/eric/Documents/work/beacon/blinky/build_1/zephyr/zephyr.elf for board: ubx_evkninab3
* Terminal will be reused by tasks, press any key to close it.

 But under problems I see:

CMake Error at /opt/nordic/ncs/v2.7.0-rc2/zephyr/cmake/modules/extensions.cmake:3333 (message):BOARD is not being defined on the CMake command-line, in the environment or
by the app.

I did define the board by picking it in the build configuration I thought, but maybe there's an issue.

I also get 22 warnings in the prj section.

I'm guessing this didn't work?  Any advice to move forward?

Thank you

  • found another answer where the user had to manually modify their CMakeLists.txt file and put in their board type. Really this should have automatically happened when I selected the board in the build configuration step.  But anyway this is the missing part in bold below.

    cmake_minimum_required(VERSION 3.20.0)
    set(BOARD ubx_evkninab3_nrf52840)
    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
    project(blinky)

    target_sources(app PRIVATE src/main.c)
Related