Synced commits, compiling stop working

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
User avatar
Korken
Posts: 270
Joined: Wed Apr 02, 2014 4:09 pm
Has thanked: 5 times
Been thanked: 6 times

Synced commits, compiling stop working

Post by Korken »

Hi,

I pulled the latest commits and suddenly I get error like this:
../ChibiOS-RT/os/ext/CMSIS/ST/stm32f4xx.h:144:3: error: #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
#error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
^
In file included from ../ChibiOS-RT/os/common/ports/ARMCMx/compilers/GCC/vectors.c:32:0:
../ChibiOS-RT/os/common/ports/ARMCMx/devices/STM32F4xx/cmparams.h:79:2: error: #error "CMSIS __FPU_PRESENT mismatch"
#error "CMSIS __FPU_PRESENT mismatch"
^
../ChibiOS-RT/os/common/ports/ARMCMx/devices/STM32F4xx/cmparams.h:83:2: error: #error "CMSIS __NVIC_PRIO_BITS mismatch"
#error "CMSIS __NVIC_PRIO_BITS mismatch"


What has been changed? I could compile it fine before I pulled the new commits for the master branch.

Best Regards
Emil Fresk
User avatar
Korken
Posts: 270
Joined: Wed Apr 02, 2014 4:09 pm
Has thanked: 5 times
Been thanked: 6 times

Re: Synced commits, compiling stop working

Post by Korken »

I was able to fix the ST MCU error (added #define STM32F405xx) but I still have an error of the form:
../ChibiOS-RT/os/hal/ports/STM32/STM32F4xx/ext_lld_isr.c: In function 'ext_lld_exti_irq_enable':
../ChibiOS-RT/os/hal/ports/STM32/STM32F4xx/ext_lld_isr.c:312:20: error: 'ETH_WKUP_IRQn' undeclared (first use in this function)
nvicEnableVector(ETH_WKUP_IRQn, STM32_EXT_EXTI19_IRQ_PRIORITY);
^
../ChibiOS-RT/os/hal/ports/STM32/STM32F4xx/ext_lld_isr.c:312:20: note: each undeclared identifier is reported only once for each function it appears in
../ChibiOS-RT/os/hal/ports/STM32/STM32F4xx/ext_lld_isr.c: In function 'ext_lld_exti_irq_disable':
../ChibiOS-RT/os/hal/ports/STM32/STM32F4xx

How should I fix this?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Synced commits, compiling stop working

Post by Giovanni »

Hi,

I committed a change to that file.

Giovanni
User avatar
Korken
Posts: 270
Joined: Wed Apr 02, 2014 4:09 pm
Has thanked: 5 times
Been thanked: 6 times

Re: Synced commits, compiling stop working

Post by Korken »

You are my hero! :D But it did not seem to fix the problem.
I synced, cleaned and recompiled and still get: :(
../ChibiOS-RT/os/hal/ports/STM32/STM32F4xx/ext_lld_isr.c: In function 'ext_lld_exti_irq_enable':
../ChibiOS-RT/os/hal/ports/STM32/STM32F4xx/ext_lld_isr.c:314:20: error: 'ETH_WKUP_IRQn' undeclared (first use in this function)
nvicEnableVector(ETH_WKUP_IRQn, STM32_EXT_EXTI19_IRQ_PRIORITY);
^
../ChibiOS-RT/os/hal/ports/STM32/STM32F4xx/ext_lld_isr.c:314:20: note: each undeclared identifier is reported only once for each function it appears in
../ChibiOS-RT/os/hal/ports/STM32/STM32F4xx/ext_lld_isr.c: In function 'ext_lld_exti_irq_disable':
../ChibiOS-RT/os/hal/ports/STM32/STM32F4xx/ext_lld_isr.c:343:21: error: 'ETH_WKUP_IRQn' undeclared (first use in this function)
nvicDisableVector(ETH_WKUP_IRQn);


EDIT:
It seems to be defined as true in. ./ChibiOS-RT/os/hal/ports/STM32/STM32F4xx/stm32_registry.h:377.

Code: Select all

 #define STM32_HAS_ETH                       TRUE
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Synced commits, compiling stop working

Post by Giovanni »

Fixed that as well.

Giovanni
User avatar
Korken
Posts: 270
Joined: Wed Apr 02, 2014 4:09 pm
Has thanked: 5 times
Been thanked: 6 times

Re: Synced commits, compiling stop working

Post by Korken »

You are the best Giovanni! :)
Thanks for fixing this!
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Synced commits, compiling stop working

Post by Giovanni »

You are welcome, thanks for helping :)

Giovanni
Post Reply