Topics

Support for Adafruit Feather #nrf52840 Sense #nrf52840


Leo
 

Hello Zephyr team!

I have a question about board support and I also need your help building an example project.

1) Does Zephyr support the board below? How would I go about using its sensors?
https://www.adafruit.com/product/4516

2) Is this the right place to ask questions about NordicSemi's downstream of Zephyr's repository? If not, please point me to the right place!
The issue that I am having is that one example project that builds for nrf52840dk_nrf52840, does not build for adafruit_feather_nrf52840.

Example project: ncs/nrf/samples/esb/ptx
Zephyr version: 2.4.99
ZEPHYR_TOOLCHAIN_VARIANT is gnuarmemb
west build -b adafruit_feather_nrf52840 C:/embedded/ncs/nrf/samples/esb/ptx
Not sure which of the errors would better help identifying the issue, but here's the first one:
**************
    In file included from C:/embedded/ncs/zephyr/include/arch/arm/aarch32/arch.h:20,
                     from C:/embedded/ncs/zephyr/include/arch/cpu.h:19,
                     from C:/embedded/ncs/zephyr/include/kernel_includes.h:38,
                     from C:/embedded/ncs/zephyr/include/kernel.h:17,
                     from C:/embedded/ncs/zephyr/include/init.h:11,
                     from C:/embedded/ncs/zephyr/include/device.h:22,
                     from C:/embedded/ncs/zephyr/include/drivers/clock_control.h:26,
                     from C:/embedded/ncs/nrf/samples/esb/ptx/src/main.c:6:
    C:/embedded/ncs/nrf/samples/esb/ptx/src/main.c: In function 'leds_init':
    C:/embedded/ncs/zephyr/include/devicetree.h:202:32: error: 'DT_N_ALIAS_led2_P_gpios_IDX_0_VAL_pin' undeclared (first use in this function); did you mean 'DT_N_S_leds_S_led_0_P_gpios_IDX_0_VAL_pin'?
      202 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
          |                                ^~~~~~~~~~~
    ...
    ...
    ...
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\embedded\build'
**************

The repository in question is https://github.com/nrfconnect/sdk-nrf/ which is the only one that has the esb/ptx example.
How do I build that specific example for this board?

Thanks for your help!
Best,
Leo


Carles Cufi
 

Hi Leo,

 

Zephyr seems to support the nRF52840 Feather Express, but not the Feather Sense:

https://docs.zephyrproject.org/latest/boards/arm/adafruit_feather_nrf52840/doc/index.html

 

This is the right place for questions about this board, not Nordic’s downstream.

 

I encourage you to read through the board porting guide and submit a Pull Request with the support for this board:

https://docs.zephyrproject.org/latest/guides/porting/board_porting.html

 

Once this board is functional in Zephyr, Nordic’s downstream will pick it up automatically and you’ll be able to use esb with it.

 

Regards,

 

Carles

 

From: users@... <users@...> On Behalf Of Leo via lists.zephyrproject.org
Sent: 06 December 2020 03:47
To: users@...
Subject: [Zephyr-users] Support for Adafruit Feather #nrf52840 Sense

 

Hello Zephyr team!

I have a question about board support and I also need your help building an example project.

1) Does Zephyr support the board below? How would I go about using its sensors?
https://www.adafruit.com/product/4516

2) Is this the right place to ask questions about NordicSemi's downstream of Zephyr's repository? If not, please point me to the right place!
The issue that I am having is that one example project that builds for nrf52840dk_nrf52840, does not build for adafruit_feather_nrf52840.

Example project: ncs/nrf/samples/esb/ptx
Zephyr version: 2.4.99
ZEPHYR_TOOLCHAIN_VARIANT is gnuarmemb
west build -b adafruit_feather_nrf52840 C:/embedded/ncs/nrf/samples/esb/ptx
Not sure which of the errors would better help identifying the issue, but here's the first one:
**************
    In file included from C:/embedded/ncs/zephyr/include/arch/arm/aarch32/arch.h:20,
                     from C:/embedded/ncs/zephyr/include/arch/cpu.h:19,
                     from C:/embedded/ncs/zephyr/include/kernel_includes.h:38,
                     from C:/embedded/ncs/zephyr/include/kernel.h:17,
                     from C:/embedded/ncs/zephyr/include/init.h:11,
                     from C:/embedded/ncs/zephyr/include/device.h:22,
                     from C:/embedded/ncs/zephyr/include/drivers/clock_control.h:26,
                     from C:/embedded/ncs/nrf/samples/esb/ptx/src/main.c:6:
    C:/embedded/ncs/nrf/samples/esb/ptx/src/main.c: In function 'leds_init':
    C:/embedded/ncs/zephyr/include/devicetree.h:202:32: error: 'DT_N_ALIAS_led2_P_gpios_IDX_0_VAL_pin' undeclared (first use in this function); did you mean 'DT_N_S_leds_S_led_0_P_gpios_IDX_0_VAL_pin'?
      202 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
          |                                ^~~~~~~~~~~
    ...
    ...
    ...
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\embedded\build'
**************

The repository in question is https://github.com/nrfconnect/sdk-nrf/ which is the only one that has the esb/ptx example.
How do I build that specific example for this board?

Thanks for your help!
Best,
Leo


William Fish
 

Hi Leo,
The Adafruit Sense is much like the Arduino Sense, both use the nRF52840 but use a modified bootloader. They have been designed to work with the Arduino platform.

Luckily work porting the Arduino sense version is underway (check out the pull request on the Zephyr GitHub). So far it compiles and boots, there are a few issues still to be ironed out but if you could assist it would be appreciated. It shouldn't be a huge leap to get it working on the Adafruit version.

https://github.com/zephyrproject-rtos/zephyr/pull/29097

Billy..