Search found 94 matches
- Thu May 12, 2022 11:40 am
- Forum: ESP32 Arduino
- Topic: Sending array by using wifi
- Replies: 10
- Views: 6393
Re: Sending array by using wifi
In this case I get on :invalid conversion from 'unsigned char*' to 'const char*' [-fpermissive] either cast with (const char *)readtemp() or remove the unsigned keyword. I think the other proposed solution using JSON may be better. What does it print? You should see the JSON string you constructed ...
- Thu May 12, 2022 1:53 am
- Forum: General Discussion
- Topic: Restart the ESP32
- Replies: 4
- Views: 2523
Re: Restart the ESP32
Make sure your power supply is good. A power supply that drops the voltage a little too low will cause all kinds of problems. If you are using the computer's usb port for power, that might be the problem. If the ramp-up from 0V to 5V on the supply is too slow, I think you'll have boot failures too.
- Thu May 12, 2022 12:59 am
- Forum: ESP32 Arduino
- Topic: Sending array by using wifi
- Replies: 10
- Views: 6393
Re: Sending array by using wifi
Does readTemp compile? It looks like it might try to return a pointer to a temporary on the stack as an 8-bit value. Perhaps you want it to return unsigned char * and add static to the a[5]. And then you'll want to change the 5 to a 6 and add a null terminator so it can be a c string. And then you m...
- Tue Mar 29, 2022 11:55 pm
- Forum: Hardware
- Topic: how to cut PWM signal when board freezes or reboots
- Replies: 7
- Views: 3754
Re: how to cut PWM signal when board freezes or reboots
Also, in a different thread you said
I think that may be related. I removed that (10uF) capacitor at the same time I reduced the 200uF filter on the power supply. One of those fixed the boot issue for me.added 4.7uf capacitor GND <> RST and reset works as expected.
- Tue Mar 29, 2022 12:42 pm
- Forum: Hardware
- Topic: how to cut PWM signal when board freezes or reboots
- Replies: 7
- Views: 3754
Re: how to cut PWM signal when board freezes or reboots
I just took a look at https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf table on page 62, which I wish I'd studied earlier. It agrees with what you are saying. Make sure the power supply is good...watch with a scope when it is failing. The dev boards I got from amazo...
- Tue Mar 29, 2022 12:36 am
- Forum: Hardware
- Topic: how to cut PWM signal when board freezes or reboots
- Replies: 7
- Views: 3754
Re: how to cut PWM signal when board freezes or reboots
I have not used PWM, but my experience has been a few pins on the device I used come up high, or busy doing something, until my code starts running. Most pins come up low(?). I think it is documented, but didn't read it soon enough... I also had issues with restart on a few devices; I believe 200uF ...
- Mon Mar 28, 2022 2:08 pm
- Forum: Hardware
- Topic: how to cut PWM signal when board freezes or reboots
- Replies: 7
- Views: 3754
Re: how to cut PWM signal when board freezes or reboots
Pure software solutions can fail. https://en.wikipedia.org/wiki/Therac-25 Microwave ovens may use a hardware interlock that uses multiple switches when opening the door while running. The third switch in the sequence is a crowbar switch https://en.wikipedia.org/wiki/Crowbar_(circuit) that is suppose...
- Mon Mar 07, 2022 12:15 am
- Forum: ESP-IDF
- Topic: Stack smashing protect failure after calling method of class with pointer
- Replies: 1
- Views: 5695
Re: Stack smashing protect failure after calling method of class with pointer
maybe https://www.cplusplus.com/reference/cstdlib/getenv/ The pointer returned points to an internal memory block, whose content or validity may be altered by further calls to getenv (but not by other library functions). Not sure how that plays out when two getenv calls together here NetworkControll...
- Thu Feb 24, 2022 1:22 pm
- Forum: ESP-IDF 中文讨论版
- Topic: ESP-IDF 5.0 ESP32-S2 【LoadStoreAlignment】异常
- Replies: 2
- Views: 1909
Re: ESP-IDF 5.0 ESP32-S2 【LoadStoreAlignment】异常
Code looks very similar to mine.
1) will it work if you read 10 bytes instead of 64534?
2) does using help?
1) will it work if you read 10 bytes instead of 64534?
2) does using
Code: Select all
fopen(..., "rb")
- Sun Feb 20, 2022 9:36 pm
- Forum: Hardware
- Topic: ESP32-WROOM-32U Help with antenna selection
- Replies: 2
- Views: 1689
Re: ESP32-WROOM-32U Help with antenna selection
1/8 inch acrylic box and pcb antenna works in a house through one interior wall or wood floor, 30 or 40 feet. 100 feet and a brick wall is too far.
https://www.amazon.com/gp/product/B07QCP2451/
https://www.amazon.com/gp/product/B07QCP2451/