stm32 HAL library eclipse -
i´m using eclipse ide arm plugin develop project on f4-discovery. created empty template project , started use functions stm32 hal libraries , got error like:
undefined reference `hal_dma_init'
undefined reference `hal_uart_init'
necessary .c , .h files in right directories, eclipse recognised half of .c files , others scratched out. this image explains problem. what´s wrong? thanks.
you need add include path eclipse cdt. assuming managed build (as opposed using external makefile), need follow directions here.
adding include paths , symbols in managed build system
for cdt projects, can define include paths , preprocessor symbols parser. lets parser understand contents of c/c++ source code can more use search , code completion features.
if autodiscovery enabled, after build finishes, discovered paths , symbols displayed in discovered paths section. can define properties on per project basis in c/c++ projects or navigator views.
to add include paths , symbols:
to set properties project, right-click cdt project , select properties. alternatively, set properties specific source file in project, right-click source file within make project , select properties.
expand c/c++ general , select paths , symbols.
click here see illustration (displayed in separate window).
click add define new element (include path, symbol, library path etc).
- click edit change selected element (include path, symbol, library path etc).
- click delete remove selected element (include path, symbol, library path etc).
- click export make selected element (include path, symbol, library path etc) exported.
- click unexport remove selected element (include path, symbol, library path etc) export list.
- click move , move down set elements (include paths, library paths etc) order.
Comments
Post a Comment