-
You need to use the module in 2 stages.
The first is to use the write module to load your module into flash. You can add it as a string, or use the wget method to load it.
Once it is in flash you don't need this loader script.Then use the flash item method to pull the string from flash and add to the module cache.
In your example you would not use the 2nd require, as the first would have already added it.
The error you are getting is due to the module not getting added to then flash with the write method first, so the retrieved string is empty so the module.add fails
-
-
-
-
-
-
I'll be happy to help where I can. The esp8266 has been a bit frustrating fighting against heap and rom firmware sizes, so having those constraints removed would be great.
It would be even better if Gordon produced a board with the module, so that it would not be a second class citizen... And be a part of the espruino family.
-
The xbm (X bitmap) format might be of use. It's monochrome and is like a declaration in c that you could convert to JavaScript, the output is text:
https://en.m.wikipedia.org/wiki/X_BitMap
[#define](https://forum.espruino.com/search/?q=%23define) test_width 16 [#define](https://forum.espruino.com/search/?q=%23define) test_height 7 static char test_bits[] = { 0x13, 0x00, 0x15, 0x00, 0x93, 0xcd, 0x55, 0xa5, 0x93, 0xc5, 0x00, 0x80, 0x00, 0x60 };
-
-
There is already this one:
https://github.com/espruino/Espruino/blob/master/Dockerfile-esp8266
It just needs the sdk updated as far as I'm aware...
-
-
Did you build the sdk from scratch - or use @tve 's tarball used in the Travis file?
I'm doing a build from scratch now to test - will check in the morning...
-
-
-
-
Once the ESP is connected to the network, a
wifi.save()
stored the ssid and pwd in EPROM- it will auto connect net boot.The workaround if mDns is not available then you can add the Mac address to your router and use the deco reservation, so tht it gets a known ip. Then you can set the hostname in the wifi init, and any browser can refer to the ESP by hostname.
-
So looks like it is wired:
DO NodeMCU.D6 GPIO12 SCK NodeMCU.D5 GPIO14 DI NodeMCU.D7 GPIO13 CS NodeMCU.D2 GPIO4
var s = new SPI(); s.setup({mosi:NodeMCU.D7,miso:NodeMCU.D6,sck:NodeMCU.D5}); E.connectSDCard(s,NodeMCU.D2);
It looks like it should work ok.
The SD card has been formatted with the correct File system?
-
@tve
Is version 2.0 sdk larger - is that why the rom size had to drop, and therefore the graphics library? -
-
The line:
https://github.com/espruino/Espruino/blob/master/Makefile#L1966$(Q)COMPILE=gcc python $(APPGEN_TOOL) $(USER1_ELF) 2 $(ESP_FLASH_MODE) $(ESP_FLASH_FREQ_DIV) $(ESP_FLASH_SIZE) 0 >/dev/null
This should be generating the
eagle.app.flash.bin
file.$(Q)
gets evaluated - normally it it set to be empty - so it is set to Quiet - which suppresses the output.We can set the output to verbose, so you can see what your error is:
make V=1
... so in our case here we are using a script, so:./build-esp-4mb.sh V=1
This runs the build in verbose mode, so you will be able to see where the error is.
In my case I see:
COMPILE=gcc python /mnt/c/ubuntu/esp-open-sdk/sdk/tools/gen_appbin.py espruino_esp8266_user1.elf 2 0 15 4 0 >/dev/null
This implies there is something wrong with your python setup.
As python is used to build the wrapper files - in your case I would have thought this would have failed earlier.
What is your output from ?:
root@OFFICE-PC:/mnt/c/ubuntu/Espruino# python -V Python 2.7.6
-
have you tried a
make clean
and then amake
?What
env
have you set up - this is my build script:root@OFFICE-PC:/mnt/c/ubuntu/Espruino# cat build-esp-4mb.sh #! /bin/bash export ESP8266_BOARD=1 export FLASH_4MB=1 export ESP8266_SDK_ROOT=/mnt/c/ubuntu/esp-open-sdk/sdk export PATH=$PATH:/mnt/c/ubuntu/esp-open-sdk/xtensa-lx106-elf/bin/ export ESPHOSTNAME=espruino:88 make $*
The last lines output look like:
LD espruino_esp8266_partial.o LD espruino_esp8266_user1.elf LD espruino_esp8266_user2.elf To disassemble: xtensa-lx106-elf-objdump -d -l -x espruino_esp8266_user2.elf Sections: Idx Name Size VMA LMA File off Algn 3 .text 00006cd0 40100000 40100000 00002f10 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE 4 .irom0.text 0006ab94 40201010 40201010 00009be0 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE To disassemble: xtensa-lx106-elf-objdump -d -l -x espruino_esp8266_user1.elf xtensa-lx106-elf-objdump -d -l -x espruino_esp8266_user1.elf >espruino_esp8266_user1.lst 4 -rwxrwxrwx 1 root root 2204 Sep 17 10:10 eagle.app.v6.data.bin 428 -rwxrwxrwx 1 root root 437140 Sep 17 10:10 eagle.app.v6.irom0text.bin 12 -rwxrwxrwx 1 root root 9616 Sep 17 10:10 eagle.app.v6.rodata.bin 28 -rwxrwxrwx 1 root root 27856 Sep 17 10:10 eagle.app.v6.text.bin ** user1.bin uses 476884 bytes of 491520 available
I'm not sure why you build is failing on the user1 target.
-
@Gordon
The images are fine, however the 1.5 boot loader bin is missing, so you can't flash, unless you add this externally.
The ESP32 dev board is back in stock at adafruit:
https://www.adafruit.com/products/3269
68 or so in stock.
@Ollie
For me the international postage offered shipping of about $US15 was more reasonable than the UPS. I added a pi zero and bluetooth modules so my order too - so that when the puck is out I'll have a bluetooth USB for one of my pi boards