These are chat archives for esp8266/Arduino

1st
Apr 2016
Michael Miller
@Makuna
Apr 01 2016 00:09
Ok, my code followed that pretty closely, and it has been working. Still not sure why it started failing. It looks like the DMA hardware gets stuck on one block (varies which of three) and won't advance (the last block finished isn't updated and the actual pin output doesn't change).
I found several forum entries that state that having that ISR enabled like that code had, causes the effects I see (DMA stops shortly after starting). But that is the one difference, I don't enable or use the ISR. So I guess next is to actually use it as maybe the thing that changed is that without the ISR it will stop.
Jeeth Suresh
@jeethsuresh
Apr 01 2016 07:57
hi, is anyone around?
bobcroft
@bobcroft
Apr 01 2016 10:50
jeethsuresh, i am sure people are around, why do you ask?
Stavros Korokithakis
@skorokithakis
Apr 01 2016 14:31
Hey @Makuna, do you think this charger will be okay for a 2S battery? http://www.hobbyking.com/hobbyking/store/__22410__HobbyKing_174_B3AC_Compact_Charger.html
Michael Miller
@Makuna
Apr 01 2016 16:55
@skorokithakis what was the rating on your battery again? if it was 1600mah, then those will take two hours to charge it from flat. I am partial to a charger that can display the individual cell voltage as it charges, its a nice way to see a battery going bad (one cell getting weak).
Stavros Korokithakis
@skorokithakis
Apr 01 2016 17:57
I don't mind charging time, that'll be fine, as long as it works. Later on if I try something more involved I'll get a better one
Thanks!
Michael Miller
@Makuna
Apr 01 2016 18:01
the important part is the balance charging.
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:28
I was just having some trouble last night trying to program my ESP chip, haha
it keeps saying espcomm_sync failed and other messages like that, I was able to pinpoint the problem to be with the arduino's programming method
but I tried some online fixes to re-enable a force of esptool and none of them worked
d-anders
@d-anders
Apr 01 2016 18:38
anything connected to the board while trying to program?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:39
yeah I have a 232R FTDI
and power, of course
d-anders
@d-anders
Apr 01 2016 18:39
i mean except for the required rx tx
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:39
nope! but it's not just the ESP, it's a pretty complex board
the ESP is just one part of it, with a header to program it directly
d-anders
@d-anders
Apr 01 2016 18:40
no inputs/outputs on the esp?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:41
I'm not sure what you mean - the ESP has its pins connected to buttons, LEDs, a separate microcontroller, and we upgraded its flash storage
d-anders
@d-anders
Apr 01 2016 18:42
ok, connected to which pins on the esp?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:43
hahaha I'm not sure, tbh - the board is pretty busy and my partner is the one who designed it
I'm fairly confident in his skills
there are two buttons, one that I hold to program the thing and one that I press to reset the memory while I'm holding the other button down so it can be programmed
d-anders
@d-anders
Apr 01 2016 18:45
and you have the correct board set in arduino ide (if you use it)?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:45
yup!
and yeah I'm using the arduino IDE
I've tried platformIO as well, no luck there either
d-anders
@d-anders
Apr 01 2016 18:45
cant easily remove the esp?
soldered?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:45
yup
d-anders
@d-anders
Apr 01 2016 18:48
havent mixed up rx/tx?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:48
I don't believe so? is there a way for me to check?
d-anders
@d-anders
Apr 01 2016 18:49
the pin labelled rx on your adapter should go to the tx pin on the esp8266 i guess
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:49
ahhh
d-anders
@d-anders
Apr 01 2016 18:49
but maybe those are all soldered?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:49
yeah
no way to change that now
but my partner is good at his job
d-anders
@d-anders
Apr 01 2016 18:49
if it used to work then it must be correct
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:50
I'm pretty sure he did his job right, and it's a problem with the pins
*it's not a problem with the pins
d-anders
@d-anders
Apr 01 2016 18:50
or have you never been able to program it?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:50
I've never been able to program this version
d-anders
@d-anders
Apr 01 2016 18:50
oooh
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:50
he said I'd need to burn a bootloader onto it, but I haven't been able to do that
because it just immediately fails
d-anders
@d-anders
Apr 01 2016 18:50
does it run some old code if not entering boot mode?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:50
nope
d-anders
@d-anders
Apr 01 2016 18:50
shows up in wifi-connections maybe?
oh
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:51
it runs nothing haha, it's an empty chip
d-anders
@d-anders
Apr 01 2016 18:51
never did?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:51
never did
d-anders
@d-anders
Apr 01 2016 18:51
hm
did you or he erase it?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:51
nope
but we're not using the ESP's flash
d-anders
@d-anders
Apr 01 2016 18:51
never seen an esp8266 come empty
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:51
we upgraded the space
by replacing the flash with a new one
d-anders
@d-anders
Apr 01 2016 18:51
aaaaaah yes
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:52
is the flash the problem for sure?
my partner says he can re-solder the old version of the flash, but tbh I'd rather not
I don't mind not being able to use all of it at this point, I'd just like to have the damn thing program
d-anders
@d-anders
Apr 01 2016 18:54
i dont know really, ive had that error for various reasons i think
is it an esp12 module?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 18:55
I don't believe so, it just says ESP8266EX on the chip
is there an easy fix if it is?
because I can try that
d-anders
@d-anders
Apr 01 2016 19:04
have you tried dio as flash mode in arduino ide board settings?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:05
I might have
let me try again
here's the exact error I've been getting:
arning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
*warning
but this is what I get every time
d-anders
@d-anders
Apr 01 2016 19:06
hm ok
correct setting for flash size?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:06
well, the flash size is 8M
which the arduino IDE doesn't have
I think I might be able to re-enable it in boards.txt
but apparently the bootloader straight up refuses to run it
d-anders
@d-anders
Apr 01 2016 19:07
i dont remember ever getting the _upload_mem_failed
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:07
yeah that's why it's so weird
same error when I enable the larger memory sizes
Me No Dev
@me-no-dev
Apr 01 2016 19:10
no 8M
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:10
here's the thing though, this is the same error I used to get when I didn't make the ESP available for programming
Me No Dev
@me-no-dev
Apr 01 2016 19:10
the esp can do 4MB max
which pins of your FTDI are connected to which pins on the ESP
Martin Ayotte
@martinayotte
Apr 01 2016 19:11
@jeethsuresh 8MBytes != 8Mbit, but 1MB
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:11
right! but in the flash sizes in the Arduino, when it says 1M, does it mean megabyte or megabit? I've been going with megabit
Me No Dev
@me-no-dev
Apr 01 2016 19:12
MByte
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:12
@me-no-dev I'm fairly certain the ESP is hooked up right
ahhh okay
Martin Ayotte
@martinayotte
Apr 01 2016 19:12
ArduinoIDE is all in MBytes
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:12
let me try 1M then
same error :(
Martin Ayotte
@martinayotte
Apr 01 2016 19:13
But when having some espcomm_open failed error, it is usually wiring problems or power problems or bad USB-TTL
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:13
ahh really?
I'm meeting my partner this afternoon
d-anders
@d-anders
Apr 01 2016 19:14
follow the traces and really make sure it is connect rx->tx, tx->rx and gnd->gnd
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:14
so we can test the wiring and check
will do!
d-anders
@d-anders
Apr 01 2016 19:15
the esp8266ex is probably sitting on some small pcb that you bought, is that an esp12 by chance?
or esp1?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:15
oh no, we designed this PCB
I forget which one my partner decided to go with; I believe he went with the ESP-12?
let me check for sure and get back to you, give me a sec
dreamer2
@dreamer2
Apr 01 2016 19:18
8M flashes dont work but 16m works well as 4m in arduino ide
Me No Dev
@me-no-dev
Apr 01 2016 19:19
FTDI RTS -> ESP RST
FTDI DTR -> ESP GPIO0
that is how I have it connected and flashing OK
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:19
hmmm
d-anders
@d-anders
Apr 01 2016 19:23
maybe you can upload a high res pic of your board?
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:27
okay, I just found the purchase order - this is the one we bought http://gridconnect.com/esp8266-wifi-chip.html
not sure if it helps or not :/
d-anders
@d-anders
Apr 01 2016 19:28
hardcore
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:29
hehehe
d-anders
@d-anders
Apr 01 2016 19:29
most here use it on some small prebuilt board, like the esp-01 or esp-12 etc
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:29
yeah, it's for a senior design class
so we kind need to prove we're doing soldering
(or he does, I'm just the software guy)
d-anders
@d-anders
Apr 01 2016 19:30
so you need to check that you got all the required connections to the chip right
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:31
yup, I'll probably be doing that when my partner and I meet up
d-anders
@d-anders
Apr 01 2016 19:31
(or he does)
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:31
anything else I need to look out for
d-anders
@d-anders
Apr 01 2016 19:39
no idea really
but check with the datasheet which pins must be connected and how and then check so you actually got it right
also check (or ask your partner) that you really have a 8Mbit flash
Jeeth Suresh
@jeethsuresh
Apr 01 2016 19:42
yeah definitely
aight I'm gonna shower before I leave, thanks a bunch for the help guys!