jcmvbkbc wrote:SDK name and URL are outside the crosstool-NG realm, but I can apply the cygwin64-specific patch.
Ah of course - those are esp-open-sdk issues, aren't they? Will let them know. BTW my latest fiddling has shown that the cygwin64 bug only affects gcc 4.8.5. gcc 5.2.0 works fine out of the box with a 64 bit build environment - they had added very similar patches to what I sent.
jcmvbkbc wrote:My current crosstool-NG? I believe my xtensa-1.22.x branch is a couple of patches ahead of what open-esp-sdk refers to, but they are not significant. You should be able to update to the latest crosstool-NG in the open-esp-sdk and it should just work.
I ended up checking the commits and finding just one change that added a patch, so I cheated and just manually copied it in.
Right now I have a tool chain that compiles nicely from both Windows and cygwin command lines, and works beautifully with an Eclipse based Makefile project, but I have a couple of really annoying issues:
- cygwin maps all Windows drives to /cygdrive/* in order to implement a Unix like file system. Cygwin's make uses this mapping, and the command line tools all do neat translations between Windows C:\ and cygwin /cygdrive/c/ etc. However, the CDT Discovery feature in Eclipse on Windows doesn't do this mapping for a GCC Cross project and so all the include and lib directories are screwed up, which then messes up the C code editors and checkers. The dumb thing is that they have a section in the gdb settings to create path maps so that gdb can find the code on Windows drives!
At this point in time it looks like the only solution to get the editor working is to clear the auto discovery paths and then manually add them all back using windows path format. However this will break the Makefile generation capability, but since I tend to create my own from a template I guess that's not too awful. I just wish Eclipse had this fixed!!
- the default linker ld mapping files are all for early devices and there doesn't seem to be any for ESP12E or F based devices that have 4M flash. I'm currently trawling through posts looking for suitable *.ld files, or for what changes I need to make to the current ones to make them give me the correct memory settings and sizes.
- esptool.py is currently not producing the correct named files for the example blinky project. I wonder if it's related to the *.ld files above, but right now the example Makefile names are inconsistent with the output and instead of getting blinky-0x40000.bin I get blinky-0x10000.bin. In addition I am once again fighting Windows vs cygwin naming and can't work out how to correctly reference the USB COM port where the ESP8266 is attached. Thinking I may go to the .exe version from the Espressif site