cancel
Showing results for 
Search instead for 
Did you mean: 

Conflicting Types for 'HAL_Init'....(w/no changes to HAL files)

Marshal Haupt
Associate II
Posted on August 25, 2017 at 21:00

I am building a project that I've previously built with success, but am now getting the error Conflicting Types for 'HAL_Init'Since my last build, I've only made small changes to the code for my timers and have not touched the HAL driver files. In the image below, you can see that the compiler messages give another informative message stating that the previous declaration of HAL_Init was here. Clicking on that link takes you to where the declaration still exists - untouched. I've made sure to include the corresponding C and H files in the image. I am using the following IDE:

Eclipse IDE for C/C++ Developers

Version: Neon.3 Release (4.6.3)

Build id: 20170314-15000690X00000607vnQAA.png

Thank you, in advance, for any help you can give with this problem.

2 REPLIES 2
Marshal Haupt
Associate II
Posted on August 25, 2017 at 21:02

I should have mentioned I am using STM32CubeMX-generated code for a STM32F302R8 Nucleo board.

Marshal Haupt
Associate II
Posted on August 25, 2017 at 23:03

Nevermind, please disregard this question. Sneaky little typo in my software snuck in from the lines I had commented above my use of HAL_Init (), and the debugger was fooled into thinking I was redeclaring.