- This topic has 4 replies, 2 voices, and was last updated 8 years, 7 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forums › Mastering STM32 book support forum › Stuck at first imported project
Hi
I followed chapter 4.2 instructions to import and build stm32cubeMX HAL , but eclipse gives me those errors :
I’m on windows 8 , eclipse Mars.1 Release 4.5.1 , stm32cubemx 1.0 , stm32cubef4 1.11.0 , GCC 5.2 2015q4
there’s something wrong in my setup ? ( I tried many times and on 2 different pc , both with windows [ 8.1 and 10 ] )
Hi,
This usually happens when the MCU type is not defined at project level. The console log you have posted seems to confirm this at line 34.
Check if you have defined the right MCU type macro in the Project Settings->C/C++Build->Settings->Cross ARM C Compiler->Preprocessor section (refer to Figure 17).
Let me know if it solves.
ok
found the first problem : I defined STM32F4xE instead of STM32F401xE
but it still doesn’t build : now gcc throws these errors
1 2 3 4 5 |
'TIM6_DAC_IRQn' undeclared (first use in this function) stm32f4xx_hal_timebase_tim_template.c /test1/system/src/stm32f4xx line 81 C/C++ Problem 'TIM6' undeclared (first use in this function) stm32f4xx_hal_timebase_tim_template.c /test1/system/src/stm32f4xx line 109 C/C++ Problem make: *** [system/src/stm32f4xx/stm32f4xx_hal_timebase_tim_template.o] Error 1 test1 C/C++ Problem recipe for target 'system/src/stm32f4xx/stm32f4xx_hal_timebase_tim_template.o' failed subdir.mk /test1/Debug/system/src/stm32f4xx line 219 C/C++ Problem |
Remove the file system/src/stm32f4xx/stm32f4xx_hal_timebase_tim_template.c from the Eclipse Project. The HAL is changed and I’ve to document that.
now it wokrs. thank you