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

ESP32-AT v2.4.0.0 menuconfig error #692

Closed
zhoukeroro opened this issue Jan 9, 2023 · 11 comments
Closed

ESP32-AT v2.4.0.0 menuconfig error #692

zhoukeroro opened this issue Jan 9, 2023 · 11 comments

Comments

@zhoukeroro
Copy link

zhoukeroro commented Jan 9, 2023

Hi everyone. I have a problem when compiling the ESP-AT v2.4.0.0 project.

I post the detail on esp32-at forum:
https://www.esp32.com/viewtopic.php?f=34&t=31453

I found there are so many developers meet the related issue (CMake Error), but there is no clear answer to solve it.

Could anybody help me to solve it?

Best regards.

@zhoukeroro
Copy link
Author

the log says 'CMake Error at components/customized_partitions/CMakeLists.txt:40 (list):
list index: 1 out of range (-1, 0)'
, but I could not find where the [list index] come from.

silence:0 , ld core:D:/esp/gitee/esp-at2/components/at/lib/libesp32_at_core.a
Parsing CSV input...
Verifying table...
CMake Error at components/customized_partitions/CMakeLists.txt:40 (list):
list index: 1 out of range (-1, 0)

@zhoukeroro
Copy link
Author

@xcguang, Sorry to disturb you. Could you HELP me?

@xcguang
Copy link
Collaborator

xcguang commented Jan 10, 2023

@ustccw Please help with this.

@ustccw
Copy link
Collaborator

ustccw commented Jan 11, 2023

@zhoukeroro could you please provide all detailed logs after you cloned esp-at project.

@zhoukeroro
Copy link
Author

@zhoukeroro could you please provide all detailed logs after you cloned esp-at project.

hi, @ustccw , I post the all detail logs here:
esp-at compile log.txt

PS1: 'ESP-IDF 4.3 CMD' run in administrators mode.

@ustccw
Copy link
Collaborator

ustccw commented Jan 12, 2023

@zhoukeroro

  1. 编译 hello world 工程时候,能用 idf.py menuconfig 配置吗。如果不能,可能要先解决这个。
  2. 如果编译 hello world 工程可以使用 idf.py menuconfig 配置,但编译 esp-at 工程不能使用 python build.py menuconfig。那可以试试下面命令:
cd esp-idf
install.bat
export.bat
cd ..
python build.py menuconfig

@zhoukeroro
Copy link
Author

@zhoukeroro

  1. 编译 hello world 工程时候,能用 idf.py menuconfig 配置吗。如果不能,可能要先解决这个。
  2. 如果编译 hello world 工程可以使用 idf.py menuconfig 配置,但编译 esp-at 工程不能使用 python build.py menuconfig。那可以试试下面命令:
cd esp-idf
install.bat
export.bat
cd ..
python build.py menuconfig

@ustccw hello word 可以正常配置和编译,按上面run install.bat和export.bat的方法,esp at编译还是有问题。log见附件。

hello wrold compile log.txt
esp-at compile log(run install&export bat).txt

@zhoukeroro
Copy link
Author

@ustccw
1.按我上述相同的步骤,在你的环境下可以正常编译吗?
2.基于出错log的提示(CMake Error),能看出是大方向上是哪方面的问题吗?

@ustccw
Copy link
Collaborator

ustccw commented Jan 13, 2023

  1. 我这边是可以正常编译的。windows10 64bit。
  2. 看起来是解析分区表出错了。
    出错在这个附近:
    https://github.com/espressif/esp-at/blob/release/v2.4.0.0/components/customized_partitions/CMakeLists.txt#L37
    可以在 cmake 里加一点打印,看看哪个参数错误。比如:
    string(STRIP ${partition_args} args_value)
    string(REPLACE " " ";" args_lists ${args_value})
    list(GET args_lists 0 offset)
    list(GET args_lists 1 file_path)
    STRING(REGEX REPLACE ".*[/\\](.*)\.bin" "\\1" file_name ${file_path})

修改为:

    message("x1:${partition_args}\r\n x2:${customized_partition_args}\r\n")
    string(STRIP ${partition_args} args_value)
    message("x3:${args_value}\r\n")
    string(REPLACE " " ";" args_lists ${args_value})
    message("x4:${args_lists}\r\n")
    list(GET args_lists 0 offset)
    message("x5:${offset}\r\n")
    list(GET args_lists 1 file_path)
    message("x6:${file_path}\r\n")
    STRING(REGEX REPLACE ".*[/\\](.*)\.bin" "\\1" file_name ${file_path})
    message("x7:${file_name}\r\n")

正常打印应该是这样的:

Parsing CSV input...
Verifying table...
x1:0x21000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin 12K
 x2:0x21000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin 12K;0x24000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin 8K;0x26000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin 8K;0x28000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin 8K;0x2a000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin 8K;0x2c000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin 8K;0x2e000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin 8K;0x37000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin 8K;0x39000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin 8K;0x3B000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin 8K;0x30000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin 4K

x3:0x21000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin 12K

x4:0x21000;/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin;12K

x5:0x21000

x6:/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin

x7:ble_data

