These are chat archives for esp8266/Arduino

19th
Nov 2015
Ivan Grokhotkov
@igrr
Nov 19 2015 06:16
@kathir1951 i have no idea. where are those macros defined?
kathir1951
@kathir1951
Nov 19 2015 06:30
@igrr yes there is no document but in regular using sdk generating bin files using make file it works nicely
@igrr OLIMEX has developed lib for using Arduino like commands in user files compiling is done using make files
Markus
@Links2004
Nov 19 2015 08:03
@kathir1951 the GPIO_OUTPUT_SET macro can only work if you set the pin in output mode before
take look here
https://github.com/esp8266/Arduino/blob/342c4ae6fb847bfc787f80b89a2bb888d942dc32/cores/esp8266/core_esp8266_wiring_digital.c#L43-L46
the fastest way to set the GPIO output state are GPOS and GPOC
https://github.com/esp8266/Arduino/blob/342c4ae6fb847bfc787f80b89a2bb888d942dc32/cores/esp8266/core_esp8266_wiring_digital.c#L81-L82
you need to include esp8266_peri.h to use the registers directly.
onkelfunny
@onkelfunny
Nov 19 2015 08:55
hello i have a strange issue with mkspiffs:
mkspiffs -c data -d 5 data.img
Debug output enabled
/bbb.json
file size: 107
/data/de_ch.json
file size: 50
/data/de_de.json
file size: 50
/index.html
file size: 6
/js/jquery.js
file size: 84345
SPIFFS_write error(-10001): File system is full.

data left: 40825
error adding file!

Error for adding content from js!
Ivan Grokhotkov
@igrr
Nov 19 2015 09:04
spiffs size is 64k by default, so i can imagine that adding a large file (84345k) may fail
onkelfunny
@onkelfunny
Nov 19 2015 09:06
if i set the Flash Size to 4M (3M SPIFFS) i have the same error
Ivan Grokhotkov
@igrr
Nov 19 2015 09:08
Are you running mkspiffs manually from command line?
onkelfunny
@onkelfunny
Nov 19 2015 09:09
this is only a test after the mkspiffs not working in the arduino ide
Ivan Grokhotkov
@igrr
Nov 19 2015 09:09
Okay, you need to pass it appropriate parameters (image size, block size, page size) if you are running it from command line
onkelfunny
@onkelfunny
Nov 19 2015 09:10
ide output
[SPIFFS] data   : .....PATH...../data
[SPIFFS] size   : 3052
[SPIFFS] page   : 256
[SPIFFS] block  : 8192

SPIFFS Create Failed
i have the latest git version
this works:
mkspiffs -c data -d 5 -s 300000 data.img
Ivan Grokhotkov
@igrr
Nov 19 2015 09:13
Which IDE version do you have?
onkelfunny
@onkelfunny
Nov 19 2015 09:13
1.6.5
Ivan Grokhotkov
@igrr
Nov 19 2015 09:13
okay, i'll try later today with 1.6.5.
I thought it was working because that's what i used before switching to 1.6.6
onkelfunny
@onkelfunny
Nov 19 2015 09:14
with the version 1.6.6 i have another error:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: tried to access method processing.app.Sketch.prepareDataFolder()Ljava/io/File; from class com.esp8266.mkspiffs.ESP8266FS
    at com.esp8266.mkspiffs.ESP8266FS.createAndUpload(ESP8266FS.java:165)
    at com.esp8266.mkspiffs.ESP8266FS.run(ESP8266FS.java:226)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Ivan Grokhotkov
