Page 1 of 1

Synced commits, compiling stop working

Posted: Fri Oct 03, 2014 12:21 pm
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

Re: Synced commits, compiling stop working

Posted: Fri Oct 03, 2014 12:32 pm
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?

Re: Synced commits, compiling stop working

Posted: Fri Oct 03, 2014 12:38 pm
by Giovanni
Hi,

I committed a change to that file.

Giovanni

Re: Synced commits, compiling stop working

Posted: Fri Oct 03, 2014 12:43 pm
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

Re: Synced commits, compiling stop working

Posted: Fri Oct 03, 2014 1:00 pm
by Giovanni
Fixed that as well.

Giovanni

Re: Synced commits, compiling stop working

Posted: Fri Oct 03, 2014 3:18 pm
by Korken
You are the best Giovanni! :)
Thanks for fixing this!

Re: Synced commits, compiling stop working

Posted: Fri Oct 03, 2014 3:25 pm
by Giovanni
You are welcome, thanks for helping :)

Giovanni