在 ESP32D02DQ66 上部署 nanoFramework 和 运行 问题

Issue Getting nanoFramework to Deploy and Run on ESP32D02DQ66

将“Hello World”部署到 ESP32_WROOM_32 设备时遇到问题。我能够使用 nonoff 成功地刷新设备。我有一个 ESP32D0WDQ6 并向其刷入 ESP32_WROOM_32 v1.0.7.2。我正在使用 .NET nanoFramework 扩展 v2022.2.0.8 和 VS 版本 17.1.3。我也在使用 nanoFramework.CoreLibrary v1.10.5。以下来自设备功能:

System Information
HAL build info: nanoFramework running @ ESP32
  Target:   ESP32_WROOM_32
  Platform: ESP32

Firmware build Info:
  Date:        Aug 25 2021
  Type:        MinSizeRel build with IDF v3.3.5
  CLR Version: 1.7.0.618
  Compiler:    GNU ARM GCC v5.2.0

OEM Product codes (vendor, model, SKU): 0, 0, 0

Serial Numbers (module, system):
  00000000000000000000000000000000
  0000000000000000

Target capabilities:
  Has nanoBooter: NO
  IFU capable: NO
  Has proprietary bootloader: YES

应用程序域:

程序集:

本地程序集:

 mscorlib v100.5.0.12, checksum 0x132BDB6F

  nanoFramework.Runtime.Native v100.0.8.0, checksum 0x2307A8F3

  nanoFramework.Hardware.Esp32 v100.0.7.2, checksum 0x1B75B894

  nanoFramework.Hardware.Esp32.Rmt v100.0.3.0, checksum 0x9A53BB44

  nanoFramework.Devices.OneWire v100.0.3.4, checksum 0xA5C172BD

  nanoFramework.Networking.Sntp v100.0.4.4, checksum 0xE2D9BDED

  nanoFramework.ResourceManager v100.0.0.1, checksum 0xDCD7DF4D

  nanoFramework.System.Collections v100.0.0.1, checksum 0x5A31313D

  nanoFramework.System.Text v100.0.0.1, checksum 0x8E6EB73D

  nanoFramework.Runtime.Events v100.0.8.0, checksum 0x0EAB00C9

  EventSink v1.0.0.0, checksum 0xF32F4C3E

  System.IO.FileSystem v1.0.0.0, checksum 0x3112D24C

  System.Math v100.0.5.2, checksum 0xC9E0AB13

  System.Net v100.1.3.4, checksum 0xC74796C2

  Windows.Devices.Adc v100.1.3.3, checksum 0xCA03579A

  System.Device.Dac v100.0.0.6, checksum 0x02B3E860

  System.Device.Gpio v100.1.0.4, checksum 0xB6D0ACC1

  Windows.Devices.Gpio v100.1.2.2, checksum 0xC41539BE

  Windows.Devices.I2c v100.2.0.2, checksum 0x79EDBF71

  System.Device.I2c v100.0.0.1, checksum 0xFA806D33

  Windows.Devices.Pwm v100.1.3.3, checksum 0xBA2E2251

  Windows.Devices.SerialCommunication v100.1.1.2, checksum 0x34BAF06E

  System.IO.Ports v100.1.1.3, checksum 0x61B8380C

  Windows.Devices.Spi v100.1.4.2, checksum 0x360239F1

  System.Device.Spi v100.1.0.0, checksum 0x48031DC5

  Windows.Devices.Wifi v100.0.6.2, checksum 0xA94A849E

  Windows.Storage v100.0.2.0, checksum 0x954A4192



++++++++++++++++++++++++++++++++
++        Memory Map          ++
++++++++++++++++++++++++++++++++
  Type     Start       Size
++++++++++++++++++++++++++++++++
  RAM   0x3ffe436c  0x00016800
  FLASH 0x00000000  0x00400000



+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++                   Flash Sector Map                        ++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  Region     Start      Blocks   Bytes/Block    Usage
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
      0    0x00010000       1      0x180000     nanoCLR
      1    0x00190000       1      0x230000     Deployment
      2    0x003C0000       1      0x040000     Configuration


