-->
Page 1 of 7

ESP8266 toolchain for Raspberry ?

PostPosted: Thu Feb 25, 2016 1:25 pm
by eric6286
Hello,

I'm using this build of Arduino IDE on my RPi 2 :

https://github.com/NicoHood/Arduino-IDE-for-Raspberry

Do you now where I could find a tutorial for compiling the ESP8266 toolchain for this platform ?

Many thx

Re: ESP8266 toolchain for Raspberry ?

PostPosted: Thu Mar 17, 2016 7:17 am
by eric6286
Hello,

I achieved to compile and install an ARM toolchain, using pfalcon :

https://github.com/pfalcon/esp-open-sdk

I also built esptool 0.4.8

I get a strange error : compilation of sketches is ok, but upload fail. After some investigations, it seems that some parameters are missing in the esptool command line.

If I launch manually esptool with the line that arduino IDE generate and parameters below, upload works. Basically, it seems that port, speed, card type and write parameters are missing when IDE generates esptool command line :

-cp /dev/ttyUSB0 -cb 115200 -cd nodemcu -ca 0x00000000 -cf /tmp/build03404dee50bd52e6a7e5abb98066b567.tmp/MY_SKETCH.ino.bin -vv

Is anyone have an idea about this ? Perhaps there's somewhere a script which generate the command line that I could edit for adding missing parameters ?

Many thanks

Re: ESP8266 toolchain for Raspberry ?

PostPosted: Thu Mar 17, 2016 7:52 am
by martinayotte
This should be already handled by the command definition located in esp8266/hardware/esp8266/2.1.0/platform.txt

Code: Select alltools.esptool.upload.pattern="{path}/{cmd}" {upload.verbose} -cd {upload.resetmethod} -cb {upload.speed} -cp "{serial.port}" -ca 0x00000 -cf "{build.path}/{build.project_name}.bin"

Re: ESP8266 toolchain for Raspberry ?

PostPosted: Thu Mar 17, 2016 3:23 pm
by eric6286
Hello,

Thanks for your reply,

I've this lines in my platform.txt. All seems ok. Very strange ...

Code: Select alltools.esptool.cmd=esptool
tools.esptool.cmd.windows=esptool.exe
tools.esptool.path={runtime.tools.esptool.path}
tools.esptool.network_cmd=python
tools.esptool.network_cmd.windows=python.exe

tools.esptool.upload.protocol=esp
tools.esptool.upload.params.verbose=-vv
tools.esptool.upload.params.quiet=
tools.esptool.upload.pattern="{path}/{cmd}" {upload.verbose} -cd {upload.resetmethod} -cb {upload.speed} -cp "{serial.port}" -ca 0x00000 -cf "{build.path}/{build.project_name}.bin"
tools.esptool.upload.network_pattern="{network_cmd}" "{runtime.platform.path}/tools/espota.py" -i "{serial.port}" -p "{network.port}" "--auth={network.password}" -f "{build.path}/{build.project_name}.bin"


I'm going to continue investigation. Do you know if there's another config file involved in upload process ?

Regards