However, it is possible to build a custom GCC that can be used to program the chip. To do that someone has to get the "configuration overlay" from Espressif that they used to generate the processor for the ESP8266. That configuration overlay can then be used to generate a GCC that will work.
http://wiki.linux-xtensa.org/index.php/ ... erlay_File
It would also be helpful if they reworked their library to not call _xtos_set_exception_handler which is a proprietary Tensilica function and not really necessary for them to use.
Maybe some one fluent in Chinese can call them up and explain this to them. Once they understand they might start providing the needed gcc as part of their product offering.
On Sat, Aug 30, 2014 at 5:52 PM, email@example.com <firstname.lastname@example.org> wrote:
> I'm looking for an open source (or redistributable) compiler for the
> Xtensa LX3. There is an SDK available for the chip here -
> http://www.seeedstudio.com/document/pdf ... k_v0.6.zip
> But I can't compile it since I don't have a compiler. I have no
> problem with the wifi support being a binary library, what I want to
> do is add my own application code..
> I've located this page about building compilers.
> http://wiki.linux-xtensa.org/index.php/ ... tributions
> But I haven't been able to work out exactly which compiler I should be
> building so that I can compile this SDK. We want a redistributable
> compiler so that others can also change the application code on the
binutils+gcc is probably the only option here. I looked at the
object files in the SDK archive above and it appears that they
carry undefined references to xtos functions, which, AFAIK
you can get only with libraries from proprietary xtensa toolchain.
I.e. you won't be able to create a complete runnable image
even with properly configured binutils+gcc solely from the files
in that archive.
> I am trying to work with the chip vendor, Espressif, but there is a
> major language barrier and progress is slow.
They could provide the so called configuration overlay, having that
would allow building binutils that support all instructions available
in the processor and gcc that can employ all of its standard
> From the binaries in the SDK...
> #Xtensa Compiler Version 8.0.1 : udp.c compiled with : -O2 -g3
In addition the object files are little endian. The above information
is not sufficient for building a compiler, because each possible
standard feature of xtensa processor may be controlled independently.
The complete set of files that describe configuration is generated with
the processor itself. Normally to build xtensa binutils+gcc for a given
core one can take the mainline binutils and gcc and replace xtensa
configuration files with ones specific for the processor core. E.g.
buildroot can build such customized toolchain.
In the situation when the exact configuration is unavailable a possible
strategy is to take some configuration with the same endianness and
disable features in it manually. Then gcc won't use the instructions
from the disabled features. See XCHAL_HAVE_* macros in
A small collection of xtensa overlays is available here:
https://github.com/jcmvbkbc/xtensa-tool ... r/overlays