These are chat archives for SmingHub/Sming

9th
Dec 2015
alonewolfx2
@alonewolfx2
Dec 09 2015 10:15
@ystrem is it expensive?
ystrem
@ystrem
Dec 09 2015 10:47
@alonewolfx2 the same as esp12e :D
about $3
alonewolfx2
@alonewolfx2
Dec 09 2015 10:55
I saw $4. Do you think attiny85 solution? It's $1.2?
ystrem
@ystrem
Dec 09 2015 11:00
yep, but atmega328p is the same price
thought
alonewolfx2
@alonewolfx2
Dec 09 2015 11:02
Is 10bit enough?
7 adc and 13io for $2 :)
Just you need serial conversation
ystrem
@ystrem
Dec 09 2015 11:07
for me it't overkill, I only need measure battery voltage
alonewolfx2
@alonewolfx2
Dec 09 2015 11:40
so you can use esp's adc with some voltage divider
zhivko
@zhivko
Dec 09 2015 12:28
Ltc2440 is super simple and precise 24bit
There is arduino code for it.
I plan to develop pcb for it.
alonewolfx2
@alonewolfx2
Dec 09 2015 12:32
@zhivko price?
zhivko
@zhivko
Dec 09 2015 13:09
it is not cheap...
just a sec.
10€ / piece
and you need voltage reference also
zhivko
@zhivko
Dec 09 2015 13:15
For stable measurements (not much oscilations) you also need film resistors (to make voltage divider), if measuring voltage is not between 0V and 5V...
robotiko
@robotiko
Dec 09 2015 14:52
ANyone tried gdb in windows?
cannot find the gdb bin
alon24
@alon24
Dec 09 2015 15:27
anyone with knowladge about gdb (I am now interested), I looked at https://blog.attachix.com/live-debugging-with-open-source-tools-programming-for-esp8266-part-4/ and he says to do git submodule init from his repo
but now gdb is in dev right?
robotiko
@robotiko
Dec 09 2015 15:28
yes
have to checkout the pr
is ina pr not even merged
robotiko
@robotiko
Dec 09 2015 16:29
@alonewolfx2 @kireevco
you probably have a solution for the gdb.exe in windows
to be able to use the gdbstub and debug
is not included in CHERTS
late test you werer doing on a multiplatform sdk.. can solve this?
zhivko
@zhivko
Dec 09 2015 18:00
@ystrem no links to buy them yet?
Dmitry Kireev
@kireevco
Dec 09 2015 18:04
@robotiko I've seen something,I could build it. nothing ready yet.
I'm ready to kill my windows vm machine, it locks files on disk, can't compile stuff consistently
robotiko
@robotiko
Dec 09 2015 18:10
:D
Dmitry Kireev
@kireevco
Dec 09 2015 18:10
turned off indexing, we'll see
really... macos and linux are building fine.. windows too, but not consistently. And no changes AT ALL
(also @alonewolfx2 had same issue, I think, with permissinon denied)
alonewolfx2
@alonewolfx2
Dec 09 2015 18:18
@kireevco can we compile lxhal gdb on Windows?
Curtis Pope
@piperpilot
Dec 09 2015 18:21
@kireevco get a mac ;-)
crosofg
@crosofg
Dec 09 2015 21:03
hi I am trying to implement the sha1 library . I have just added the c file and the header file
upon compiling I am getting thsi errror
This message was deleted
user_main.c:118: undefined reference to `sha1'
build/app_app.a(user_main.o): In function `user_init':
crosofg
@crosofg
Dec 09 2015 21:13
how to add other libraries ?
ystrem
@ystrem
Dec 09 2015 21:45
@zhivko nope, started beta testing. Maybe we can get some, as a sming. You can try email them, maybe you can get sample... :)
donnib
@donnib
Dec 09 2015 21:52
for some reason i can't flash my board with esptool anymore, the board works, it runs the previous program (i can see serial output)
i run sudo python esptool.py --baud 115200 --port /dev/tty.usbserial-A40081xF write_flash 0x00000 myFlash.bin
Connecting...
Erasing flash...
Writing at 0x00000000... (0 %)
A fatal error occurred: Failed to write to target Flash after seq 0 (got result 0x1, 0x8)

This drives me crazy !

I know the FTDI is working fine sine i have another module that i can flash fine. It's just this module which i can't flash anymore. I even tried Arduino IDE which seems to flash but then i can see it's still the same code that's in the module so the flash did not do anything even though the led flashes there is data transmitted !!! :shock: :shock:

How is that possible ? Is is writing to a wrong place ? If so how in the h... can i wipe everything to get back to normal ?

i also tried with the option erase_flash with esptool but nothing, tried different baudrates, tried all the tools i could come up with and nothing
any ideas how i can get this module back so i can flash it again ? as i said the module works (i see output on the serial from the previous program that it runs)
ystrem
@ystrem
Dec 09 2015 22:29
Maybe it's the memori corrupted
I read about that
Dan Loman
@dloman
Dec 09 2015 23:11
@donnib I was having the same issue yesterday and just sawpped out esps. Would love to hear of a solution