|
|
|
Re: hal library header file but i cannot use the hal functions [message #1742974 is a reply to message #1742970] |
Fri, 09 September 2016 01:11   |
David Vavra Messages: 1427 Registered: October 2012 |
Senior Member |
|
|
I don't know if you've clipped the image in your first post but I don't see the compiler being told the include path for the HAL header. Is the -I option missing?
If so, where did the Makefile come from? Did Eclipse generate it?
Post the entire build log (copy and paste it) .
It wouldn't hurt to see the one that works, too.
Fixing this depends on project setup. You've left out a lot of details.
[Updated on: Fri, 09 September 2016 01:25] Report message to a moderator
|
|
|
|
|
Re: hal library header file but i cannot use the hal functions [message #1743008 is a reply to message #1743000] |
Fri, 09 September 2016 12:34   |
David Vavra Messages: 1427 Registered: October 2012 |
Senior Member |
|
|
When make executes it would be in the Debug directory which is C:\C++\CUBE MX32\Progekt9\I2C\SW4STM32\I2C\Debug if I'm not mistaken.
The compile command has a relative include path -I../I2C/HAL/inc which, from what I can see in the project view in your images, doesn't exist.
It may be unimportant as the compiler isn't complaining about any non-found headers.
Why is it there?
Tauno has a point, though.
Does the call match the declaration?
I don't use HAL or anything related to it so I don't know although I'm curious to know why it works in main.cpp (from your no error.jpg) but not in lcd1602.cpp.
Or did it never work in main.cpp and you have just shown a listing of a file you have never compiled?
Is it misspelled and maybe should be HAL_delay vs. HAL_Delay?
[Updated on: Fri, 09 September 2016 12:45] Report message to a moderator
|
|
|
|
Re: hal library header file but i cannot use the hal functions [message #1743331 is a reply to message #1743316] |
Wed, 14 September 2016 12:54  |
David Vavra Messages: 1427 Registered: October 2012 |
Senior Member |
|
|
Well then, Efim you need to find out what's different between the two builds.
I don't have your files and no other way of finding it for you.
This is not a CDT problem. This site is for dealing with CDT issues and not for debugging your code.
If you really need more help in this area you should ask around at other places.
Best of luck
|
|
|
Powered by
FUDForum. Page generated in 0.02658 seconds