Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying with STM32CubeIDE #10

Closed
frafrakki opened this issue Aug 8, 2019 · 6 comments
Closed

Trying with STM32CubeIDE #10

frafrakki opened this issue Aug 8, 2019 · 6 comments

Comments

@frafrakki
Copy link

I'm trying to use your code as ST has developed new IDE which is compatible on C++ coding.
And at the time on building, I've encountered the error below.
undefined reference to `ros::normalizeSecNSec(unsigned long&, unsigned long&)'
Is it possible helping me fix this problem?

BTW, I'm using ros kinetic and NUCLEO-F303K8.

@yoneken
Copy link
Owner

yoneken commented Aug 22, 2019

I'm so sorry for my late reply..
Of course, I'm interested in ST's new IDE, but currently I've not use it yet..
Maybe, It needs a time to fix..

@fdila
Copy link
Contributor

fdila commented Oct 1, 2019

Hi! I've edited this code to work with STM32CubeIDE.
My repo is based on stm32f7, but it should be easy enough to adapt the hardware for your nucleo board

Here's my repo

@yoneken
Copy link
Owner

yoneken commented Oct 3, 2019

Great job!!

@yoneken
Copy link
Owner

yoneken commented Jan 14, 2020

I tried STM32CubeIDE and encountered the same error.

undefined reference to `ros::normalizeSecNSec(unsigned long&, unsigned long&)'

I realized that the SW4STM32 treats /Inc as a source folder but the STM32CubeIDE does not.
The difference creates the undefined reference error of normalizeSecNSec, because the function is declared at time.cpp which is located in /Inc directory.

If you add /Inc directory as a "Source Location" in the project property, the error can be fixed.
キャプチャ

I am still thinking about how to fix the error in the code.

@yoneken
Copy link
Owner

yoneken commented Jan 14, 2020

I add a comment for STM32CubeIDE users in README.

yoneken added a commit that referenced this issue Jan 14, 2020
@CodeOn-ArK
Copy link

I tried STM32CubeIDE and encountered the same error.

undefined reference to `ros::normalizeSecNSec(unsigned long&, unsigned long&)'

I realized that the SW4STM32 treats /Inc as a source folder but the STM32CubeIDE does not.
The difference creates the undefined reference error of normalizeSecNSec, because the function is declared at time.cpp which is located in /Inc directory.

If you add /Inc directory as a "Source Location" in the project property, the error can be fixed.
キャプチャ

I am still thinking about how to fix the error in the code.

Ho there! Thanks for this reference that u made. Will u help me out in one thing?
I have made all .h files inside Inc folder and C files in another folder. And included both of them in Source location but it still doesn't works!! Can u help me out! Will be very much thankful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants