-
Notifications
You must be signed in to change notification settings - Fork 6
Updated SDK with enhancements #39
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
Conversation
|
There are a lot of changes in this PR. @dbetz can you help review this? The comment seems like a sensible enhancement and most of the changes are including a new/update SDK. I don't know if this has ramifications on memory or existing features. |
|
It looks like most of the changes are related to moving to a new SDK. Can the author verify that? I'm actually not sure why we checked in the SDK as part of the repository anyway. Did I do that? |
|
@dbetz - yes; I found (at least) this commit from 2016
The .bins must be necessary for this project? |
|
Ugh. It would have better if I had created another project with all of the SDK files. Anyway, I'll merge your changes later tonight after work. Thanks for doing this! |
|
Has anyone downloaded this from scratch and tried compiling ? espmissingincludes.h can be fixed by commenting out these items: #if 0 // Remove headers already included in latest SDK void ets_install_putc1(void *routine); #if 0 // Remove headers already included in latest SDK |
|
I haven’t had time to try it. I thought it had been tested already and I didn’t see any problems in a quick glance over the source changes. Does it build after your changes?
… On Sep 2, 2020, at 2:15 AM, Michael ***@***.***> wrote:
Has anyone downloaded this from scratch and tried compiling ?
Seems to be a bunch of duplicate headers and a couple undefined references.
espmissingincludes.h can be fixed by commenting out these items:
#if 0 // Remove headers already included in latest SDK
void ets_install_putc1(void *routine);
void ets_isr_attach(int intr, void *handler, void *arg);
size_t ets_strlen(const char *s);
int ets_strncmp(const char *s1, const char *s2, int len);
void ets_timer_arm_new(os_timer_t *a, int b, int c, int isMstimer);
void uart_div_modify(int no, unsigned int freq);
void ets_delay_us(int ms);
#endif
#if 0 // Remove headers already included in latest SDK
void *pvPortMalloc(size_t xWantedSize, const char *file, int line);
void *pvPortZalloc(size_t, const char *file, int line);
void vPortFree(void *ptr, const char *file, int line);
void pvPortFree(void *ptr, const char *file, int line);
#endif
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#39 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAFL5VWIC63SDS2GBZD327LSDXPGTANCNFSM4QNC3MPQ>.
|
|
Thanks David, yeah it looks clean. I'm guessing it's a library version mis-match. The latest...: Also, this "error" crept back in: Maybe the esp sdk version changed from what iSeries has locally, to what Git is pulling today, on a full fresh install. Another annoying thing... now my NetBeans won't compile. I get this: xtensa-lx106-elf-gcc is in the OS path, and in netbeans toolchain (although make overrides that anyway). Probably I changed something in make file to make that work before, but have forgotten what that was. The XTENSA_TOOLS_ROOT and CC values are correctly set in makefile, so not that. And make runs from the command line anyhow, so seems to be a netbeans thing. Argh! I'm so glad the wifi Zoom demo starts in about 8 hours :) Best I revert back to an older version I think! |
|
One thing that worried me a little about the changes is that one of the buffer sizes was increased from 1k to 4k and I seem to recall that RAM is at a premium on the ESP8266.
… On Sep 2, 2020, at 6:05 AM, Michael ***@***.***> wrote:
Thanks David, yeah it looks clean. I'm guessing it's a library version mis-match.
The latest...:
From the command line (and with the mentioned edits) the current Parallax-ESP seems to build, except when opening the wifi.html page in the esp8266 web browser, it crashes the module (it reboots- I can see it in the debug output). The other pages open OK and seem responsive. Obviously the wifi module connects to my AP, such that I can connect to it, so wifi "kinda" works.
Also, this "error" crept back in:
libesphttpd/mkupgimg.c
~ln 93
printf("Header: %d bytes, user1: %d bytes, user2: %d bytes.\n", sizeof(hdr), (int)l1, (int)l2);
should be:
printf("Header: %ld bytes, user1: %d bytes, user2: %d bytes.\n", sizeof(hdr), (int)l1, (int)l2);
Maybe the esp sdk version changed from what iSeries has locally, to what Git is pulling today, on a full fresh install.
Another annoying thing... now my NetBeans won't compile. I get this:
make[1]: xtensa-lx106-elf-gcc: Command not found
Makefile:219: recipe for target 'build/espfs/espfs.o' failed
make[1]: *** [build/espfs/espfs.o] Error 127
xtensa-lx106-elf-gcc is in the OS path, and in netbeans toolchain (although make overrides that anyway). Probably I changed something in make file to make that work before, but have forgotten what that was.
The XTENSA_TOOLS_ROOT and CC values are correctly set in makefile, so not that. And make runs from the command line anyhow, so seems to be a netbeans thing. Argh! I'm so glad the wifi Zoom demo starts in about 8 hours :) Best I revert back to an older version I think!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#39 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAFL5VUTPVRR3FHRZA62WZLSDYKFJANCNFSM4QNC3MPQ>.
|
Oh no! @VonSzarvas were you able to step back to pre-PR and build from there for the work you're doing? I should have postponed the merge of this PR but simply didn't think of the timing of your work in this case. |
|
No worries @PropGit :) Yes, I could step back a version, and all is working fine. |
|
Should we revert this PR? Is that even possible?
… On Sep 2, 2020, at 9:20 AM, Michael ***@***.***> wrote:
No worries @PropGit <https://github.com/PropGit> :)
Yes, I could step back a version, and all is working fine.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#39 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAFL5VXCJM5QMX2WVYUZBFTSDZBBBANCNFSM4QNC3MPQ>.
|
|
maybe, although @iseries1 may have suggestions to resolve just as quick. Couple other things... the included SDK is now >v3, so a new function is needed to be added to user-main.c something like this: I've not checked the memory values are appropriate for the Parallax modules. I'd think it could wait a few days- see if Mike has some advice. |
|
@dbetz - We can revert it, but let's wait on that for the time being as we're not hindered by it currently. If we can't resolve it later this week, we can always resort to reversion and revision. |
|
Is this a problem with using the current SDK vs the one I used ages ago when I wrote the original code? If so, we should probably resolve this issue and all move to the new SDK. Is there a reason not to?
… On Sep 2, 2020, at 9:32 AM, Parallax Git Administrator ***@***.***> wrote:
@dbetz <https://github.com/dbetz> - We can revert it, but let's wait on that for the time being as we're not hindered by it currently. If we can't resolve it later this week, we can always resort to reversion and revision.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#39 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAFL5VX5R2QT23XJP6UNX4TSDZCP3ANCNFSM4QNC3MPQ>.
|
|
I didn't use the current SDK because of all the changes that would be needed to get it to compile. I stuck with version 2.2 which was easer to get too. |
|
seems the answer is simple then.... to update Parallax-ESP github with those versions that iseries1 is using, for 'libesphttpd' and 'ESP8266_NONOS_SDK', and fix 'espmissingincludes.h' as I noted above. @iseries1 Could you share the version numbers? Or are they the ones in your github copy ? |
|
I don't want to get into version numbers. I would leave it to your discretion. |
|
ok, I'll step out of this conversation. Ultimately this repo has to build when downloaded. |
|
I don’t understand. Why don’t you want us to know what version you’re using?
… On Sep 2, 2020, at 12:21 PM, Mike ***@***.***> wrote:
I don't want to get into version numbers. I would leave it to your discretion.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#39 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAFL5VVTW5DLCNJZVD6Z7ODSDZWG3ANCNFSM4QNC3MPQ>.
|
|
I was talking about what version of the firmware you will call it. Otherwise the only version I am using is with the SDK which is version 2.2.1 just before using 3.0 which requires some work to make it work on the ESP8266 unit. Partition table stuff. |
|
Okay, my mistake. We should probably use the same version of the SDK as you’re using. I’ll admit that I haven’t built this in quite some time. However, I do have a reason to do it again soon as I have an application in mind for a variation of this firmware.
… On Sep 2, 2020, at 1:05 PM, Mike ***@***.***> wrote:
I was talking about what version of the firmware you will call it. Otherwise the only version I am using is with the SDK which is version 2.2.1 just before using 3.0 which requires some work to make it work on the ESP8266 unit. Partition table stuff.
This version included a number of include files that were missing from the old SDK that was used. So to make the compiler happy I removed those duplicates.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#39 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAFL5VV5IFECOTU5FQNX3MDSDZ3MJANCNFSM4QNC3MPQ>.
|
Can hide unit from programmer by use of web page.