@igrr
Nov 19 2015 09:14
could you please try the latest version of the plugin?
https://github.com/esp8266/arduino-esp8266fs-plugin/releases/tag/0.1.3
might solve the issue with 1.6.6
onkelfunny
@onkelfunny
Nov 19 2015 09:17
with the new version it works in 1.6.6
[SPIFFS] data   : .../data
[SPIFFS] size   : 3052
[SPIFFS] page   : 256
[SPIFFS] block  : 8192
/bbb.json
/data/de_ch.json
/data/de_de.json
/index.html
/js/jquery.js
[SPIFFS] upload : ...data.spiffs.bin
[SPIFFS] reset  : ck
[SPIFFS] port   : /dev/cu.usbserial-A50285BI
[SPIFFS] speed  : 921600
[SPIFFS] address: 0x100000
thx
Ivan Grokhotkov
@igrr
Nov 19 2015 09:20
ok, cool.
kathir1951
@kathir1951
Nov 19 2015 09:32
@Links2004 THANKING YOU . Sorry for distrubing you ; H ow to create library and add c files pl suggest and method . I created lib uart.a and liblcd.a and put it in sdk lib file and addthese in platform text. Is any other method ?
Ivan Grokhotkov
@igrr
Nov 19 2015 09:34
@kathir1951 you can create arduino libraries yourself, please see https://github.com/esp8266/Arduino/tree/master/libraries for a lot of examples
put your library into Documents/Arduino/libraries/ and restart the IDE. It will appear in libraries list.
add any C files you want to src subdirectory of your library
kathir1951
@kathir1951
Nov 19 2015 09:41
@igrr how to include example libhttpd.a( created by c files) in ARDUINO PATH for compiling and use There by i can use httpd.h
@igrr where i have to keep src in arduino path
Ivan Grokhotkov
@igrr
Nov 19 2015 09:42
ah, you mean precompiled library.
you can include it by adding it in platform.txt.
Arduino doesn't support pre-built libraries out of the box, i'm afraid.
kathir1951
@kathir1951
Nov 19 2015 10:49
@igrr I incluudefd pre compiled libray in tools/ sdk/lib
Ivan Grokhotkov
@igrr
Nov 19 2015 10:50
ok
kathir1951
@kathir1951
Nov 19 2015 10:50
Apart from the sdk /lib can i add any other place
@igrr how the files in core folder are compiled ? any libcore.a id genterated ? how they are included in compiling path ? N ormally we use make files to include that
the first one describes how Arduino 1.0 worked.
kathir1951
@kathir1951
Nov 19 2015 11:02
@igrr Thanks for valid information and document
Markus
@Links2004
Nov 19 2015 12:11
what happend to http://www.esp8266.com/ ?
Mario Mikočević
@mozgy
Nov 19 2015 12:28
works fine
Markus
@Links2004
Nov 19 2015 12:33
i only get "This site is under development" in a iframe from nosite01 . domainparkingserver . net
Ivan Grokhotkov
@igrr
Nov 19 2015 13:45
damn, esp8266.com went down and took arduino.esp8266.com along...
arduino.esp8266.com is basically another server but looks like all nameserver records were wiped
Martin Ayotte
@martinayotte
Nov 19 2015 16:59
seems that domain names are screwed up again ... :-(
I've PM Richard about it.
onkelfunny
@onkelfunny
Nov 19 2015 21:44
[SPIFFS] data   : .../data
[SPIFFS] size   : 512
[SPIFFS] page   : 256
[SPIFFS] block  : 8192
/bbb.json
/data/de_ch.json
/data/de_de.json
/index.html
/js/jquery.js
[SPIFFS] upload : .....data.spiffs.bin
[SPIFFS] reset  : ck
[SPIFFS] port   : /dev/cu.usbserial-A50285BI
[SPIFFS] speed  : 115200
[SPIFFS] address: 0x7B000

Uploading 524288 bytes from ...data.spiffs.bin to flash at 0x0007B000
..........................................................................................................................................................................................................

can someone check the spiffs upload with the current git version and arduino 1.6.6
I have some troubles with the upload. the point outputs stops and nothing happens
if i disconnect the cable, i receive this message:

warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 4 bytes
error: failed sending 0xC0
warning: espcomm_send_command: didn't receive command response
SPIFFS Upload failed!

i waited 5 minutes between the last point and the disconnect