Search found 77 matches
- Fri Sep 14, 2018 2:02 pm
- Forum: General Discussion
- Topic: How many times can you flash?
- Replies: 11
- Views: 29619
Re: How many times can you flash?
FWIW: If you have an official Espressif-made module or board, all flash chips we use are specced to minimum 100,000 program/erase cycles. We use the standard Espressif ESP32 4MB WROOM module. It has happened to me several times (4x?) that I had to substitute a board due to a failure of either the N...
- Thu Sep 13, 2018 9:50 pm
- Forum: General Discussion
- Topic: unused code hangs program
- Replies: 15
- Views: 15207
Re: unused code hangs program
It's always good to get a response, maybe there is an angle to this, thanks Chegewara. What baffles me is that the code is in an unused function. I demoed it to a collegue, otherwise I'd doubt my own sanity right now ;) I simply commented out an unused function and code went from hanging to working....
- Thu Sep 13, 2018 7:25 pm
- Forum: General Discussion
- Topic: unused code hangs program
- Replies: 15
- Views: 15207
Re: unused code hangs program?
The problem isn't exclusive to settimeofday(). I now have code, involving access to GPIO pins, that, when I comment it out (no other changes), makes the code run.
- Thu Sep 13, 2018 5:18 pm
- Forum: General Discussion
- Topic: unused code hangs program
- Replies: 15
- Views: 15207
Re: unused code hangs program?
The function is: #include "time.h" #include "sys/time.h" //... void esp32_rtc_init(struct tm *rtc_time) { struct timeval t; t.tv_sec = mktime(rtc_time); t.tv_usec = 0; settimeofday(&t, 0); // merely linking it stops MCU after boot } As indicated, when this function is included in the source (never c...
- Thu Sep 13, 2018 5:07 pm
- Forum: General Discussion
- Topic: unused code hangs program
- Replies: 15
- Views: 15207
unused code hangs program
Update: my test seemed to indicate a suggested solution (see below), but when applied to my app, the code continues to hang . So I do not have a solution :( I had have this weird situation. Starting point: some code working normally. What I did: included a trivial 4 line function with settimeofday(...
- Mon Sep 03, 2018 5:17 pm
- Forum: ESP-IDF
- Topic: EspNow concepts
- Replies: 7
- Views: 12888
Re: EspNow concepts
Good to know! Thanks @davdav.
- Sat Sep 01, 2018 12:56 pm
- Forum: ESP-IDF
- Topic: EspNow concepts
- Replies: 7
- Views: 12888
Re: EspNow concepts
Thanks for the reply davdav, any experience shared is good. I had given up on expecting any. Now you are also confused (like me), so sorry for the big post that follows: > regarding point 1. link tell that you need an "application layer" ackonwledge to be sure the transmission to a peer succeed. > I...
- Fri Aug 31, 2018 12:09 pm
- Forum: ESP-IDF
- Topic: EspNow concepts
- Replies: 7
- Views: 12888
Re: EspNow concepts
To add to the ESPNOW concepts: 1. According to other posts on the forum and elsewhere, the ESPNOW follows a send and acknowledge model, and it isn't clear if it automatically retries (I hope not). So: - the result of a call would guarantee success - failure naturally does not indicate failure, as th...
- Sat Aug 04, 2018 7:07 pm
- Forum: General Discussion
- Topic: running unit tests (with Eclipse CDT + GCC on Windows)
- Replies: 4
- Views: 5737
Re: running unit tests (with Eclipse CDT + GCC on Windows)
Sorry, no. There is no on device ESP32 emulation or debugging. But most things, like a radio connection or a screen, I can simulate quite easily ("mock"). It's better than debugging on the device, because, for example in a protocol, I can introduce transmission errors and reproduce any errors that m...
- Sat Jul 28, 2018 10:56 pm
- Forum: General Discussion
- Topic: running unit tests (with Eclipse CDT + GCC on Windows)
- Replies: 4
- Views: 5737
Re: running unit tests (with Eclipse CDT + GCC on Windows)
The answer turns out to be very simple: just download and install the 64bit version of: http://tdm-gcc.tdragon.net/download Then start Eclipse in a new folder, then File->New C Project and select MINGW (automatically detected) and the Hello World example. Enter in Debug Configurations once, select D...