ESP32C3 vscode esp-idf 项目路径含有中文无法编译

报如下错误:

-- Found Git: D:/.espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1") 
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
-- Could not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32c3

项目路径里不能包含中文。芯片是国产的,但是软件不全是

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ESP32-C3 是一款基于 RISC-V 架构的微控制器,它没有片内闪存,需要通过外部 Flash 存储程序。如果您想使用 ESP32-C3 启动外部 Flash 存储的程序,请按照以下步骤进行配置: 1. 首先,您需要为 ESP32-C3 安装 ESP-IDF,您可以参考 ESP-IDF 的官方文档进行安装:https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32c3/get-started/index.html 2. 在 ESP-IDF 中,有一个名为 "Partition Table" 的工具,可以帮助您配置 ESP32-C3 的启动分区,其中包括 Flash 存储器的分区信息。您可以使用 "Partition Table" 工具来配置 ESP32-C3 的启动分区,并指定用于存储程序的外部 Flash 存储器。 3. 在 "Partition Table" 工具中,您需要添加一个分区,用于存储程序。您可以指定该分区的大小、起始地址、名称等信息。注意,您需要将此分区的类型设置为 "APP",以便 ESP32-C3 能够正确识别并加载程序。 4. 在 ESP-IDF 的配置文件中,您需要指定用于存储程序的外部 Flash 存储器的型号和接口。您可以使用 "make menuconfig" 命令打开 ESP-IDF 的配置界面,并在 "Serial Flasher Config" 和 "Flash SPI Common Config" 中进行配置。 5. 最后,您需要编写程序,并将其编译、烧录到外部 Flash 存储器中。您可以使用 ESP-IDF 提供的工具链和 API 来编写程序,并使用 "make flash" 命令将程序烧录到外部 Flash 存储器中。 以上就是在 ESP32-C3 上配置片内闪存启动的步骤。需要注意的是,ESP32-C3 没有片内闪存,只能通过外部 Flash 存储器来存储程序。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值