espressif / esp-at

AT application for ESP32/ESP32-C2/ESP32-C3/ESP32-C6/ESP8266
Apache License 2.0
878 stars 788 forks source link

LAN8720 and AT ETH command #471

Open pixsysedp opened 4 years ago

pixsysedp commented 4 years ago

I compiled firmware from https://github.com/espressif/esp-at/commit/fb54a93f52d27808baaa4ca166d4dfc76261977c to implement ETH support on my custom board ESP32 based.

I already tested the HW with an Arduino firmware and hardware is on, the Ethernet PHY work correctly. My board is based on Olimex ESP32-EVB ( https://www.olimex.com/Products/IoT/ESP32/ESP32-EVB/open-source-hardware ) if schematic is necessary.

I enabled LAN8720 ( CONFIG_PHY_LAN8720=y ) ETH Support and a Debug Log Level:

CONFIG_PHY_LAN8720=y CONFIG_ETH_USE_ESP32_EMAC=y CONFIG_ETH_PHY_INTERFACE_RMII=y CONFIG_ETH_RMII_CLK_INPUT=y CONFIG_ETH_RMII_CLK_IN_GPIO=0 CONFIG_ETH_DMA_BUFFER_SIZE=512 CONFIG_ETH_DMA_RX_BUFFER_NUM=10 CONFIG_ETH_DMA_TX_BUFFER_NUM=10 CONFIG_AT_ETHERNET_SUPPORT=y CONFIG_LOG_DEFAULT_LEVEL_DEBUG=y

After boot standard AT commands reply correctly, ETH related commands respond with ERROR. Someone can help me to investigate problem?

this is my BOOT and reply to eth command:

`ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_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:2 load:0x3fff0018,len:4 load:0x3fff001c,len:1284 load:0x40078000,len:12560 load:0x40080400,len:3496 entry 0x4008063c I (586) cpu_start: Pro cpu up. I (586) cpu_start: Application information: I (586) cpu_start: Project name: esp-at I (588) cpu_start: App version: ESP-AT I (593) cpu_start: Compile time: Sep 14 2020 10:32:06 I (599) cpu_start: ELF file SHA256: 10f48307d87cd829... I (605) cpu_start: ESP-IDF: v4.0.1-193-ge7ac221b4 I (611) cpu_start: Single core mode D (616) memory_layout: Checking 9 reserved memory ranges: D (621) memory_layout: Reserved memory range 0x3ffae000 - 0x3ffae6e0 D (627) memory_layout: Reserved memory range 0x3ffae6e0 - 0x3ffaff10 D (634) memory_layout: Reserved memory range 0x3ffb0000 - 0x3ffb6388 D (640) memory_layout: Reserved memory range 0x3ffb8000 - 0x3ffb9a20 D (647) memory_layout: Reserved memory range 0x3ffbdb28 - 0x3ffbdb5c D (653) memory_layout: Reserved memory range 0x3ffbdb60 - 0x3ffcac28 D (659) memory_layout: Reserved memory range 0x3ffe0000 - 0x3ffe0440 D (666) memory_layout: Reserved memory range 0x40070000 - 0x40078000 D (672) memory_layout: Reserved memory range 0x40080000 - 0x4009cfe4 D (679) memory_layout: Building list of available memory regions: D (685) memory_layout: Available memory region 0x3ffaff10 - 0x3ffb0000 D (691) memory_layout: Available memory region 0x3ffb6388 - 0x3ffb8000 D (698) memory_layout: Available memory region 0x3ffb9a20 - 0x3ffbdb28 D (705) memory_layout: Available memory region 0x3ffbdb5c - 0x3ffbdb60 D (711) memory_layout: Available memory region 0x3ffcac28 - 0x3ffcc000 D (718) memory_layout: Available memory region 0x3ffcc000 - 0x3ffce000 D (724) memory_layout: Available memory region 0x3ffce000 - 0x3ffd0000 D (731) memory_layout: Available memory region 0x3ffd0000 - 0x3ffd2000 D (738) memory_layout: Available memory region 0x3ffd2000 - 0x3ffd4000 D (744) memory_layout: Available memory region 0x3ffd4000 - 0x3ffd6000 D (751) memory_layout: Available memory region 0x3ffd6000 - 0x3ffd8000 D (757) memory_layout: Available memory region 0x3ffd8000 - 0x3ffda000 D (764) memory_layout: Available memory region 0x3ffda000 - 0x3ffdc000 D (771) memory_layout: Available memory region 0x3ffdc000 - 0x3ffde000 D (777) memory_layout: Available memory region 0x3ffde000 - 0x3ffe0000 D (784) memory_layout: Available memory region 0x3ffe0440 - 0x3ffe4000 D (790) memory_layout: Available memory region 0x3ffe4000 - 0x3ffe8000 D (797) memory_layout: Available memory region 0x3ffe8000 - 0x3fff0000 D (804) memory_layout: Available memory region 0x3fff0000 - 0x3fff8000 D (810) memory_layout: Available memory region 0x3fff8000 - 0x3fffc000 D (817) memory_layout: Available memory region 0x3fffc000 - 0x40000000 D (823) memory_layout: Available memory region 0x40078000 - 0x40080000 D (830) memory_layout: Available memory region 0x4009cfe4 - 0x4009e000 D (837) memory_layout: Available memory region 0x4009e000 - 0x400a0000 I (843) heap_init: Initializing. RAM available for dynamic allocation: D (850) heap_init: New heap initialised at 0x3ffaff10 I (856) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM D (862) heap_init: New heap initialised at 0x3ffb6388 I (867) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM D (873) heap_init: New heap initialised at 0x3ffb9a20 I (878) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM I (884) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM D (890) heap_init: New heap initialised at 0x3ffcac28 I (895) heap_init: At 3FFCAC28 len 000153D8 (84 KiB): DRAM I (901) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM D (908) heap_init: New heap initialised at 0x40078000 I (913) heap_init: At 40078000 len 00008000 (32 KiB): IRAM D (919) heap_init: New heap initialised at 0x4009cfe4 I (924) heap_init: At 4009CFE4 len 0000301C (12 KiB): IRAM I (930) cpu_start: Pro cpu start user code D (942) clk: RTC_SLOW_CLK calibration value: 3107968 D (952) intr_alloc: Connected src 46 to int 2 (cpu 0) D (953) intr_alloc: Connected src 57 to int 3 (cpu 0) D (954) intr_alloc: Connected src 24 to int 9 (cpu 0) I (958) cpu_start: Starting scheduler on PRO CPU. D (963) heap_init: New heap initialised at 0x3ffe0440 D (967) intr_alloc: Connected src 16 to int 12 (cpu 0) D (973) partition: Loading the partition table D (980) nvs: nvs_flash_init_custom partition=nvs start=18 count=14 D (1011) event: running task for loop 0x3ffbc44c D (1011) event: created task for loop 0x3ffbc44c D (1011) event: created event loop 0x3ffbc44c D (1015) nvs: nvs_open_from_partition misc 1 D (1018) nvs: nvs_get_str_or_blob log I (1023) wifi:wifi driver task: 3ffcd3e0, prio:23, stack:6144, core=0 I (1028) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE D (1037) efuse: coding scheme 0 D (1040) efuse: In EFUSE_BLK0DATA2_REG is used 8 bits starting with 8 bit D (1047) efuse: coding scheme 0 D (1050) efuse: In EFUSE_BLK0DATA2_REG is used 8 bits starting with 0 bit D (1058) efuse: coding scheme 0 D (1061) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 24 bit D (1068) efuse: coding scheme 0 D (1071) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 16 bit D (1078) efuse: coding scheme 0 D (1081) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 8 bit D (1088) efuse: coding scheme 0 D (1091) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 0 bit D (1098) efuse: coding scheme 0 D (1101) efuse: In EFUSE_BLK0DATA2_REG is used 8 bits starting with 16 bit I (1109) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE D (1118) efuse: coding scheme 0 D (1121) efuse: In EFUSE_BLK0DATA2_REG is used 8 bits starting with 8 bit D (1128) efuse: coding scheme 0 D (1131) efuse: In EFUSE_BLK0DATA2_REG is used 8 bits starting with 0 bit D (1139) efuse: coding scheme 0 D (1142) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 24 bit D (1149) efuse: coding scheme 0 D (1152) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 16 bit D (1159) efuse: coding scheme 0 D (1162) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 8 bit D (1169) efuse: coding scheme 0 D (1172) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 0 bit D (1179) efuse: coding scheme 0 D (1183) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 16 bit D (1190) nvs: nvs_open_from_partition nvs.net80211 1 D (1195) nvs: nvs_get opmode 1 D (1198) nvs: nvs_get_str_or_blob sta.ssid D (1202) nvs: nvs_get_str_or_blob sta.mac D (1206) nvs: nvs_get sta.authmode 1 D (1210) nvs: nvs_get_str_or_blob sta.pswd D (1214) nvs: nvs_get_str_or_blob sta.pmk D (1218) nvs: nvs_get sta.chan 1 D (1221) nvs: nvs_get auto.conn 1 D (1225) nvs: nvs_get bssid.set 1 D (1228) nvs: nvs_get_str_or_blob sta.bssid D (1232) nvs: nvs_get sta.lis_intval 2 D (1236) nvs: nvs_get sta.phym 1 D (1239) nvs: nvs_get sta.phybw 1 D (1243) nvs: nvs_get_str_or_blob sta.apsw D (1247) nvs: nvs_get_str_or_blob sta.apinfo D (1252) nvs: nvs_get sta.scan_method 1 D (1255) nvs: nvs_get sta.sort_method 1 D (1259) nvs: nvs_get sta.minrssi 1 D (1262) nvs: nvs_get sta.minauth 1 D (1266) nvs: nvs_get sta.pmf_e 1 D (1269) nvs: nvs_get sta.pmf_r 1 D (1273) nvs: nvs_get_str_or_blob ap.ssid D (1277) nvs: nvs_get_str_or_blob ap.mac D (1281) nvs: nvs_get_str_or_blob ap.passwd D (1285) nvs: nvs_get_str_or_blob ap.pmk D (1289) nvs: nvs_get ap.chan 1 D (1292) nvs: nvs_get ap.authmode 1 D (1296) nvs: nvs_get ap.hidden 1 D (1299) nvs: nvs_get ap.max.conn 1 D (1303) nvs: nvs_get bcn.interval 2 D (1306) nvs: nvs_get ap.phym 1 D (1309) nvs: nvs_get ap.phybw 1 D (1313) nvs: nvs_get ap.sndchan 1 D (1316) nvs: nvs_get ap.pmf_e 1 D (1319) nvs: nvs_get ap.pmf_r 1 D (1323) nvs: nvs_get lorate 1 D (1326) nvs: nvs_set ap.sndchan 1 1 D (1329) nvs: nvs_set_blob sta.mac 6 D (1333) nvs: nvs_set_blob ap.mac 6 I (1337) wifi:wifi firmware version: ee95d06 I (1340) wifi:config NVS flash: enabled I (1344) wifi:config nano formating: enabled I (1348) wifi:Init dynamic tx buffer num: 32 I (1352) wifi:Init data frame dynamic rx buffer num: 32 I (1357) wifi:Init management frame dynamic rx buffer num: 32 I (1362) wifi:Init management short buffer num: 32 I (1367) wifi:Init static rx buffer size: 1600 I (1371) wifi:Init static rx buffer num: 10 I (1375) wifi:Init dynamic rx buffer num: 32 D (1380) RTC_MODULE: Wi-Fi takes adc2 lock. D (1383) phy_init: loading PHY init data from partition at offset 0xf000 D (1390) phy_init: PHY data partition validated D (1394) nvs: nvs_open_from_partition phy 0 D (1398) nvs: nvs_get cal_version 4 D (1402) nvs: nvs_get_str_or_blob cal_mac D (1406) efuse: coding scheme 0 D (1409) efuse: In EFUSE_BLK0DATA2_REG is used 8 bits starting with 8 bit D (1416) efuse: coding scheme 0 D (1419) efuse: In EFUSE_BLK0DATA2_REG is used 8 bits starting with 0 bit D (1426) efuse: coding scheme 0 D (1429) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 24 bit D (1437) efuse: coding scheme 0 D (1440) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 16 bit D (1447) efuse: coding scheme 0 D (1450) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 8 bit D (1457) efuse: coding scheme 0 D (1460) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 0 bit D (1467) efuse: coding scheme 0 D (1470) efuse: In EFUSE_BLK0DATA2_REG is used 8 bits starting with 16 bit D (1477) nvs: nvs_get_str_or_blob cal_data D (1484) nvs: nvs_close 3 D (1484) efuse: coding scheme 0 D (1487) efuse: In EFUSE_BLK0DATA2_REG is used 8 bits starting with 8 bit D (1494) efuse: coding scheme 0 D (1498) efuse: In EFUSE_BLK0DATA2_REG is used 8 bits starting with 0 bit D (1505) efuse: coding scheme 0 D (1508) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 24 bit D (1515) efuse: coding scheme 0 D (1518) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 16 bit D (1525) efuse: coding scheme 0 D (1528) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 8 bit D (1535) efuse: coding scheme 0 D (1538) efuse: In EFUSE_BLK0DATA1_REG is used 8 bits starting with 0 bit D (1546) efuse: coding scheme 0 D (1549) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 16 bit I (1658) phy: phy_version: 4180, cb3948e, Sep 12 2019, 16:39:13, 0, 0 I (1661) wifi:mode : softAP (4c:11:ae:f9:e2:51) I (1662) wifi:Total power save buffer number: 16 I (1663) wifi:Init max length of beacon: 752/752 I (1668) wifi:Init max length of beacon: 752/752 D (1672) system_event: SYSTEM_EVENT_AP_START D (1676) event: running post WIFI_EVENT:12 with handler 0x401093d0 on loop 0x3ffbc44c D (1686) tcpip_adapter: dhcp server start:(ip: 192.168.4.1, mask: 255.255.255.0, gw: 192.168.4.1) D (1693) event: running post SYSTEM_EVENT:14 with handler 0x40182ff0 on loop 0x3ffbc44c D (1702) nvs: nvs_open_from_partition UART 0 D (1705) nvs: nvs_get rate 4 D (1708) nvs: nvs_get databits 1 D (1711) nvs: nvs_get ready AT

OK AT+GMR AT version:2.2.0.0-dev(b01b0ed - ESP32 - Sep 7 2020 09:52:58) SDK version:v4.0.1-193-ge7ac221b4 compile time(fb54a93):Sep 14 2020 10:33:33 Bin version:2.1.0(WROOM-32)

OK AT+CIPETHMAC?

ERROR`

----------------------------- Delete below -----------------------------

If your issue is a general question, starts similar to "How do I..", or is related to 3rd party development kits/libs, please discuss this on our community forum at esp32.com instead.

INSTRUCTIONS

Before submitting a new issue, please follow the checklist and try to find the answer.

If the issue cannot be solved after the steps before, please follow these instructions so we can get the needed information to help you in a quick and effective fashion.

  1. Fill in all the fields under Environment marked with [ ] by picking the correct option for you in each case and deleting the others.
  2. Describe your problem.
  3. Include debug logs on the monitor or the coredump.
  4. Provide more items under Other items if possible can help us better locate your problem.
  5. Use markup (buttons above) and the Preview tab to check what the issue will look like.
  6. Delete these instructions from the above to the below marker lines before submitting this issue.

----------------------------- Delete above -----------------------------

Environment

Problem Description

//Detailed problem description goes here.

Expected Behavior

Actual Behavior

Steps to repropduce

  1. step1
  2. ...

// It helps if you attach a picture of your setup/wiring here.

Code to reproduce this issue

// the code should be wrapped in the ```cpp tag so that it will be displayed better.
#include "esp_log.h"

void app_main()
{

}

// If your code is longer than 30 lines, GIST is preferred.

Debug Logs

Debug log goes here, should contain the backtrace, as well as the reset source if it is a crash.
Please copy the plain text here for us to search the error log. Or attach the complete logs but leave the main part here if the log is *too* long.

Other items if possible

pixsysedp commented 4 years ago

This is my sdkconfig file. sdkconfig.zip

xcguang commented 3 years ago

@ustccw Please help to confirm this

katodo commented 3 years ago

is there any news? In boot sequence could I see any messages about LAN8720?

iw2lsi commented 3 years ago

Hello katodo,

for me is working...

AT+CIPETHMAC? +CIPETHMAC:"1c:5e:09:xx:xx:xx"

during the boot phase, I see:

I (2398) tcpip_adapter: sta ip: 192.168.1.159, mask: 255.255.255.0, gw: 192.168.1.254

I'm working on OLIMEX ESP32-GATEWAY w/ idf4

Giampaolo

katodo commented 3 years ago

can you share your SDK configuration with me?

iw2lsi commented 3 years ago

Hi,

I've just emailed it to you...

katodo commented 3 years ago

Tnx iw2lsi !

In the afternoon I started with a fresh build:

In menuconfig menu I changed:

At exit from menuconfig:

Buid hang with this output:

/home/ut1/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: ../components/at/lib/libesp32_at_core_silence.a(at_ethCmd.c.obj):(.literal.esp_at_eth_cmd_regist+0xc): undefined reference toesp_at_get_eth_default_config' /home/ut1/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: ../components/at/lib/libesp32_at_core_silence.a(at_ethCmd.c.obj): in function esp_at_eth_cmd_regist': (.text.esp_at_eth_cmd_regist+0x5): undefined reference toesp_at_get_eth_default_config' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ninja failed with exit code 1 idf.py build ret: 2 idf.py build failed `

complete output is here

katodo commented 3 years ago

I removed esp-at and xtensa-esp32-elf and started with another fresh build with attached config. sdkconfig.zip

If I enable Component config -> AT -> AT ethernet support command "./build.py build" fail with this error:

'(.text.esp_at_eth_cmd_regist+0x5): undefined reference to `esp_at_get_eth_default_config' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ninja failed with exit code 1 idf.py build ret: 2 idf.py build failed'

but with normal make build is ok: CC build/xtensa/eri.o CC build/xtensa/debug_helpers.o CC build/xtensa/trax.o AS build/xtensa/debug_helpers_asm.o AR build/xtensa/libxtensa.a Generating esp32.project.ld LD build/esp-at.elf esptool.py v2.8 CC phy_init_data.o BIN phy_init_data.bin To flash all build output, run 'make flash' or: python /home/ut1/esp/esp-at/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x10000 /home/ut1/esp/esp-at/build/ota_data_initial.bin 0x1000 /home/ut1/esp/esp-at/build/bootloader/bootloader.bin 0x20000 /home/ut1/esp/esp-at/build/at_customize.bin 0x21000 /home/ut1/esp/esp-at/build/customized_partitions/ble_data.bin 0x24000 /home/ut1/esp/esp-at/build/customized_partitions/server_cert.bin 0x26000 /home/ut1/esp/esp-at/build/customized_partitions/server_key.bin 0x28000 /home/ut1/esp/esp-at/build/customized_partitions/server_ca.bin 0x2a000 /home/ut1/esp/esp-at/build/customized_partitions/client_cert.bin 0x2c000 /home/ut1/esp/esp-at/build/customized_partitions/client_key.bin 0x2e000 /home/ut1/esp/esp-at/build/customized_partitions/client_ca.bin 0x30000 /home/ut1/esp/esp-at/build/customized_partitions/factory_param.bin 0x37000 /home/ut1/esp/esp-at/build/customized_partitions/mqtt_cert.bin 0x39000 /home/ut1/esp/esp-at/build/customized_partitions/mqtt_key.bin 0x3B000 /home/ut1/esp/esp-at/build/customized_partitions/mqtt_ca.bin 0xf000 /home/ut1/esp/esp-at/build/phy_init_data.bin 0x100000 /home/ut1/esp/esp-at/build/esp-at.bin 0x8000 /home/ut1/esp/esp-at/build/partitions_at.bin

iw2lsi commented 3 years ago

Hi,

are you getting warnings regarding the esp-idf banch ?

     Giampaolo

Il giorno mar 15 dic 2020 alle ore 16:51 Katodo notifications@github.com ha scritto:

I removed esp-at and xtensa-esp32-elf and started with another fresh build with attached config. sdkconfig.zip https://github.com/espressif/esp-at/files/5696943/sdkconfig.zip

If I enable Component config -> AT -> AT ethernet support command "./build.py build" fail with this error:

'(.text.esp_at_eth_cmd_regist+0x5): undefined reference to `esp_at_get_eth_default_config' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ninja failed with exit code 1 idf.py build ret: 2 idf.py build failed'

but with normal make build is ok: CC build/xtensa/eri.o CC build/xtensa/debug_helpers.o CC build/xtensa/trax.o AS build/xtensa/debug_helpers_asm.o AR build/xtensa/libxtensa.a Generating esp32.project.ld LD build/esp-at.elf esptool.py v2.8 CC phy_init_data.o BIN phy_init_data.bin To flash all build output, run 'make flash' or: python /home/ut1/esp/esp-at/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x10000 /home/ut1/esp/esp-at/build/ota_data_initial.bin 0x1000 /home/ut1/esp/esp-at/build/bootloader/bootloader.bin 0x20000 /home/ut1/esp/esp-at/build/at_customize.bin 0x21000 /home/ut1/esp/esp-at/build/customized_partitions/ble_data.bin 0x24000 /home/ut1/esp/esp-at/build/customized_partitions/server_cert.bin 0x26000 /home/ut1/esp/esp-at/build/customized_partitions/server_key.bin 0x28000 /home/ut1/esp/esp-at/build/customized_partitions/server_ca.bin 0x2a000 /home/ut1/esp/esp-at/build/customized_partitions/client_cert.bin 0x2c000 /home/ut1/esp/esp-at/build/customized_partitions/client_key.bin 0x2e000 /home/ut1/esp/esp-at/build/customized_partitions/client_ca.bin 0x30000 /home/ut1/esp/esp-at/build/customized_partitions/factory_param.bin 0x37000 /home/ut1/esp/esp-at/build/customized_partitions/mqtt_cert.bin 0x39000 /home/ut1/esp/esp-at/build/customized_partitions/mqtt_key.bin 0x3B000 /home/ut1/esp/esp-at/build/customized_partitions/mqtt_ca.bin 0xf000 /home/ut1/esp/esp-at/build/phy_init_data.bin 0x100000 /home/ut1/esp/esp-at/build/esp-at.bin 0x8000 /home/ut1/esp/esp-at/build/partitions_at.bin

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/espressif/esp-at/issues/471#issuecomment-745380916, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAODQQGZVPFG5XSGSNDT5ELSU6AX7ANCNFSM4RLWATOA .

katodo commented 3 years ago

yes... '(

this is my log:

_Makefile:28: There is no module_config/module_wroom-32,Using module_config/module_esp32default Toolchain path: /home/ut1/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc WARNING: Toolchain version is not supported: esp-2020r3 Expected to see version: esp-2019r2 Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk. WARNING: Compiler version is not supported: 8.4.0 Expected to see version(s): 8.2.0

Compiler version is not supported: 8.4.0 -> this was my last attempt. Toolchain version is not supported: esp-2020r3 -> the toolchain is downloaded automatically with the build.

iw2lsi commented 3 years ago

ok... let esp-at download the correct esp-idf branch into the esp-at folder... and set the IDF_PATH variable accordingly.

This should fix the warning and hopefully you'll be able to compile...

 Giampaolo

Il giorno mar 15 dic 2020 alle ore 17:32 Katodo notifications@github.com ha scritto:

yes... '(

this is my log:

Makefile:28: There is no module_config/module_wroom-32,Using module_config/module_esp32_default Toolchain path: /home/ut1/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc WARNING: Toolchain version is not supported: esp-2020r3 Expected to see version: esp-2019r2 Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk. WARNING: Compiler version is not supported: 8.4.0 Expected to see version(s): 8.2.0

Compiler version is not supported: 8.4.0 -> this was my last attempt. Toolchain version is not supported: esp-2020r3 -> the toolchain is downloaded automatically with the build.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/espressif/esp-at/issues/471#issuecomment-745407431, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAODQQB3HXOFEGHBJ7XMAGLSU6FQPANCNFSM4RLWATOA .

katodo commented 3 years ago

I do it, but with normal "make" command I get this error with automatic downloaded esp-idf: WARNING: Toolchain version is not supported: esp-2020r1 Expected to see version: esp-2019r2

katodo commented 3 years ago

someone can try to build attached configuration? sdkconfig_20201216_1527.zip

I complete removed any esp/idf file in my system. I downloaded a fresh git with git clone --recursive https://github.com/espressif/esp-at.git. I changed second raw of components/customized_partitions/raw_data/factory_param/factory_param_data.csv to: PLATFORM_ESP32,WROOM-32,,0xfcfc,2,1,78,1,1,13,CN,115200,1,3,-1,-1,-1,-1

esp-idf is automatically downloaded with "./build.py menuconfig"... during menuconfig I generated attached sdkconfig file.

During build I retrieve this error:

[2/8] Performing build step for 'bootloader'
ninja: no work to do.
[3/6] Linking CXX executable esp-at.elf
FAILED: esp-at.elf 
: && /home/ut1/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++  -mlongcalls -Wno-frame-address  -nostdlib CMakeFiles/esp-at.elf.dir/project_elf_src.c.obj  -o esp-at.elf  esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/driver/libdriver.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/efuse/libefuse.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/app_update/libapp_update.a esp-idf/spi_flash/libspi_flash.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/esp_eth/libesp_eth.a esp-idf/lwip/liblwip.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/esp_event/libesp_event.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a esp-idf/esp32/libesp32.a esp-idf/xtensa/libxtensa.a esp-idf/esp_common/libesp_common.a esp-idf/esp_rom/libesp_rom.a esp-idf/soc/libsoc.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/freertos/libfreertos.a esp-idf/vfs/libvfs.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/app_trace/libapp_trace.a esp-idf/asio/libasio.a esp-idf/bt/libbt.a esp-idf/coap/libcoap.a esp-idf/console/libconsole.a esp-idf/nghttp/libnghttp.a esp-idf/esp-tls/libesp-tls.a esp-idf/esp_adc_cal/libesp_adc_cal.a esp-idf/esp_gdbstub/libesp_gdbstub.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/esp_https_ota/libesp_https_ota.a esp-idf/protobuf-c/libprotobuf-c.a esp-idf/protocomm/libprotocomm.a esp-idf/mdns/libmdns.a esp-idf/esp_local_ctrl/libesp_local_ctrl.a esp-idf/esp_websocket_client/libesp_websocket_client.a esp-idf/expat/libexpat.a esp-idf/wear_levelling/libwear_levelling.a esp-idf/sdmmc/libsdmmc.a esp-idf/fatfs/libfatfs.a esp-idf/freemodbus/libfreemodbus.a esp-idf/jsmn/libjsmn.a esp-idf/json/libjson.a esp-idf/libsodium/liblibsodium.a esp-idf/mqtt/libmqtt.a esp-idf/openssl/libopenssl.a esp-idf/spiffs/libspiffs.a esp-idf/ulp/libulp.a esp-idf/unity/libunity.a esp-idf/wifi_provisioning/libwifi_provisioning.a esp-idf/main/libmain.a esp-idf/spi_driver/libspi_driver.a -Wl,--cref -Wl,--Map=/home/ut1/esp/esp-at/build/esp-at.map -fno-rtti -fno-lto esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/driver/libdriver.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/efuse/libefuse.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/app_update/libapp_update.a esp-idf/spi_flash/libspi_flash.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/esp_eth/libesp_eth.a esp-idf/lwip/liblwip.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/esp_event/libesp_event.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a esp-idf/esp32/libesp32.a esp-idf/xtensa/libxtensa.a esp-idf/esp_common/libesp_common.a esp-idf/esp_rom/libesp_rom.a esp-idf/soc/libsoc.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/freertos/libfreertos.a esp-idf/vfs/libvfs.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/app_trace/libapp_trace.a esp-idf/asio/libasio.a esp-idf/bt/libbt.a esp-idf/coap/libcoap.a esp-idf/console/libconsole.a esp-idf/nghttp/libnghttp.a esp-idf/esp-tls/libesp-tls.a esp-idf/esp_adc_cal/libesp_adc_cal.a esp-idf/esp_gdbstub/libesp_gdbstub.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/esp_https_ota/libesp_https_ota.a esp-idf/protobuf-c/libprotobuf-c.a esp-idf/protocomm/libprotocomm.a esp-idf/mdns/libmdns.a esp-idf/esp_local_ctrl/libesp_local_ctrl.a esp-idf/esp_websocket_client/libesp_websocket_client.a esp-idf/expat/libexpat.a esp-idf/wear_levelling/libwear_levelling.a esp-idf/sdmmc/libsdmmc.a esp-idf/fatfs/libfatfs.a esp-idf/freemodbus/libfreemodbus.a esp-idf/jsmn/libjsmn.a esp-idf/json/libjson.a esp-idf/libsodium/liblibsodium.a esp-idf/mqtt/libmqtt.a esp-idf/openssl/libopenssl.a esp-idf/spiffs/libspiffs.a esp-idf/ulp/libulp.a esp-idf/unity/libunity.a esp-idf/wifi_provisioning/libwifi_provisioning.a esp-idf/protocomm/libprotocomm.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/protobuf-c/libprotobuf-c.a ../components/at/lib/libesp32_at_core_silence.a ../components/at/lib/libesp32_at_core_silence.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/bt/libbt.a -L/home/ut1/esp/esp-at/esp-idf/components/bt/controller/lib -lbtdm_app esp-idf/mdns/libmdns.a esp-idf/console/libconsole.a esp-idf/json/libjson.a esp-idf/mqtt/libmqtt.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp-tls/libesp-tls.a esp-idf/nghttp/libnghttp.a esp-idf/spiffs/libspiffs.a esp-idf/openssl/libopenssl.a esp-idf/fatfs/libfatfs.a esp-idf/wear_levelling/libwear_levelling.a esp-idf/sdmmc/libsdmmc.a -L /home/ut1/esp/esp-at/components/esp-wolfssl/wolfssl/lib/esp32 -lwolfssl_nano esp-idf/cxx/libcxx.a esp-idf/newlib/libnewlib.a esp-idf/freertos/libfreertos.a esp-idf/heap/libheap.a esp-idf/log/liblog.a esp-idf/soc/libsoc.a esp-idf/esp_rom/libesp_rom.a esp-idf/esp_common/libesp_common.a esp-idf/xtensa/libxtensa.a esp-idf/esp32/libesp32.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/lwip/liblwip.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/spi_flash/libspi_flash.a esp-idf/efuse/libefuse.a esp-idf/app_update/libapp_update.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/nvs_flash/libnvs_flash.a ../esp-idf/components/esp_wifi/lib_esp32/libcoexist.a ../esp-idf/components/esp_wifi/lib_esp32/libcore.a ../esp-idf/components/esp_wifi/lib_esp32/libespnow.a ../esp-idf/components/esp_wifi/lib_esp32/libmesh.a ../esp-idf/components/esp_wifi/lib_esp32/libnet80211.a ../esp-idf/components/esp_wifi/lib_esp32/libphy.a ../esp-idf/components/esp_wifi/lib_esp32/libpp.a ../esp-idf/components/esp_wifi/lib_esp32/librtc.a ../esp-idf/components/esp_wifi/lib_esp32/libsmartconfig.a esp-idf/esp_event/libesp_event.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/driver/libdriver.a esp-idf/vfs/libvfs.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/esp_eth/libesp_eth.a esp-idf/app_trace/libapp_trace.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a esp-idf/cxx/libcxx.a esp-idf/newlib/libnewlib.a esp-idf/freertos/libfreertos.a esp-idf/heap/libheap.a esp-idf/log/liblog.a esp-idf/soc/libsoc.a esp-idf/esp_rom/libesp_rom.a esp-idf/esp_common/libesp_common.a esp-idf/xtensa/libxtensa.a esp-idf/esp32/libesp32.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/lwip/liblwip.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/spi_flash/libspi_flash.a esp-idf/efuse/libefuse.a esp-idf/app_update/libapp_update.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/nvs_flash/libnvs_flash.a ../esp-idf/components/esp_wifi/lib_esp32/libcoexist.a ../esp-idf/components/esp_wifi/lib_esp32/libcore.a ../esp-idf/components/esp_wifi/lib_esp32/libespnow.a ../esp-idf/components/esp_wifi/lib_esp32/libmesh.a ../esp-idf/components/esp_wifi/lib_esp32/libnet80211.a ../esp-idf/components/esp_wifi/lib_esp32/libphy.a ../esp-idf/components/esp_wifi/lib_esp32/libpp.a ../esp-idf/components/esp_wifi/lib_esp32/librtc.a ../esp-idf/components/esp_wifi/lib_esp32/libsmartconfig.a esp-idf/esp_event/libesp_event.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/driver/libdriver.a esp-idf/vfs/libvfs.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/esp_eth/libesp_eth.a esp-idf/app_trace/libapp_trace.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a -u __cxa_guard_dummy -lstdc++ esp-idf/pthread/libpthread.a -u __cxx_fatal_exception esp-idf/newlib/libnewlib.a -u newlib_include_locks_impl -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -Wl,--undefined=uxTopUsedPriority -L /home/ut1/esp/esp-at/esp-idf/components/esp_rom/esp32/ld -T esp32.rom.ld -T esp32.rom.libgcc.ld -T esp32.rom.syscalls.ld -T esp32.rom.newlib-data.ld -T esp32.rom.newlib-funcs.ld -T esp32.rom.newlib-nano.ld -Wl,--gc-sections ../esp-idf/components/xtensa/esp32/libhal.a -L /home/ut1/esp/esp-at/build/esp-idf/esp32 -T esp32_out.ld -u app_main -L /home/ut1/esp/esp-at/build/esp-idf/esp32/ld -T esp32.project.ld -L /home/ut1/esp/esp-at/esp-idf/components/esp32/ld -T esp32.peripherals.ld -u call_user_start_cpu0 -u ld_include_panic_highint_hdl -u esp_app_desc -u vfs_include_syscalls_impl -L /home/ut1/esp/esp-at/esp-idf/components/esp_wifi/lib_esp32 -lgcov -lc_nano -lm -lgcc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl && :
/home/ut1/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: ../components/at/lib/libesp32_at_core_silence.a(at_ethCmd.c.obj):(.literal.esp_at_eth_cmd_regist+0xc): undefined reference to `esp_at_get_eth_default_config'
/home/ut1/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: ../components/at/lib/libesp32_at_core_silence.a(at_ethCmd.c.obj): in function `esp_at_eth_cmd_regist':
(.text.esp_at_eth_cmd_regist+0x5): undefined reference to `esp_at_get_eth_default_config'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
idf.py build ret: 2
idf.py build failed