Closed BackMountainDevil closed 3 years ago
More info: I try to uncomment the things about matrix. Then it can connect my wifi and raspi normally.
At last, I found the code that wired. - portDISABLE_INTERRUPTS() and portENABLE_INTERRUPTS(). Comment them and the esp32 will not rebbot crazy. But I do not know if this is logical. I just find a fact that this work...
void matrix_show()
{
// portDISABLE_INTERRUPTS(); // transmission to array should no be interrupted
matrix.show();
matrix.show(); // to remove glitchy green corner
// portENABLE_INTERRUPTS(); // restore back interrupts
}
Hey @BackMountainDevil,
thanks for filing the issue! I could not reproduce this error. Which ESP did you use? Is there by any chance pin used twice? e.g. motorpin and ledpin? This often causes reboot issues. @renerichter any idea?
Best Bene
Thank you for your reply. I see this esp32 in yout paper supplementary. My esp32 is the same ESP-WROOM-32 except the brand.
I use it with three pins: 3V3, GND, D23.
For reproduce this error. I do it again.
With my iphone hotspot off, output is keeping to try connect. More and more dots
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5856
entry 0x400806a8
This is:ESP32_75399 on /S007/LAR01.
VOID SETUP -> topicSTATUS=/S007/LAR01/STAT
Device-MAC: 7C:9E:BD:06:F6:C8
Connecting to Kearney.....................................................................
With my iphone hotspot on, it would conect wifi and get crazy reboot. Output is the same as two days before. Change another ESP-WROOM-32 or ESP 32S get the same result. Commet those two line in function matrix_show() will make it work with no crazy reboot. I use this new code test 4 ws1812 LED and it work. A new test will be done when I get a new 8x8 LED Matrix(The old one broke somehow) in few days.
Sounds good! Did you for some reason swap CMD
with GND
? This happened to me once and made problems..
New 8x8 LED Matrix tested well. It seems that it is just cocidence.
Great! Thanks :-)
Am Sa., 11. Sept. 2021 um 04:31 Uhr schrieb Kearney < @.***>:
Closed #20 https://github.com/openUC2/UC2-Software-GIT/issues/20.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openUC2/UC2-Software-GIT/issues/20#event-5287097124, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBE5OFZAWL3DFZZJJDGR6LUBK5PJANCNFSM5A3QW44Q .
Hello, amzing gentlemen and ladies. I am a student who want to learn yout project - APP_Incubator_Microscope. The 3D printing is done. I met a problem in the software [ESP32_ledarr ]().
I have flash the ESP32_motor_fluo the esp32 and test well with ras pi 4. But it occurred some problem when flash ESP32_ledarr . It could be flash into esp32. However, it went wired when it run.. When it connected to my wifi, it should tried to connect the mqtt server on ras pi. But in fact, it just reboot and connect my wifi. Then rebbot again..
Output in arduino serial
click to show code
```cpp // ----------- ----------- ----------- ----------- ----------- ----------- // ESP32 script to accept MQTT commands for UC2-control // by: Rene Lachmann // date: 11.09.2019 // based on Arduino-Interface by Rene Lachmann, Xavier Uwurukundu // fixes: // > 20.01.2020 Ientercept based correcd display updating -> Thomas Combriat (Oslo) //----------- ----------- ----------- ----------- ----------- ----------- // ---------------------------------------------------------------------------------------------------------------- // INCLUDES #includeclick to show output
[source code](https://github.com/openUC2/UC2-Software-GIT/blob/V2.0.0/HARDWARE_CONTROL/ESP32/GENERAL/ESP32_ledarr/src/ESP32_ledarr/ESP32_ledarr.ino). The latest version in master branch is the same result. ``` This is:ESP32_40863 on /S007/LAR01. VOID SETUP -> topicSTATUS=/S007/LAR01/STAT Device-MAC: 7C:9E:BD:06:F6:C8 Connecting to Kearney. WiFi connected with IP:172.20.10.6 abort() was called at PC 0x40085d61 on core 1 ELF file SHA256: 0000000000000000 Backtrace: 0x40088a8c:0x3ffb1e00 0x40088d09:0x3ffb1e20 0x40085d61:0x3ffb1e40 0x40085e8d:0x3ffb1e70 0x400d8a77:0x3ffb1e90 0x400d485e:0x3ffb1ec0 0x400d4a7c:0x3ffb1f20 0x400d116c:0x3ffb1f40 0x400d1b94:0x3ffb1f60 0x400d58ce:0x3ffb1fb0 0x4008a7be:0x3ffb1fd0 Rebooting... ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:10124 load:0x40080400,len:5856 entry 0x400806a8 This is:ESP32_94258 on /S007/LAR01. VOID SETUP -> topicSTATUS=/S007/LAR01/STAT Device-MAC: 7C:9E:BD:06:F6:C8 Connecting to Kearney.. WiFi connected with IP:172.20.10.6 abort() was called at PC 0x40085d61 on core 1 ELF file SHA256: 0000000000000000 Backtrace: 0x40088a8c:0x3ffb1e00 0x40088d09:0x3ffb1e20 0x40085d61:0x3ffb1e40 0x40085e8d:0x3ffb1e70 0x400d8a77:0x3ffb1e90 0x400d485e:0x3ffb1ec0 0x400d4a7c:0x3ffb1f20 0x400d116c:0x3ffb1f40 0x400d1b94:0x3ffb1f60 0x400d58ce:0x3ffb1fb0 0x4008a7be:0x3ffb1fd0 Rebooting... ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:10124 load:0x40080400,len:5856 entry 0x400806a8 This is:ESP32_40149 on /S007/LAR01. VOID SETUP -> topicSTATUS=/S007/LAR01/STAT Device-MAC: 7C:9E:BD:06:F6:C8 Connecting to Kearney.. WiFi connected with IP:172.20.10.6 abort() was called at PC 0x40085d61 on core 1 ```Other normal software
Blink
Arduino - File - example - Basic - Blink. It will blink normal.
ws2812
click to show
```cpp // https://arduino.nxez.com/2019/06/10/arduino-driving-ws2812-led.html #includeserial output
the five led turn light one by one
ESP32_motor_fluo
click to show code
```cpp // ----------- ----------- ----------- ----------- ----------- ----------- // ESP32 script to accept MQTT commands for UC2-control // by: Rene Lachmann // date: 11.09.2019 // based on Arduino-Interface by Rene Lachmann, Xavier Uwurukundu //----------- ----------- ----------- ----------- ----------- ----------- // ---------------------------------------------------------------------------------------------------------------- // INCLUDES #includeclick to show output
```cpp rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371 ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:10124 load:0x40080400,len:5856 entry 0x400806a8 This is:ESP32_25717 on /S013/MOT01. VOID SETUP -> topicSTATUS=/S013/MOT01/STAT Device-MAC: 7C:9E:BD:06:F6:C8 Connecting to Kearney.. WiFi connected with IP:172.20.10.6 Starting to connect MQTT to: 172.20.10.5 at port:1883 MQTT_CLIENTID=ESP32_25717 topicSTATUS=/S013/MOT01/STAT Attempting MQTT connection... ```Refer
I have search some reboot about esp. one is software contain a null point. two is the voltage is not enough. I am sure my vin power is fine. Thanks for looking.