nucleof446re demo build issue

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: barthess, RoccoMarco

flyingk
Posts: 2
Joined: Sat Nov 30, 2019 11:07 am

nucleof446re demo build issue

Postby flyingk » Sat Nov 30, 2019 11:14 am

Attempting to build the unmodified nucleof446re 64 demo results in

11:10:16 **** Incremental Build of configuration Default for project RT-STM32F446RE-NUCLEO64 ****
make -j11 all
Compiling chcoreasm_v7m.S
Compiling hal.c
Compiling hal_st.c
Compiling hal_buffers.c
Compiling hal_queues.c
Compiling hal_mmcsd.c
Compiling hal_pal.c
Compiling hal_serial.c
Compiling nvic.c
Compiling stm32_isr.c
Compiling hal_lld.c
Compiling stm32_dma.c
In file included from ../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore.h:196:0,
from ../../ChibiOS_19.1.3/os/rt/include/ch.h:110,
from ../../ChibiOS_19.1.3/os/hal/osal/rt/osal.h:32,
from ../../ChibiOS_19.1.3/os/hal/include/hal.h:28,
from ../../ChibiOS_19.1.3/os/hal/src/hal.c:25:
../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore_v7m.h:179:6: error: #error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
#error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
^
In file included from ../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore.h:196:0,
from ../../ChibiOS_19.1.3/os/rt/include/ch.h:110,
from ../../ChibiOS_19.1.3/os/hal/osal/rt/osal.h:32,
from ../../ChibiOS_19.1.3/os/hal/include/hal.h:28,
from ../../ChibiOS_19.1.3/os/hal/src/hal_st.c:25:
../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore_v7m.h:179:6: error: #error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
#error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
^
In file included from ../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore.h:196:0,
from ../../ChibiOS_19.1.3/os/rt/include/ch.h:110,
from ../../ChibiOS_19.1.3/os/hal/osal/rt/osal.h:32,
from ../../ChibiOS_19.1.3/os/hal/include/hal.h:28,
from ../../ChibiOS_19.1.3/os/hal/src/hal_mmcsd.c:25:
../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore_v7m.h:179:6: error: #error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
#error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
^
In file included from ../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore.h:196:0,
from ../../ChibiOS_19.1.3/os/rt/include/ch.h:110,
from ../../ChibiOS_19.1.3/os/hal/osal/rt/osal.h:32,
from ../../ChibiOS_19.1.3/os/hal/include/hal.h:28,
from ../../ChibiOS_19.1.3/os/hal/src/hal_serial.c:25:
../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore_v7m.h:179:6: error: #error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
#error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
^
In file included from ../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore.h:196:0,
from ../../ChibiOS_19.1.3/os/rt/include/ch.h:110,
from ../../ChibiOS_19.1.3/os/hal/osal/rt/osal.h:32,
from ../../ChibiOS_19.1.3/os/hal/include/hal.h:28,
from ../../ChibiOS_19.1.3/os/hal/src/hal_pal.c:25:
../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore_v7m.h:179:6: error: #error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
#error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
^
In file included from ../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore.h:196:0,
from ../../ChibiOS_19.1.3/os/rt/include/ch.h:110,
from ../../ChibiOS_19.1.3/os/hal/osal/rt/osal.h:32,
from ../../ChibiOS_19.1.3/os/hal/include/hal.h:28,
from ../../ChibiOS_19.1.3/os/hal/src/hal_buffers.c:41:
../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore_v7m.h:179:6: error: #error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
#error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
^
In file included from ../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore.h:196:0,
from ../../ChibiOS_19.1.3/os/rt/include/ch.h:110,
from ../../ChibiOS_19.1.3/os/hal/osal/rt/osal.h:32,
from ../../ChibiOS_19.1.3/os/hal/include/hal.h:28,
from ../../ChibiOS_19.1.3/os/hal/ports/STM32/STM32F4xx/stm32_isr.c:25:
../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore_v7m.h:179:6: error: #error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
#error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
^
In file included from ../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore.h:196:0,
from ../../ChibiOS_19.1.3/os/rt/include/ch.h:110,
from ../../ChibiOS_19.1.3/os/hal/osal/rt/osal.h:32,
from ../../ChibiOS_19.1.3/os/hal/include/hal.h:28,
from ../../ChibiOS_19.1.3/os/hal/src/hal_queues.c:40:
../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore_v7m.h:179:6: error: #error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
#error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
^
In file included from ../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore.h:196:0,
from ../../ChibiOS_19.1.3/os/rt/include/ch.h:110,
from ../../ChibiOS_19.1.3/os/hal/osal/rt/osal.h:32,
from ../../ChibiOS_19.1.3/os/hal/include/hal.h:28,
from ../../ChibiOS_19.1.3/os/hal/ports/STM32/STM32F4xx/hal_lld.c:25:
../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore_v7m.h:179:6: error: #error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
#error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
^
In file included from ../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore.h:196:0,
from ../../ChibiOS_19.1.3/os/rt/include/ch.h:110,
from ../../ChibiOS_19.1.3/os/hal/osal/rt/osal.h:32,
from ../../ChibiOS_19.1.3/os/hal/include/hal.h:28,
from ../../ChibiOS_19.1.3/os/hal/ports/common/ARMCMx/nvic.c:25:
../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore_v7m.h:179:6: error: #error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
#error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
^
In file included from ../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore.h:196:0,
from ../../ChibiOS_19.1.3/os/rt/include/ch.h:110,
from ../../ChibiOS_19.1.3/os/hal/osal/rt/osal.h:32,
from ../../ChibiOS_19.1.3/os/hal/include/hal.h:28,
from ../../ChibiOS_19.1.3/os/hal/ports/STM32/LLD/DMAv2/stm32_dma.c:32:
../../ChibiOS_19.1.3/os/common/ports/ARMCMx/chcore_v7m.h:179:6: error: #error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
#error "PORT_ENABLE_GUARD_PAGES requires CH_DBG_ENABLE_STACK_CHECK"
^
make: *** [build/obj/hal.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [build/obj/hal_st.o] Error 1
make: *** [build/obj/hal_mmcsd.o] Error 1
make: *** [build/obj/hal_serial.o] Error 1
make: *** [build/obj/hal_pal.o] Error 1
make: *** [build/obj/stm32_isr.o] Error 1
make: *** [build/obj/hal_buffers.o] Error 1
make: *** [build/obj/hal_lld.o] Error 1
make: *** [build/obj/hal_queues.o] Error 1
make: *** [build/obj/nvic.o] Error 1
make: *** [build/obj/stm32_dma.o] Error 1

11:10:16 Build Finished (took 368ms)

Enabling this option in the chconf.h solves the issue. Is this behaviour intentional? All other demos I tried work fine out of the box.

Thanks.

User avatar
Giovanni
Site Admin
Posts: 12296
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 590 times
Been thanked: 504 times
Contact:

Re: nucleof446re demo build issue

Postby Giovanni » Sat Nov 30, 2019 1:20 pm

Hi,

Is PORT_ENABLE_GUARD_PAGES defined in your chconf.h or Makefile? if so, remove the definition.

It is strange because it does not happen in latest 19.1.x and I don't remember fixing this.

Giovanni

flyingk
Posts: 2
Joined: Sat Nov 30, 2019 11:07 am

Re: nucleof446re demo build issue

Postby flyingk » Sat Nov 30, 2019 3:11 pm

Hi Giovanni,

yes, that option was set in chconf.h of the demo at the end. This demo was copied from the 19.1.3 tree, so it must have been forgotten there.

Cheers,
Kai


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 2 guests