These are chat archives for esp8266/Arduino

29th
Apr 2016
Baruch Even
@baruch
Apr 29 2016 06:12
Are they repackaging and modifying the code from git or are they using it as is?
Michael Miller
@Makuna
Apr 29 2016 06:28
@anyone, is there a limit to the number of arguments to a function? I know with AVR it was small but it might have changed since they moved to C11.
Baruch Even
@baruch
Apr 29 2016 12:23
I would think that every argument that can't go to a register will be in the stack (assuming some even go in registers in the first place)
After that you are only limited by stack space...
This is a more modern 32bit mcu so I assume no real limits
Michael Miller
@Makuna
Apr 29 2016 17:44
@baruch It would seem so, but many platforms impose a limit; just wondering if anyone has hit it yet. I hit it once with a Win32 App, the limit was due to optimizer and could be increased with a flag.
sticilface
@sticilface
Apr 29 2016 22:45
Has anyone had any success in trying to flash an ESP via a TEENSY 3.1... I can get it to kind of work... but it bails mid way, and fails....
Me No Dev
@me-no-dev
Apr 29 2016 22:46
how are you trying to flash it "via"?
transparent serial or trying to replicate the protocol?
sticilface
@sticilface
Apr 29 2016 22:47
the examples i found use code in the sketch to bridge two serial connections
    if ( Serial1.available() ) {
        Serial.write( Serial1.read()  );
    }

    // Send bytes from Computer -> Teensy back to ESP8266
    if ( Serial.available() ) {
        Serial1.write( Serial.read()  );
    }
even if that is the only thing in the loop it gets to 20% and fails... if there is other stuff in the loop then it falls over straight away (i.e. esptool fails to connect)..
wonder if copying the entire available() in one go might be better... just wondering if anyone has managed it?
Me No Dev
@me-no-dev
Apr 29 2016 22:49
are the serial speeds the same?
sticilface
@sticilface
Apr 29 2016 22:52
same speed?
Me No Dev
@me-no-dev
Apr 29 2016 22:52
baudrate :D
sticilface
@sticilface
Apr 29 2016 22:52
aye
Me No Dev
@me-no-dev
Apr 29 2016 22:54
strange then... if the implementation is good, by all means it should work
sticilface
@sticilface
Apr 29 2016 22:57
i know! is gets part of the way then falls over!
I'm just trying different baud rates now. slowing down
Me No Dev
@me-no-dev
Apr 29 2016 22:59
what architecture is this teensy3.1?
sticilface
@sticilface
Apr 29 2016 23:01
Using teensyduino... so arduino
bingo.... looks like it needed to be faster not slower! baud of 230400 worked.. below that no... how wierd
Me No Dev
@me-no-dev
Apr 29 2016 23:07
yeah
sticilface
@sticilface
Apr 29 2016 23:09
gonna be difficult to get other stuff to work in the loop as well though
Michael Miller
@Makuna
Apr 29 2016 23:17
@sticilface The question about archetexture is, is it AVR, ARM, or ESP8266 (the three big ones). All of the them can be Arduino. Its funny, I thought 3.1 was ARM, but I found both ARM and AVR both listed as 3.1.
sticilface
@sticilface
Apr 29 2016 23:17
Its ARM
got it working:)... I'm driving a display and rotary encoder... I made an input button.. that resets the ESP and puts it into flash mode.. then i want to be able to flash it through the teensy as a backup.....
normally i'd just enable wifi mode... but incase i balls it up i want to be able to hard program it...
seem to have it working though
Me No Dev
@me-no-dev
Apr 29 2016 23:26
it's ARM
I downloaded the installer and looked through the code
Serials 1-3 use interrupts for transmitting
but the USB serial is polled on read
maybe you should try to read all you find there and send it to serial1 at once
but beware serial1 has only 64 bytes buffer