Page 1 of 2

Unofficial Development Kit for Espressif ESP32 (Windows)

Posted: Mon Dec 28, 2015 8:04 am
by CHERTS
Hi all

I released a Beta version of Unofficial Development Kit for Espressif ESP32 (Windows)

The kit includes the following components and tools:
* Unofficial GCC compiler for SoC Xtensa L108.
* Official Espressif ESP32 RTOS SDK v2.0.0
* Documentation for SoC ESP32.
* Examples in the firmware source code in C language.
* Additional tools for working with boards based on the ESP32.

Instructions for installing and configuring the Unofficial Development Kit for Espressif ESP32:
1. Download (114Mb) and install my Unofficial Development Kit for Espressif ESP32.
2. Download and install the Java Runtime x86 (jre-7uXX-windows-i586.exe)
3. Download and install Eclipse Mars x86 to develop in C ++ (eclipse-cpp-mars-R-win32.zip). Unpack the archive to the root of drive C.
4. Download and install MinGW. Run mingw-get-setup.exe, the installation process to select without GUI, ie uncheck "... also install support for the graphical user interface".
5. Download the (84Mb) my scripts to automate the installation of additional modules for MinGW.
6. Run from my file install-mingw-package.bat. He will establish the basic modules for MinGW, installation should proceed without error.
7. Start the Eclipse Luna from the directory c:\eclipse\eclipse.exe
8. In Eclipse, select File -> Import -> General -> Existing Project into Workspace, in the line Select root directory, select the directory C:\Espressif\examples\ESP32 and import work projects.
9. Edit the Makefile, correct COM port number in the parameter ESPPORT and SPI_SIZE_MAP.

Further, the right to select the Make Target project, such as esp32_hello_world and run the target 'all' the compile project, while in the console window should display the progress of the build. Run the target 'flash' for burn firmware.

Official website of the project:

Re: Unofficial Development Kit for Espressif ESP32 (Windows)

Posted: Tue Dec 29, 2015 3:55 pm
by rudi ;-)
CHERTS wrote:Hi all

I released a Beta version of Unofficial Development Kit for Espressif ESP32 (Windows)
..

thank you for your renewed effort Mikhail!
this solved time problems to organice this :D

because beta, have a few suggestions:

udkvars_esp32.bat and install in a deviating folder, example "install in c:\espressif_esp32"
if we change Devkit-Dir in environment batch file can we use this in the makefile too?
i know, we have
XTENSA_TOOL_ROOT .."C:\Espressif.."
SDK_BASE .."C:\Espressif.."
SDK_TOOLS.."C:\Espressif.."

there are Folder static "C:\Espressif\...."
can we use Variable that still points to the environment in Batch file? ( espressif_esp32 )

for reason in a parallel installation to your Unofficial Development Kit for Espressif ESP8266 have changed the (esp32) "c:\espressif\tools" folder to "c:\espressif\tools_esp32" and named it in batch file and makefile. this works for me, separates us clean the tools of the two.

btw:
the example still points to the ESP8266 in properties, c/c++ general, paths and symbols.
have changed it to "c:/Espressif/ESP32_RTOS_SDK/include/espressif"
this solved the unresolveds example ..uint8 ..#include "esp_common.h"

@cdtdoug have we no a possible way in eclipse for include all subfolders here ?
do we must include each folder?

thank you for the effort and work!
works just fine!

have a good start in 2016,
stay healthy and god bless you and your family!

best wishes
rudi ;-)

workaround: error: "floating constant truncated to zero"

Posted: Thu Dec 31, 2015 1:03 am
by rudi ;-)
hi Mikhail,

can you look at the times, please?

Code: Select all

..
uint8 temper;  // result in fahrenheit
float celsius;    // conversion in Celsius later

celsius = ( temper -  32 ) / 1.8 ;
..
compile and result without problems in linux and toolchain.


compile in windows (minGW) and toolchain and eclipse
is possible to get the error:

error: "floating constant truncated to zero"

first help & fast workaround is:

Code: Select all

