-
Notifications
You must be signed in to change notification settings - Fork 115
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
unknown type name 'uint32_t' when compiling with the latest sdk #12
Comments
Try throwing in a #include <stdint.h> at the top of uart.c? |
That sounds like a problem with the build environment, not colorchord. Do you have the espressif sdk properly installed? |
I believe I have. At least I can compile and flash esp8266ws2812i2s just fine. The file that defines fixed size integer types is |
The error happens in /home/confus/usr/build/esp-open-sdk/sdk/include/ets_sys.h immediately after an #include "c_types.h", and that file (/home/confus/usr/build/esp-open-sdk/sdk/include/c_types.h) should be defining the type. Unless there's another c_types.h file that's getting loaded instead. |
I looked a bit more into it.
|
That's issue #10 - you cannot use the latest Espressif SDK, you need to use 1.5.1. |
Okay, thank you. That is really annoying. Can you or someone else provide a commit of the esp-open-sdk Makefile by pfalcon that doesn't have the error? From the history e32ff68 looks promising, it's just before 1.5.2 became the default. What commit is @cnlohr using, or are you building everything by hand? Edit: Additionally I was missing the binary esptool (not This was more annoying than expected. Here future me, have a shell script to automate it, should you have have to do it again. |
I actually just tried a couple things tonight and have found that after 1.5.1, Espressif really started to LOAD DOWN the iram segment with tons of stuff. There's basically no room left. Unfortunately, much of colorchord needs the iram to run, so unless Espressif makes some big changes we're stuck with 1.5.1. I am really confused about this needing to patch, etc. P.S. I need to backport it into colorchord, unless someone here is up for it, but I have updated it so everything uses esptool.py. No more need to have the binary esptool. Does anyone mind giving that a shot and testing? |
"It" being...? I'd be up for some testing but what exactly do you want to backport and test? Btw. I need a virgin Ubuntu 16.04 to even build the latest SKD. Apparently some packages I have on my regular pc do something to binutils so that it won't build. Offtopic: How do you set the IP and ssid for the esp to connect to in your code? Where in the sources are the defaults? |
So we don't need the binary. and
so it doesn't confuse the baud rate detector.
The defaults are for it to make its own AP, you connect, it is at 192.168.4.1. You can use the web configuration to connect to another AP. |
see pull request #13 I'm thinking of rewriting ./embedded8266/web/Makefile so that it can be included in the main Makefile and things like |
You may want to consider writing the rule in the main like so:
|
P.S. @con-f-use I really appreciate you helping out on this! |
And so t'was done ---> #14 |
Getting an
unknown type name 'uint32_t'
error, only when using the latest esp-open-sdk (build with gcc 4.8.5 instead of 4.8.2). Here is the build log: http://paste.ubuntu.com/21643922/The relevant part should be:
The text was updated successfully, but these errors were encountered: