adafruit / Adafruit_nRF52_Bootloader

USB-enabled bootloaders for the nRF52 BLE SoC chips
MIT License
450 stars 409 forks source link

error: "NRF_REGULATORS_HAS_POFCON" is not defined #224

Closed ada19911201 closed 3 years ago

ada19911201 commented 3 years ago

Operating System

Windows 10

INFO_UF2.TXT

feather_nrf52840_express

What happened ?

In file included from lib/nrfx/drivers/include/nrfx_power.h:40:0, from lib/nrfx/drivers/src/nrfx_power.c:38: lib/nrfx/drivers/include/nrfx_power_compat.h:49:5: error: "NRF_REGULATORS_HAS_POFCON" is not defined, evaluates to 0 [-Werror=undef]

if NRF_REGULATORS_HAS_POFCON

 ^~~~~~~~~~~~~~~~~~~~~~~~~

In file included from lib/nrfx/drivers/include/nrfx_power.h:40:0, from src/main.c:43: lib/nrfx/drivers/include/nrfx_power_compat.h:49:5: error: "NRF_REGULATORS_HAS_POFCON" is not defined, evaluates to 0 [-Werror=undef]

if NRF_REGULATORS_HAS_POFCON

 ^~~~~~~~~~~~~~~~~~~~~~~~~

ccoommppiillaattiioonn tteerrmmiinnaatteedd dduuee ttoo --WWffaattaall--eerrrroorrss..

How to reproduce ?

I use make BOARD=feather_nrf52840_express all

Debug Log

No response

Screenshots

No response

jerryneedell commented 3 years ago

hmm - it builds OK for me (on MacOS and Linux - arm-none-eabi-gcc 10.2.1) Did you update the submodules after cloning the repository?

git clone https://github.com/adafruit/Adafruit_nRF52_Bootloader
cd Adafruit_nRF52_Bootloader
git submodule update --init

per the README.md
https://github.com/adafruit/Adafruit_nRF52_Bootloader

ada19911201 commented 3 years ago

I'm using GCC version 7.3.1, I'll update to 10.2 to try it out