-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Can't build for Blue Pill with Arduino framework #10
Comments
@ubis, would be thankful for any help on it. |
Seems like _sbrk function is in variants/mcu_variant/syscalls.c. |
Okay, seems like I found what's causing this. I've added "libc" to builder LIBS(array..?) And it linked properly. However, I found that there are libgcc/libc/libm used in ld scripts, and as I noticed, builder script have:
What's the difference? If I remove c from LIBS and add libc it won't link. But, if I add libc and keep c, it does link. |
Check linker output with |
Okay, this is wierd. Without "libc":
With "libc":
So I changed "libc" to "c" and it still worked. I thought, maybe position could be wrong... But, it doesn't work if there is only one "c" in LIBS. Even this one works:
I checked linker params when bulding with Arduino IDE. It has only libm and libgcc, and it includes syscalls object file in linker start/end group. |
Could you try to replace |
So i've changed |
Ok, let's keep |
Ups, my bad sorry(again, lol). I actually changed it on my fork and I didn't moved it to stm platform folder. Now, it produces error:
Since now it doesn't make *.a lib, it can't go further, I think.. |
Would be good to see build output from Make or Arduino IDE, to compare commands. How do you program STM32Duino without PlatformIO? |
You can use Arduino IDE, and get arduino stm32 from repo. It has installation page aswell. But, I could upload log to pastebin or so. |
Would be thankful for pastebin log. |
Here it is: http://pastebin.com/8MnCWLYv. Ah, I forgot that I'm using compiler toolchain from PlatformIO. I did that to see if there is any changes(Arduino IDE uses older toolchain), but there wasn't any, so I left it. |
I don't see here
|
Yes, I tried, no luck. I updated my comment back then. |
Hi,
in arduino.py (line 124) |
Also - this may be relevant to compiler/linker options:
in the resulting binary file. |
Any ideas how this can be fixed? |
Development platform will be released today. |
Example of failed build task:
https://travis-ci.org/blynkkk/blynk-library/jobs/161392538
The text was updated successfully, but these errors were encountered: