I'm new to ChibiOS, actually I'm test the last release with Mentor arm-none-eabi toolchain.
After tried the demos I moved on and I create a mine directory in which put my project... A template project and then I've modified the Makefile to match the path of OS (ChibiOS dir).
I ve write some codes for learn the use of threads and other modules .. and all worked fine until now.
In this moment I'm tring to use of gpt from testhal example... but when I try to compile in my directory some errors occur.
Thus I try to built it in the original example path "ChibiOS-RT/testhal/STM32F4xx/GPT" but the errors are the same:
Code: Select all
/home/../rt_OSs/ChibiOS-RT/os/hal/platforms/STM32/TIMv1/gpt_lld.c: In function 'gpt_lld_start':
/home/../rt_OSs/ChibiOS-RT/os/hal/platforms/STM32/TIMv1/gpt_lld.c:536:24: error: 'TIM6_IRQn' undeclared (first use in this function)
/home/../rt_OSs/ChibiOS-RT/os/hal/platforms/STM32/TIMv1/gpt_lld.c:536:24: note: each undeclared identifier is reported only once for each function it appears in
/home/../rt_OSs/ChibiOS-RT/os/hal/platforms/STM32/TIMv1/gpt_lld.c: In function 'gpt_lld_stop':
/home/../rt_OSs/ChibiOS-RT/os/hal/platforms/STM32/TIMv1/gpt_lld.c:663:25: error: 'TIM6_IRQn' undeclared (first use in this function)
make: *** [build/obj/gpt_lld.o] Errore 1I've tried to fix it ... the Makefile say that:
Code: Select all
include $(CHIBIOS)/boards/ST_STM32F4_DISCOVERY/board.mk
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
include $(CHIBIOS)/os/kernel/kernel.mk
include $(CHIBIOS)/test/test.mkThen I suppose that it point in the right paths... in particular particular platform, board. In the "ChibiOS-RT/os/hal/platforms/STM32F4xx/" directory there are the .h required (stm32f4xx.h and stm32_isr.h).. the problem is that in stm32_isr.h the definition of incriminated constant (#define STM32_TIM6_NUMBER TIM6_IRQn) is a litteral ... then not defined anywhere.
The question are:
I have to include manually the ST inclusions (definitions of IRQn) ?
Why when I build other projects (that use only tread and pal functions) the system has builded correctly and no with TMR usage?? (IRQn ???)
Thanks