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.

  1. expand c/c++ general , select paths , symbols.

  2. click here see illustration (displayed in separate window).

  3. click add define new element (include path, symbol, library path etc).

  4. click edit change selected element (include path, symbol, library path etc).
  5. click delete remove selected element (include path, symbol, library path etc).
  6. click export make selected element (include path, symbol, library path etc) exported.
  7. click unexport remove selected element (include path, symbol, library path etc) export list.
  8. click move , move down set elements (include paths, library paths etc) order.

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -