Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
seclorum
@seclorum
yeah i just noticed the same problem.
gotta say, i'm a little sad that every time i've updated pio, something breaks and my project suffers
i worked around it by commenting out the #include in arduino_pins.h
this to me seems to be a bug. what a pity that platformio doesn't seem to have appropriate tests in place to catch these sorts of bugs, alas.
Baruch Even
@baruch
Are they repackaging and modifying the code from git or are they using it as is?
Michael Miller
@Makuna
@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
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
@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
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
how are you trying to flash it "via"?
transparent serial or trying to replicate the protocol?
sticilface
@sticilface
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
are the serial speeds the same?
sticilface
@sticilface
same speed?
Me No Dev
@me-no-dev
baudrate :D
sticilface
@sticilface
aye
Me No Dev
@me-no-dev
strange then... if the implementation is good, by all means it should work
sticilface
@sticilface
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
what architecture is this teensy3.1?
sticilface
@sticilface
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
yeah
sticilface
@sticilface
gonna be difficult to get other stuff to work in the loop as well though
Michael Miller
@Makuna
@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
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
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
Michael Miller
@Makuna
For some testing, I need to have the Arduino Serial monitor send data to the Esp. The Serial.read() doesn't seem to work, what am I missing?
Michael Miller
@Makuna
What I was missing was a functional cable. HOW IT WAS BROKEN I could not tell you, swapped the USB and it worked??
Me No Dev
@me-no-dev
it's not that uncommon :) I have some devices that work only with particular USB cables
sticilface
@sticilface
Does anyone know of a small package size, preferably SMD, that works to level convert 3.3V to 5V for neopixels. I've been using very successfully the 74HCT245N which works very well, but it is a 20 pin DIP package which is a bit big, plus through hole. Reading around it seems the neopixels are a bit fussy about logic conversion.
Me No Dev
@me-no-dev
just logic conversion?
Martin Ayotte
@martinayotte
How many channel do you need ? (btw, HCT245 is also available in soic-20)
Me No Dev
@me-no-dev
i magine he needes 1
a small fast fet can do the trick
Martin Ayotte
@martinayotte
Then, I would rather use simple MOSFET