x1:0x24000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin 8K
 x2:0x21000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin 12K;0x24000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin 8K;0x26000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin 8K;0x28000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin 8K;0x2a000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin 8K;0x2c000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin 8K;0x2e000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin 8K;0x37000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin 8K;0x39000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin 8K;0x3B000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin 8K;0x30000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin 4K

x3:0x24000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin 8K

x4:0x24000;/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin;8K

x5:0x24000

x6:/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin

x7:server_cert

x1:0x26000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin 8K
 x2:0x21000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin 12K;0x24000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin 8K;0x26000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin 8K;0x28000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin 8K;0x2a000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin 8K;0x2c000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin 8K;0x2e000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin 8K;0x37000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin 8K;0x39000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin 8K;0x3B000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin 8K;0x30000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin 4K

x3:0x26000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin 8K

x4:0x26000;/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin;8K

x5:0x26000

x6:/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin

x7:server_key

x1:0x28000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin 8K
 x2:0x21000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin 12K;0x24000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin 8K;0x26000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin 8K;0x28000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin 8K;0x2a000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin 8K;0x2c000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin 8K;0x2e000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin 8K;0x37000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin 8K;0x39000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin 8K;0x3B000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin 8K;0x30000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin 4K

x3:0x28000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin 8K

x4:0x28000;/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin;8K

x5:0x28000

x6:/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin

x7:server_ca

x1:0x2a000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin 8K
 x2:0x21000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin 12K;0x24000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin 8K;0x26000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin 8K;0x28000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin 8K;0x2a000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin 8K;0x2c000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin 8K;0x2e000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin 8K;0x37000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin 8K;0x39000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin 8K;0x3B000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin 8K;0x30000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin 4K

x3:0x2a000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin 8K

x4:0x2a000;/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin;8K

x5:0x2a000

x6:/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin

x7:client_cert

x1:0x2c000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin 8K
 x2:0x21000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin 12K;0x24000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin 8K;0x26000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin 8K;0x28000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin 8K;0x2a000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin 8K;0x2c000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin 8K;0x2e000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin 8K;0x37000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin 8K;0x39000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin 8K;0x3B000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin 8K;0x30000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin 4K

x3:0x2c000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin 8K

x4:0x2c000;/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin;8K

x5:0x2c000

x6:/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin

x7:client_key

x1:0x2e000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin 8K
 x2:0x21000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin 12K;0x24000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin 8K;0x26000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin 8K;0x28000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin 8K;0x2a000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin 8K;0x2c000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin 8K;0x2e000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin 8K;0x37000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin 8K;0x39000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin 8K;0x3B000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin 8K;0x30000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin 4K

x3:0x2e000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin 8K

x4:0x2e000;/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin;8K

x5:0x2e000

x6:/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin

x7:client_ca

x1:0x37000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin 8K
 x2:0x21000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin 12K;0x24000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin 8K;0x26000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin 8K;0x28000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin 8K;0x2a000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin 8K;0x2c000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin 8K;0x2e000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin 8K;0x37000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin 8K;0x39000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin 8K;0x3B000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin 8K;0x30000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin 4K

x3:0x37000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin 8K

x4:0x37000;/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin;8K

x5:0x37000

x6:/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin

x7:mqtt_cert

x1:0x39000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin 8K
 x2:0x21000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin 12K;0x24000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin 8K;0x26000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin 8K;0x28000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin 8K;0x2a000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin 8K;0x2c000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin 8K;0x2e000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin 8K;0x37000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin 8K;0x39000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin 8K;0x3B000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin 8K;0x30000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin 4K

x3:0x39000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin 8K

x4:0x39000;/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin;8K

x5:0x39000

x6:/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin

x7:mqtt_key

x1:0x3B000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin 8K
 x2:0x21000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin 12K;0x24000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin 8K;0x26000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin 8K;0x28000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin 8K;0x2a000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin 8K;0x2c000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin 8K;0x2e000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin 8K;0x37000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin 8K;0x39000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin 8K;0x3B000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin 8K;0x30000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin 4K

x3:0x3B000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin 8K

x4:0x3B000;/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin;8K

x5:0x3B000

x6:/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin

x7:mqtt_ca

x1:0x30000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin 4K
 x2:0x21000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/ble_data.bin 12K;0x24000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_cert.bin 8K;0x26000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_key.bin 8K;0x28000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/server_ca.bin 8K;0x2a000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_cert.bin 8K;0x2c000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_key.bin 8K;0x2e000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/client_ca.bin 8K;0x37000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_cert.bin 8K;0x39000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_key.bin 8K;0x3B000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/mqtt_ca.bin 8K;0x30000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin 4K

x3:0x30000 /home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin 4K

x4:0x30000;/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin;4K

x5:0x30000

x6:/home/chenwu/esp/at/esp32c3-at/build/customized_partitions/factory_param.bin

x7:factory_param

@zhoukeroro
Copy link
Author

@ustccw ,在cmake 里加上打印后的log见附件,看起来是路径解析出错了?
esp-at compile log(add cmake log).txt

@zhoukeroro
Copy link
Author

@ustccw ,问题解决了,路径解析出错跟我的PC安装了加密软件有关。关闭加密软件后就正常了。
万分感谢。

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