+++++++++++++++++++++++++++++++++++++++++++++++++++
++              Storage Usage Map                ++
+++++++++++++++++++++++++++++++++++++++++++++++++++
  Start        Size (kB)           Usage
+++++++++++++++++++++++++++++++++++++++++++++++++++
  0x003C0000    0x040000 (256kB)    Configuration
  0x00010000    0x180000 (1536kB)   nanoCLR
  0x00190000    0x230000 (2240kB)   Deployment

部署图 空

部署“Hello World”模板时,调试器似乎已在设备上启动并且程序集已正常上传。然后当 VS 启动调试器提供程序时,我收到以下错误:

08:31:24.428 [Starting deployment transaction from v2022.2.0+f1998f9dd6]

08:31:24.432 [Starting debug engine on nanoDevice]

08:31:24.442 [Connecting to debugger engine...OK]

08:31:27.208 [Assemblies to deploy:]

08:31:27.208 [Assembly: NFApp4 v1.0.0.0 (336 bytes)]

08:31:27.223 [Assembly: mscorlib v1.10.5.4 (31668 bytes)]

08:31:27.224 [Deploying 2 assemblies to device]

08:31:27.913 [Incrementally deploying assemblies to the device]

08:31:27.932 [Erasing block @ 0x00190000...]

08:31:28.330 [Deploying 0/32004 bytes.]

08:31:28.355 [Deploying 1012/32004 bytes.]

08:31:28.380 [Deploying 2024/32004 bytes.]

08:31:28.405 [Deploying 3036/32004 bytes.]

08:31:28.439 [Deploying 4048/32004 bytes.]

08:31:28.455 [Deploying 5060/32004 bytes.]

08:31:28.481 [Deploying 6072/32004 bytes.]

08:31:28.505 [Deploying 7084/32004 bytes.]

08:31:28.540 [Deploying 8096/32004 bytes.]

08:31:28.558 [Deploying 9108/32004 bytes.]

08:31:28.584 [Deploying 10120/32004 bytes.]

08:31:28.613 [Deploying 11132/32004 bytes.]

08:31:28.644 [Deploying 12144/32004 bytes.]

08:31:28.681 [Deploying 13156/32004 bytes.]

08:31:28.686 [Deploying 14168/32004 bytes.]

08:31:28.713 [Deploying 15180/32004 bytes.]

08:31:28.736 [Deploying 16192/32004 bytes.]

08:31:28.761 [Deploying 17204/32004 bytes.]

08:31:28.788 [Deploying 18216/32004 bytes.]

08:31:28.813 [Deploying 19228/32004 bytes.]

08:31:28.836 [Deploying 20240/32004 bytes.]

08:31:28.866 [Deploying 21252/32004 bytes.]

08:31:28.887 [Deploying 22264/32004 bytes.]

08:31:28.913 [Deploying 23276/32004 bytes.]

08:31:28.946 [Deploying 24288/32004 bytes.]

08:31:28.965 [Deploying 25300/32004 bytes.]

08:31:28.994 [Deploying 26312/32004 bytes.]

08:31:29.021 [Deploying 27324/32004 bytes.]

08:31:29.055 [Deploying 28336/32004 bytes.]

08:31:29.068 [Deploying 29348/32004 bytes.]

08:31:29.095 [Deploying 30360/32004 bytes.]

08:31:29.121 [Deploying 31372/32004 bytes.]

08:31:29.154 [Assemblies successfully deployed to the device]

08:31:29.193 [Launching debugger provider from v2022.2.0+f1998f9dd6]

此时 COM 端口被锁定,该 COM 端口上将不再进行通信。我可以拔插 ESP32,但设备不会枚举。解决此问题的唯一方法是重新启动我的电脑。有人可以告诉我下一步要检查什么吗?

ESP32_WROOM_32 目标已弃用。您应该已经从 nanoff 看到了关于此的消息。 话虽如此,请使用当前目标之一,你应该可以开始了。

nanoff --update --serialport COM9999 --platform esp32