找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開(kāi)始

搜索
查看: 1477|回復(fù): 1
打印 上一主題 下一主題
收起左側(cè)

esp32-cam不斷reboot

[復(fù)制鏈接]
回帖獎(jiǎng)勵(lì) 5 黑幣 回復(fù)本帖可獲得 5 黑幣獎(jiǎng)勵(lì)! 每人限 2 次
跳轉(zhuǎn)到指定樓層
樓主
ID:1008389 發(fā)表于 2022-11-30 10:52 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式
就是在調(diào)用esp_http_client_init()函數(shù)時(shí),板子會(huì)出錯(cuò),運(yùn)行時(shí)不斷reboot,有什么解決的辦法嗎?我已經(jīng)困擾好久了
以下是相關(guān)的函數(shù)
  1.     esp_http_client_config_t config;
  2.     config.event_handler = ocr_http_event_handler;
  3.     config.buffer_size = 4 * 1024;
  4.     config.timeout_ms = 4000;

  5.     config.url  = temp_url.c_str();
  6.     config.cert_pem = root_ca;
  7.     Serial.print("config.url = ");
  8.     Serial.println(config.url);

  9.     esp_http_client_handle_t client = esp_http_client_init(&config);
  10.     esp_http_client_set_method(client, HTTP_METHOD_POST);
  11.     esp_http_client_set_header(client, "Content-Type", "application/x-www-form-urlencoded");
  12.     esp_http_client_set_post_field(client, temp_url.c_str(), sizeof(temp_url.c_str()));
復(fù)制代碼

以下報(bào)錯(cuò)的內(nèi)容
  1. Core 1 register dump:
  2. PC      : 0x4008d858  PS      : 0x00060730  A0      : 0x800d7a48  A1      : 0x3ffb1e00  
  3. A2      : 0x0000000f  A3      : 0x0000000b  A4      : 0x000000ff  A5      : 0x0000ff00  
  4. A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x00000001  A9      : 0x00000000  
  5. A10     : 0x3ffdf50c  A11     : 0x3f401614  A12     : 0x000000ff  A13     : 0x0000ff00  
  6. A14     : 0x00ff0000  A15     : 0xff000000  SAR     : 0x00000019  EXCCAUSE: 0x0000001c  
  7. EXCVADDR: 0x0000000f  LBEG    : 0x4008d879  LEND    : 0x4008d889  LCOUNT  : 0xfffffffd  

  8. ELF file SHA256: 0000000000000000

  9. Backtrace: 0x4008d858:0x3ffb1e00 0x400d7a45:0x3ffb1e10 0x400d161b:0x3ffb1e30 0x400d1bb9:0x3ffb1ec0 0x400d537c:0x3ffb1fb0 0x400908de:0x3ffb1fd0
復(fù)制代碼

以下是報(bào)錯(cuò)的定位

  1. C:\Users\28032\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0\bin>xtensa-esp32-elf-addr2line -e python.ino.elf 0x4008d858:0x3ffb1e00 0x400d7a45:0x3ffb1e10 0x400d161b:0x3ffb1e30 0x400d1bb9:0x3ffb1ec0 0x400d537c:0x3ffb1fb0 0x400908de:0x3ffb1fd0
  2. /home/mak/e/p/newlib_old/newlib_xtensa-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/strlen.S:46
  3. /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_http_client/esp_http_client.c:335
  4. C:\Users\28032\Documents\Arduino\python/python.ino:163
  5. C:\Users\28032\Documents\Arduino\python/python.ino:283
  6. C:\Users\28032\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/main.cpp:30
  7. /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)
復(fù)制代碼



分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報(bào)

沙發(fā)
ID:372579 發(fā)表于 2022-12-2 16:06 | 只看該作者
在報(bào)錯(cuò)定位處查查
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表