Eclipse and Node_MCU on Windows

Does anyone know what I’m doing wrong here… I have the full Eclipse set up on my Windows PC and have already imported the MQTT project and tested it – lovely. Like other projects you end up with CLEAN, ALL and FLASH controls to wipe old firmware binaries, compile new code and FLASH the ESP8266 modules – all very civilised and easy to use.    I did exactly the same installation with the node_mcu (ie LUA) software – and… nothing – no apparent way to do any of this within the Eclipse environment. Did I do something really stupid here? Hopefully, getting a solution in here will help others as well. Everything was installed from scratch on my laptop this morning so there is no old code here. It is all the latest downloads – and until Lua all went splendidly smoothly following instructions I’ve referred to in earlier blogs.

Examples – AT code – works fine.

AT Code

Example – MQTT project imported – works fine

image

See MQTT above – straightforward installation – the 3 buttons ALL, CLEAN and FLASH appear just like the other projects… but in the case of NODE_MCU….

image

Oh dear.- no buttons!

Also – if someone knows how to rectify this.. they might also be able to answer another question. Somewhere in the above project – I guess in the INCLUDE folder – is the 0.9.5 SDK.  In the other examples in ECLIPSE the best we have is the 0.9.4 SDK.  So, for example, what would one need to copy across, into a copy of the AT example from the nodemcu-firmware example, to be then able to compile the AT example with 0.9.5 SDK?

Any easy tips/answers in there I suspect will help a lot of people as well as myself. I could find all of this out with a lot of wasted time and experimenting, I’m hoping someone has done all of this.

Advertisements

4 thoughts on “Eclipse and Node_MCU on Windows

  1. Go to the “Make Target” window (not the Project Explorer). Usually it’s on the right side of the screen.
    Right click project folder and select “New…”.
    Enter target name: “all” and leave every other settings on its default state, i.e. all selected.
    Press OK and repeat the same procedure for the target names “clean” and “flash”.

    Anyway, here is a video that shows how to create a new project:

    Peter, where can I find the source code of your MQTT project?

  2. Well, it LOOKED good – but I got a popup in Windows 8 wanting to know what to do with a .PY file – and this lot on clicking ALL…

    12:22:01 **** Build of configuration Default for project nodemcu-firmware ****
    gen_misc.bat all

    C:\Espressif\examples\nodemcu-firmware\app>make all
    ‘make’ is not recognized as an internal or external command,
    operable program or batch file.

    Could Not Find C:\Espressif\examples\nodemcu-firmware\bin\eagle.app.v6.flash.bin
    C:\Espressif\examples\nodemcu-firmware\app>del /F ..\bin\eagle.app.v6.flash.bin ..\bin\eagle.app.v6.irom0text.bin ..\bin\eagle.app.v6.dump ..\bin\eagle.app.v6.S
    The system cannot find the path specified.

    C:\Espressif\examples\nodemcu-firmware\app>cd .output\eagle\debug\image

    C:\Espressif\examples\nodemcu-firmware\app>xtensa-lx106-elf-objdump -x -s eagle.app.v6.out 1>..\..\..\..\..\bin\eagle.app.v6.dump
    The system cannot find the path specified.

    C:\Espressif\examples\nodemcu-firmware\app>xtensa-lx106-elf-objdump -S eagle.app.v6.out 1>..\..\..\..\..\bin\eagle.app.v6.S
    The system cannot find the path specified.

    C:\Espressif\examples\nodemcu-firmware\app>xtensa-lx106-elf-objcopy –only-section .text -O binary eagle.app.v6.out eagle.app.v6.text.bin
    xtensa-lx106-elf-objcopy: ‘eagle.app.v6.out’: No such file

    C:\Espressif\examples\nodemcu-firmware\app>xtensa-lx106-elf-objcopy –only-section .data -O binary eagle.app.v6.out eagle.app.v6.data.bin
    xtensa-lx106-elf-objcopy: ‘eagle.app.v6.out’: No such file

    C:\Espressif\examples\nodemcu-firmware\app>xtensa-lx106-elf-objcopy –only-section .rodata -O binary eagle.app.v6.out eagle.app.v6.rodata.bin
    xtensa-lx106-elf-objcopy: ‘eagle.app.v6.out’: No such file

    C:\Espressif\examples\nodemcu-firmware\app>xtensa-lx106-elf-objcopy –only-section .irom0.text -O binary eagle.app.v6.out eagle.app.v6.irom0text.bin
    xtensa-lx106-elf-objcopy: ‘eagle.app.v6.out’: No such file

    C:\Espressif\examples\nodemcu-firmware\app>gen_appbin.py eagle.app.v6.out v6

    C:\Espressif\examples\nodemcu-firmware\app>xcopy /y eagle.app.v6.irom0text.bin ..\..\..\..\..\bin\
    0 File(s) copied
    File not found – eagle.app.v6.irom0text.bin

    C:\Espressif\examples\nodemcu-firmware\app>xcopy /y eagle.app.v6.flash.bin ..\..\..\..\..\bin\
    0 File(s) copied
    File not found – eagle.app.v6.flash.bin

    C:\Espressif\examples\nodemcu-firmware\app>cd ..\..\..\..\

    12:22:01 Build Finished (took 232ms)

  3. Installed Python 27 – the message went away but still get this..

    12:34:53 **** Build of configuration Default for project nodemcu-firmware ****
    gen_misc.bat all

    C:\Espressif\examples\nodemcu-firmware\app>make all
    ‘make’ is not recognized as an internal or external command,

    operable program or batch file.
    C:\Espressif\examples\nodemcu-firmware\app>del /F ..\bin\eagle.app.v6.flash.bin ..\bin\eagle.app.v6.irom0text.bin ..\bin\eagle.app.v6.dump ..\bin\eagle.app.v6.S
    Could Not Find C:\Espressif\examples\nodemcu-firmware\bin\eagle.app.v6.flash.bin

    The system cannot find the path specified.
    C:\Espressif\examples\nodemcu-firmware\app>cd .output\eagle\debug\image

    C:\Espressif\examples\nodemcu-firmware\app>xtensa-lx106-elf-objdump -x -s eagle.app.v6.out 1>..\..\..\..\..\bin\eagle.app.v6.dump
    The system cannot find the path specified.

    C:\Espressif\examples\nodemcu-firmware\app>xtensa-lx106-elf-objdump -S eagle.app.v6.out 1>..\..\..\..\..\bin\eagle.app.v6.S
    The system cannot find the path specified.

    C:\Espressif\examples\nodemcu-firmware\app>xtensa-lx106-elf-objcopy –only-section .text -O binary eagle.app.v6.out eagle.app.v6.text.bin
    xtensa-lx106-elf-objcopy: ‘eagle.app.v6.out’: No such file

    C:\Espressif\examples\nodemcu-firmware\app>xtensa-lx106-elf-objcopy –only-section .data -O binary eagle.app.v6.out eagle.app.v6.data.bin
    xtensa-lx106-elf-objcopy: ‘eagle.app.v6.out’: No such file

    C:\Espressif\examples\nodemcu-firmware\app>xtensa-lx106-elf-objcopy –only-section .rodata -O binary eagle.app.v6.out eagle.app.v6.rodata.bin
    xtensa-lx106-elf-objcopy: ‘eagle.app.v6.out’: No such file

    C:\Espressif\examples\nodemcu-firmware\app>xtensa-lx106-elf-objcopy –only-section .irom0.text -O binary eagle.app.v6.out eagle.app.v6.irom0text.bin
    xtensa-lx106-elf-objcopy: ‘eagle.app.v6.out’: No such file

    C:\Espressif\examples\nodemcu-firmware\app>gen_appbin.py eagle.app.v6.out v6
    xtensa-lx106-elf-nm: ‘eagle.app.v6.out’: No such file
    no entry point!!
    Traceback (most recent call last):
    File “C:\Espressif\examples\nodemcu-firmware\tools\gen_appbin.py”, line 69, in
    cmd = ‘genflashbin%s eagle.app.%s.text.bin ‘%(ver, ver)+entry_addr+’ eagle.app.%s.data.bin ‘%(ver)+ data_start_addr+’ eagle.app.%s.rodata.bin ‘%(ver)+rodata_start_addr
    TypeError: cannot concatenate ‘str’ and ‘NoneType’ objects

    C:\Espressif\examples\nodemcu-firmware\app>xcopy /y eagle.app.v6.irom0text.bin ..\..\..\..\..\bin\
    0 File(s) copied
    File not found – eagle.app.v6.irom0text.bin

    C:\Espressif\examples\nodemcu-firmware\app>xcopy /y eagle.app.v6.flash.bin ..\..\..\..\..\bin\
    0 File(s) copied
    File not found – eagle.app.v6.flash.bin

    C:\Espressif\examples\nodemcu-firmware\app>cd ..\..\..\..\

    12:34:53 Build Finished (took 295ms)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s