..
celsius = ( ( temper -  32 ) *10)  / 18 ;
..
second help, perhabs your proposal :)

btw:

the 'gcc' output:

Code: Select all


C:\Espressif\xtensa-esp108-elf\bin>xtensa-esp108-elf-gcc -v
Using built-in specs.
COLLECT_GCC=xtensa-esp108-elf-gcc
COLLECT_LTO_WRAPPER=c:/espressif/xtensa-esp108-elf/bin/../libexec/gcc/xtensa-esp108-elf/5.1.0/lto-wrapper.exe
Target: xtensa-esp108-elf

Configured with: ../configure --prefix=/d/Neo/esp8266/esp32-devkit/Espressif/xtensa-esp108-elf --target=xtensa-esp108-elf --enable-multilib --disable-nls --disable-shared --disable-threads --with-gnu-as --with-gnu-ld --with-gmp=/d/Neo/esp8266/esp32-devkit/Espressif/build/gmp --with-mpfr=/d/Neo/esp8266/esp32-devkit/Espressif/build/mpfr --with-mpc=/d/Neo/esp8266/esp32-devkit/Espressif/build/mpc --enable-languages=c,c++ --with-newlib --disable-libssp --disable-__cxa_atexit

Thread model: single

gcc version 5.1.0 (GCC)

think perhabs
usual suspects are: gmp & mpfr
because beta, what you think?
can you look at this at time..no hurry!
we have a workaround ;-) perhabs my code is wrong :) ( i hope not )

txs
best wishes
rudi ;-)

btw this was here too:
http://murga-linux.com/puppy/viewtopic.php?t=96922
http://www.murga-linux.com/puppy/viewto ... 272#818272

Re: Unofficial Development Kit for Espressif ESP32 (Windows)

Posted: Thu Jan 07, 2016 11:41 am
by xatax79
Hello,

Small warning during build event:
- Invalid project path: Include path not found (C:\Espressif\ESP8266_SDK\include). esp32_hello_world

Fixed with C:\Espressif\ESP32_RTOS_SDK\include\

Regards, Xatax

Re: Unofficial Development Kit for Espressif ESP32 (Windows)

Posted: Fri Jan 08, 2016 3:01 am
by rudi ;-)
hi Mikhail,

same float error convert in ESP31B arduino IDE
( but we have int )
float_round.png
float_round.png (16.86 KiB) Viewed 48482 times
best wishes
rudi ;-)

Re: Unofficial Development Kit for Espressif ESP32 (Windows)

Posted: Sat Jan 09, 2016 9:18 pm
by CHERTS
I released a new beta version 0.0.6, it DevKit for ESP32 .
I restructured so that it can work normally in the folder C:\Espressif together with the DevKit for ESP8266:
* Documentation moved to a subfolder docs\ESP32;
* Examples moved to a subfolder examples\ESP32;
* Utils moved to a subfolder utils\ESP32;

Re: Unofficial Development Kit for Espressif ESP32 (Windows)

Posted: Sun Jan 10, 2016 3:02 pm
by DAFlippers
In Windows 10 the 'at' command has been deprecated so you need to change the line

at > nul

to

schtasks > nul

in the file

install-mingw-package.bat

David

Re: Unofficial Development Kit for Espressif ESP32 (Windows)

Posted: Tue Jan 12, 2016 10:27 pm
by rudi ;-)
hi

because:

"Segmentation fault
rounding *= 10.0;
"
not sure, perhabs this use in gcc configure

Code: Select all

--enable-decimal-float=yes

best wishes
rudi ;-)

Re: Unofficial Development Kit for Espressif ESP32 (Windows)

Posted: Fri Mar 11, 2016 1:23 pm
by xatax79
Hi,

Somebody tried to migrate to SDK V2.0 ?
Me, I got 108 errors during build.
I'm trying to find the route cause and fix it...

Br, Xatax

Re: Unofficial Development Kit for Espressif ESP32 (Windows)

Posted: Mon May 09, 2016 12:51 pm
by barometre
Which perspective should I open a ESP32 project? I dont have coding highlight with user.c file.