nanoff

by
published on

 

The below output is the result of trying to flash an unsupported device. In this case the ESP8266.

C:\>nanoff --platform esp32 --baud 115200 --serialport COM10 --update 
.NET nanoFramework Firmware Flasher v2.4.2+c4df2f6716
Copyright (C) 2019 .NET Foundation and nanoFramework project contributors


Using COM10 @ 115200 baud to connect to ESP32.
Reading details from chip...
Unhandled exception. nanoFramework.Tools.FirmwareFlasher.WriteEsp32FlashException:
usage: esptool [-h]
               [--chip {auto,esp8266,esp32,esp32s2,esp32s3beta2,esp32s3,esp32c3,esp32c6beta,esp32h2beta1,esp32h2beta2,esp32c2}]
               [--port PORT] [--baud BAUD]
               [--before {default_reset,usb_reset,no_reset,no_reset_no_sync}]
               [--after {hard_reset,soft_reset,no_reset,no_reset_stub}]
               [--no-stub] [--trace] [--override-vddsdio [{1.8V,1.9V,OFF}]]
               [--connect-attempts CONNECT_ATTEMPTS]
               {load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,merge_bin,get_security_info,version}
               ...
esptool: error: argument --chip/-c: invalid choice: 'esp' (choose from 'auto', 'esp8266', 'esp32', 'esp32s2', 'esp32s3beta2', 'esp32s3', 'esp32c3', 'esp32c6beta', 'esp32h2beta1', 'esp32h2beta2', 'esp32c2')

   at nanoFramework.Tools.FirmwareFlasher.EspTool.WriteFlash(Dictionary`2 partsToWrite, Boolean useStandardBaudrate) in D:\a\1\s\nanoFirmwareFlasher.Library\EspTool.cs:line 503
   at nanoFramework.Tools.FirmwareFlasher.EspTool.FindPSRamAvailable() in D:\a\1\s\nanoFirmwareFlasher.Library\EspTool.cs:line 316
   at nanoFramework.Tools.FirmwareFlasher.EspTool.GetDeviceDetails(String targetName, Boolean requireFlashSize) in D:\a\1\s\nanoFirmwareFlasher.Library\EspTool.cs:line 266
   at nanoFramework.Tools.FirmwareFlasher.Program.RunOptionsAndReturnExitCodeAsync(Options o) in D:\a\1\s\nanoFirmwareFlasher.Tool\Program.cs:line 575
   at CommandLine.ParserResultExtensions.WithParsedAsync[T](ParserResult`1 result, Func`2 action)
   at nanoFramework.Tools.FirmwareFlasher.Extensions.CommandLineExtensions.WithNotParsedAsync[T](Task`1 task, Func`2 errorFunc) in D:\a\1\s\nanoFirmwareFlasher.Tool\Extensions\CommandLineExtensions.cs:line 31
   at nanoFramework.Tools.FirmwareFlasher.Program.Main(String[] args) in D:\a\1\s\nanoFirmwareFlasher.Tool\Program.cs:line 92
   at nanoFramework.Tools.FirmwareFlasher.Program.<Main>(String[] args)

 

 

C:\>nanoff --platform esp32 --baud 115200 --serialport COM7 --update --preview
.NET nanoFramework Firmware Flasher v2.4.2+c4df2f6716
Copyright (C) 2019 .NET Foundation and nanoFramework project contributors

Using COM7 @ 115200 baud to connect to ESP32.
Reading details from chip...
OK

Connected to:
ESP32 (ESP32-D0WD (revision 1))
Features WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Flash size 4MB unknown from ST (manufacturer 0x32 device 0x16406)
PSRAM: not available
Crystal 40MHz
MAC C4:4F:33:15:38:A5

No target name was provided! Using 'ESP32_REV0' based on the device characteristics.

Trying to find ESP32_REV0 in development repository...OK

******************************* WARNING ******************************
** This firmware package was released at 26/03/2022                 **
** The target it's probably outdated.                               **
** Please check the current target names here: https://git.io/JyfuI **
**********************************************************************

Downloading firmware package...OK
Extracting ESP32_REV0-1.7.4-preview.127.zip...OK

Updating to 1.7.4-preview.127

Erasing flash...
OK
Flashing firmware...
Wrote 23712 bytes (14947 compressed) at 0x00001000 in 1.5 seconds (effective 122.6 kbit/s)...
Hash of data verified.
Wrote 1028400 bytes (675531 compressed) at 0x00010000 in 59.8 seconds (effective 137.5 kbit/s)...
Hash of data verified.
Wrote 3072 bytes (136 compressed) at 0x00008000 in 0.1 seconds (effective 340.9 kbit/s)...
Hash of data verified.
OK