Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Jeeth Suresh
@jeethsuresh
aight I'm gonna shower before I leave, thanks a bunch for the help guys!
ZaPpInG
@lrmoreno007
senior design class? xD
Ali
@UmutAlihan
blob

Hi,

Trying to compile and upload the programm into my new clone arduino nano and having this issue

I have connected nano through a usb-tll converter
tx - tx & rx - rx direct connection
What might be the reason for this error ?
Jeeth Suresh
@jeethsuresh
hey guys, just wanted to let the guys who were helping me earlier know that I was having a hardware problem in case anyone was wondering
bidyutper
@bidyutper
ARDUINO AND GENUINO DAY.......................https://day.arduino.cc/#/
d-anders
@d-anders
tx-rx, rx-tx
@jeethsuresh oh, you found the problem?
FWeinb
@FWeinb
Does anyone know if there are some sets of different capacitors and resistors to by in a set?
d-anders
@d-anders
on ali you can usually find resistor sets
Martin Ayotte
@martinayotte
on eBay too
d-anders
@d-anders
search for resistor assortment
Michael Miller
@Makuna
@bidyutper But this is my Arduino Community! ;-)
FWeinb
@FWeinb
Thanks assortment was the keyword!
jpenyc
@jpenyc
from day 1 i have had issues with gettin esp/arduino working to load sketches with OS X. Is there a definiative guide somewhre that I havent found yet?
even using vm with windows cant get it to work
Ali
@UmutAlihan
blob
Can you help me about this error on Arduino IDE
???
Martin Ayotte
@martinayotte
@UmutAlihan , SKT500 and AVRDUDE are for programming Atmel AVR processor, not ESP, so you either forgot to choose ESP Board type, or you forgot to install the ESP Framework.
Ali
@UmutAlihan
@martinayotte Solved... Thanks!
Martin Ayotte
@martinayotte
@UmutAlihan , Welcome !
andig
@andig
@igrr thanks for lwip, will test and let you know, hopefully today
andig
@andig

@igrr, @me-no-dev I have done a first test of sdk 1.5.2 with lwip_gcc. I'm still seeing crashes when aborting tcp connections (that is reloading a page in browser before load has finished). This is what I see:

Switched to a new branch 'sdk-1.5.2'

Sketch uses 298,464 bytes (28%) of program storage space. Maximum is 1,044,464 bytes.
Global variables use 38,040 bytes (46%) of dynamic memory, leaving 43,880 bytes for local variables. Maximum is 81,920 bytes.

llwip -> llwip_gcc

Sketch uses 297,496 bytes (28%) of program storage space. Maximum is 1,044,464 bytes.
Global variables use 38,294 bytes (46%) of dynamic memory, leaving 43,626 bytes for local variables. Maximum is 81,920 bytes.


Decoding 32 results
0x4010011d: umm_assimilate_up at C:\andi\arduino\hardware\esp8266com\esp8266\cores\esp8266\umm_malloc/umm_malloc.c:1161
0x40034fe0: ?? ??:0
0x4010011d: umm_assimilate_up at C:\andi\arduino\hardware\esp8266com\esp8266\cores\esp8266\umm_malloc/umm_malloc.c:1161
0x40034fe0: ?? ??:0
0x4020bd68: operator() at C:\andi\arduino\hardware\esp8266com\esp8266\libraries\ESPAsyncWebServer\src/WebRequest.cpp:568
 (inlined by) _M_invoke at c:\andi\arduino\hardware\esp8266com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional:2071
