Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TW#15171] sntp_init() causes crash #944

Closed
gregstewart90 opened this issue Aug 29, 2017 · 3 comments
Closed

[TW#15171] sntp_init() causes crash #944

gregstewart90 opened this issue Aug 29, 2017 · 3 comments

Comments

@gregstewart90
Copy link

gregstewart90 commented Aug 29, 2017

I updated to the latest IDF and calling sntp_init() now causes the esp32 to constantly reset with the following output:

`
Backtrace: 0x400884d9:0x3ffe0180 0x400875c7:0x3ffe01a0 0x40089585:0x3ffe01d0 0x400898fa:0x3ffe03a0 0x40089269:0x3ffe03e0 0x400893cc:0x3ffe0460 0x4008202e:0x3ffe0480 0x400884d6:0x3ffe0540 0x400884d6:0x3ffe0560 0x40089585:0x3ffe0590 0x400898fa:0x3ffe0760 0x40089269:0x3ffe07a0 0x400893cc:0x3ffe0820 0x4008202e:0x3ffe0840 0x400884d6:0x3ffe0900 0x400884d6:0x3ffe0920 0x40089585:0x3ffe0950 0x400898fa:0x3ffe0b20 0x40089269:0x3ffe0b60 0x400893cc:0x3ffe0be0 0x4008202e:0x3ffe0c00 0x400884d6:0x3ffe0cc0 0x400884d6:0x3ffe0ce0 0x40089585:0x3ffe0d10 0x400898fa:0x3ffe0ee0 0x40089269:0x3ffe0f20 0x400893cc:0x3ffe0fa0 0x4008202e:0x3ffe0fc0 0x4008904d:0x3ffe1080 0x4008904d:0x3ffe10a0 0x40085e89:0x3ffe10c0 0x400fe3a2:0x3ffe1100 0x400fe69e:0x3ffe1120 0x400f2294:0x3ffe1140 0x40176cb7:0x3ffe1160 0x40176d83:0x3ffe1180 0x40176dfd:0x3ffe11c0 0x4010544f:0x3ffe11e0 0x4010586c:0x3ffe1220
0x400884d9: prvTaskGetSnapshot at /Path/to/IDF/esp32/esp-idf/components/freertos/./tasks.c:4994

0x400875c7: uxTaskGetSnapshotAll at /Path/to/IDF/esp32/esp-idf/components/freertos/./tasks.c:5054 (discriminator 2)

0x40089585: esp_core_dump_write at /Path/to/IDF/esp32/esp-idf/components/esp32/./core_dump.c:112

0x400898fa: esp_core_dump_to_uart at /Path/to/IDF/esp32/esp-idf/components/esp32/./core_dump.c:534

0x40089269: commonErrorHandler at /Path/to/IDF/esp32/esp-idf/components/esp32/./panic.c:546

0x400893cc: xt_unhandled_exception at /Path/to/IDF/esp32/esp-idf/components/esp32/./panic.c:546

0x4008202e: _xt_user_exc at xtensa_vectors.o:?

0x400884d6: prvTaskGetSnapshot at /Path/to/IDF/esp32/esp-idf/components/freertos/./tasks.c:4994

0x400884d6: prvTaskGetSnapshot at /Path/to/IDF/esp32/esp-idf/components/freertos/./tasks.c:4994

0x40089585: esp_core_dump_write at /Path/to/IDF/esp32/esp-idf/components/esp32/./core_dump.c:112

0x400898fa: esp_core_dump_to_uart at /Path/to/IDF/esp32/esp-idf/components/esp32/./core_dump.c:534

0x40089269: commonErrorHandler at /Path/to/IDF/esp32/esp-idf/components/esp32/./panic.c:546

0x400893cc: xt_unhandled_exception at /Path/to/IDF/esp32/esp-idf/components/esp32/./panic.c:546

0x4008202e: _xt_user_exc at xtensa_vectors.o:?

0x400884d6: prvTaskGetSnapshot at /Path/to/IDF/esp32/esp-idf/components/freertos/./tasks.c:4994

0x400884d6: prvTaskGetSnapshot at /Path/to/IDF/esp32/esp-idf/components/freertos/./tasks.c:4994

0x40089585: esp_core_dump_write at /Path/to/IDF/esp32/esp-idf/components/esp32/./core_dump.c:112

0x400898fa: esp_core_dump_to_uart at /Path/to/IDF/esp32/esp-idf/components/esp32/./core_dump.c:534

0x40089269: commonErrorHandler at /Path/to/IDF/esp32/esp-idf/components/esp32/./panic.c:546

0x400893cc: xt_unhandled_exception at /Path/to/IDF/esp32/esp-idf/components/esp32/./panic.c:546

0x4008202e: _xt_user_exc at xtensa_vectors.o:?

0x400884d6: prvTaskGetSnapshot at /Path/to/IDF/esp32/esp-idf/components/freertos/./tasks.c:4994

0x400884d6: prvTaskGetSnapshot at /Path/to/IDF/esp32/esp-idf/components/freertos/./tasks.c:4994

0x40089585: esp_core_dump_write at /Path/to/IDF/esp32/esp-idf/components/esp32/./core_dump.c:112

0x400898fa: esp_core_dump_to_uart at /Path/to/IDF/esp32/esp-idf/components/esp32/./core_dump.c:534

0x40089269: commonErrorHandler at /Path/to/IDF/esp32/esp-idf/components/esp32/./panic.c:546

0x400893cc: xt_unhandled_exception at /Path/to/IDF/esp32/esp-idf/components/esp32/./panic.c:546

0x4008202e: _xt_user_exc at xtensa_vectors.o:?

0x4008904d: invoke_abort at /Path/to/IDF/esp32/esp-idf/components/esp32/./panic.c:546

0x4008904d: invoke_abort at /Path/to/IDF/esp32/esp-idf/components/esp32/./panic.c:546

0x40085e89: xQueueGenericReceive at /Path/to/IDF/esp32/esp-idf/components/freertos/./queue.c:2034

0x400fe3a2: sys_mutex_lock at /Path/to/IDF/esp32/esp-idf/components/lwip/port/freertos/sys_arch.c:541

0x400fe69e: sys_arch_protect at /Path/to/IDF/esp32/esp-idf/components/lwip/port/freertos/sys_arch.c:541

0x400f2294: pbuf_free at /Path/to/IDF/esp32/esp-idf/components/lwip/core/pbuf.c:1186

0x40176cb7: sntp_send_request at /Path/to/IDF/esp32/esp-idf/components/lwip/apps/sntp/sntp.c:602

0x40176d83: sntp_request at /Path/to/IDF/esp32/esp-idf/components/lwip/apps/sntp/sntp.c:602

0x40176dfd: sntp_init at /Path/to/IDF/esp32/esp-idf/components/lwip/apps/sntp/sntp.c:602

0x4010544f: startSNTP at /Path/to/IDF/esp32/workspace/cp25g1/main/i2c/ds1339/ds1339.c:31

0x4010586c: task_ds1307 at /Path/to/IDF/esp32/workspace/cp25g1/main/i2c/ds1339/ds1339.c:177
`

The really big issue is that I cannot get it to stop outputting until I unplug the cable from the computer. I had a unit fail in the field with this constantly resetting issue, and it caused big problems.

@FayeY FayeY changed the title sntp_init() causes crash [TW#15171] sntp_init() causes crash Sep 5, 2017
@igrr
Copy link
Member

igrr commented Sep 7, 2017

Please try latest master; the core dump looping issue has been resolved in 8433fed.

@FayeY
Copy link
Collaborator

FayeY commented Sep 18, 2017

Hi @gregstewart90 , have you tried the latest IDF? Is this issue solved?

@gregstewart90
Copy link
Author

I've tried that latest IDF, and it does work. It doesn't constantly reset, but you must have a connection to the network before you call sntp_init(). In a previous IDF, I imagine sntp_init() waited for a connection. If you call sntp_init() before a connection is made, the esp32 resets.

@FayeY FayeY closed this as completed Nov 21, 2017
espressif-bot pushed a commit that referenced this issue Feb 18, 2020
…ore use if not then creates it

Closes: #944
Closes: #3931
Closes: WIFI-1019
espressif-bot pushed a commit that referenced this issue Mar 2, 2020
…ore use if not then creates it

Closes: #944
Closes: #3931
Closes: WIFI-1019
espressif-bot pushed a commit that referenced this issue Mar 18, 2020
…ore use if not then creates it

Closes: #944
Closes: #3931
Closes: WIFI-1019
espressif-bot pushed a commit that referenced this issue Mar 18, 2020
…ore use if not then creates it

Closes: #944
Closes: #3931
Closes: WIFI-1019
espressif-bot pushed a commit that referenced this issue Mar 19, 2020
…ore use if not then creates it

Closes: #944
Closes: #3931
Closes: WIFI-1019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants