Twister cannot find custom out-of-tree board

I have a custom board based on nRF5340 with nRF7002 WiFi (duplicated from nrf7002dk board definition). The board
builds successfully with west build, but Twister cannot find it.

Setup:
- Custom board location: boards/roomz/RoomzDisplay/
- Board identifier: RoomzDisplay/nrf5340/cpuapp
- zephyr/module.yml contains: board_root: .
- Application location: projects/app/

board.yml

board:
  name: RoomzDisplay
  vendor: ROOMZ
  socs:
  - name: nrf5340
    variants:
    - name: ns
      cpucluster: cpuapp
    - name: nrf7001
      cpucluster: cpuapp
      variants:
      - name: ns

This builds ok:
west build -b RoomzDisplay/nrf5340/cpuapp -s projects/app


But this fails
west twister -T tests/ -p RoomzDisplay/nrf5340/cpuapp
# ERROR: unrecognized platform - RoomzDisplay/nrf5340/cpuapp

I tried various things:
1. west twister --board-root .
2. BOARD_ROOT=/path/to/project west twister
3. Created tests/twister.yaml with board-root: ..


Twister works fine with Nordic's in-tree board:
west twister -T tests/ -p nrf7002dk/nrf5340/cpuapp

Question: How do I make Twister recognize my out-of-tree board?

Environment: nRF Connect SDK v3.1.1, Windows 10

Parents Reply
  • Hi,

     

    You could try the same procedure with the custom board given in the example-application:

    https://github.com/zephyrproject-rtos/example-application

    cedric.gerber said:

    I just tried to duplicate my board directory to "C:\ncs\v3.1.1\zephyr\boards"

    Now I get the error:

    ERROR: Board(s): {'RoomzDisplay'}, defined multiple times.
    Last defined in C:\workspace\gen3\boards\roomz\roomzdisplay\board.yml

    You need to remove it from the zephyr/boards folder if you want to use it as a out-of-tree board.

    cedric.gerber said:
    I suppose the error is actually not due to being out of tree, but the parsing of the board files with twister? The build is ok.

    I suspect this as well. I would recommend that you contact the zephyr community related to twister issues.

     

    Kind regards,

    Håkon

Children
Related