0x401003e1: check_poison_block at C:\andi\arduino\hardware\esp8266com\esp8266\cores\esp8266\umm_malloc/umm_malloc.c:835
0x4010020c: _umm_free at C:\andi\arduino\hardware\esp8266com\esp8266\cores\esp8266\umm_malloc/umm_malloc.c:1285
0x4020f478: AsyncClient::_s_error(void*, signed char) at C:\andi\arduino\hardware\esp8266com\esp8266\libraries\ESPAsyncTCP\src/ESPAsyncTCP.cpp:506 (discriminator 4)
0x401008c8: free at C:\andi\arduino\hardware\esp8266com\esp8266\cores\esp8266\umm_malloc/umm_malloc.c:1731
0x4020f478: AsyncClient::_s_error(void*, signed char) at C:\andi\arduino\hardware\esp8266com\esp8266\libraries\ESPAsyncTCP\src/ESPAsyncTCP.cpp:506 (discriminator 4)
0x40107154: vPortFree at C:\andi\arduino\hardware\esp8266com\esp8266\cores\esp8266/heap.c:18
0x4020f478: AsyncClient::_s_error(void*, signed char) at C:\andi\arduino\hardware\esp8266com\esp8266\libraries\ESPAsyncTCP\src/ESPAsyncTCP.cpp:506 (discriminator 4)
0x4022753d: tcp_abandon at /Users/igrokhotkov/projects/esp8266/esp_iot_sdk_v1.5.2/app/lwip/core/tcp.c:388
0x40227556: tcp_abort at /Users/igrokhotkov/projects/esp8266/esp_iot_sdk_v1.5.2/app/lwip/core/tcp.c:404
0x4020efc9: AsyncClient::abort() at C:\andi\arduino\hardware\esp8266com\esp8266\libraries\ESPAsyncTCP\src/ESPAsyncTCP.cpp:506 (discriminator 4)
0x4020f2b9: AsyncClient::_close() at C:\andi\arduino\hardware\esp8266com\esp8266\libraries\ESPAsyncTCP\src/ESPAsyncTCP.cpp:506 (discriminator 4)
0x4020f314: AsyncClient::_recv(tcp_pcb*, pbuf*, signed char) at C:\andi\arduino\hardware\esp8266com\esp8266\libraries\ESPAsyncTCP\src/ESPAsyncTCP.cpp:506 (discriminator 4)
0x40230000: user_uart_wait_tx_fifo_empty at ??:?
0x40107154: vPortFree at C:\andi\arduino\hardware\esp8266com\esp8266\cores\esp8266/heap.c:18
0x4020f3af: AsyncClient::_s_recv(void*, tcp_pcb*, pbuf*, signed char) at C:\andi\arduino\hardware\esp8266com\esp8266\libraries\ESPAsyncTCP\src/ESPAsyncTCP.cpp:506 (discriminator 4)
0x40228add: tcp_input at /Users/igrokhotkov/projects/esp8266/esp_iot_sdk_v1.5.2/app/lwip/core/tcp_in.c:416 (discriminator 1)
0x40107144: pvPortMalloc at C:\andi\arduino\hardware\esp8266com\esp8266\cores\esp8266/heap.c:13
0x40225af5: ip_input at /Users/igrokhotkov/projects/esp8266/esp_iot_sdk_v1.5.2/app/lwip/core/ipv4/ip.c:559
0x4010020c: _umm_free at C:\andi\arduino\hardware\esp8266com\esp8266\cores\esp8266\umm_malloc/umm_malloc.c:1285
0x40213ef7: pp_enable_noise_timer at ??:?
0x40225111: ethernet_input at /Users/igrokhotkov/projects/esp8266/esp_iot_sdk_v1.5.2/app/lwip/netif/etharp.c:1379
0x40105bd6: wdt_feed at ??:?
0x40230db0: ets_timer_handler_isr at ??:?
0x40230dd6: ets_timer_handler_isr at ??:?
0x402309fb: ets_snprintf at ??:?
0x40000f49: ?? ??:0
0x40000f49: ?? ??:0
program space actually seems better with gcc
Stavros Korokithakis
@skorokithakis
hey guys
i have a code question
i noticed that i always have some boilerplate code for wifi/mqtt/other things in every project
i think it's pretty complicated to refactor out into a library, but i want to have a file like myprogram.c where i can define my_setUp, my_loop() and a few more hooks
can someone give me some sample code of what i'd have to write into this file and how i could call it from the actual loop(), say?
i've tried just #importing but the compiler doesn't like that
Ivan Grokhotkov
@igrr
@andig @me-no-dev the case in the stack trace posted above looks pretty clear:
  • AsyncClient gets TCP close event and aborts the connection ESPAsyncTCP.cpp#L241
  • tcp_close returns some kind of error (for whatever reason, doesn't really matter) and the code goes down the path of calling abort()ESPAsyncTCP.cpp#L194
  • tcp_abort calls error callback with error code ERR_ABRT (via tcp_abandon) tcp.c#L398
  • we are in trouble already, because pcb has been destroyed, but we are trying to adjust the value of state, i.e. writing some structure which has been deallocated. ESPAsyncTCP.cpp#L222
  • error callback calls discard_cb ESPAsyncTCP.cpp#L225
  • this calls AsyncWebServerRequest::onDisconnect, which does delete client; WebRequest.cpp#L180
  • from there we go into AsyncClient destructor, which calls tcp_abort again ESPAsyncTCP.cpp#L81
From the first look, i think it might be sufficient to set _pcb to zero before calling tcp_abort.
but it might break something else (i haven't read all the async code yet)
Stavros Korokithakis
@skorokithakis
has anyone done anything with GSM?
Stavros Korokithakis
@skorokithakis
behold, my wifi led strip controller: https://i.imgur.com/HELEQZm.jpg
tzapu
@tzapu
:thumbsup: looking nice
sticilface
@sticilface
This message was deleted
Got a question for the boffins. I'm trying to optimise memory and I've found something that I'm not so sure about.... I'm using the HTTPClient lib. And by compiling with the GET() function I loose around 5K of free memory, straight off! Just by including a call to this function... does this sound right? I'd have thought that the required networking stuff would already be in there seeing as the HTTPserver is included etc... this happens on the basic HTTPClient example too... just seems like an awful lot of RAM!
sticilface
@sticilface
@skorokithakis looks good! is that a PWM controlled strip? looks like it, have you tried WS2812s?
Stavros Korokithakis
@skorokithakis
@sticilface it is, i haven't tried that because it's rather more expensive than plain 5050s
but i should
sticilface
@sticilface
How are you driving them? I think the native PWM out, is a little unreliable on the ESP
Ivan Grokhotkov
@igrr
@sticilface lots of strings in HTTPClient lib, i bet most may be wrapped into F() macro
sticilface
@sticilface
5K worth though?... I did have a look, but could not see anything obvious...
I'll F() them and see what happens
Stavros Korokithakis
@skorokithakis
@sticilface pwm, yeah. seems reliable enough, what did you find unreliable?