Skip to content

Not able to upload code to NODEMCU esp32 #7126

Closed
@prakulkhebbur

Description

@prakulkhebbur

Board

NodeMCU ESP32

Device Description

ESP-WROOM-32s NodeMCU by Ai Thinker

Hardware Configuration

No connection to any pins

Version

latest master (checkout manually)

IDE Name

Arduino IDE

Operating System

macOS 11.6.5

Flash frequency

Any Frequency not working

PSRAM enabled

no

Upload speed

921600

Description

When i try to upload any sketch even blank ones the esptool throws the below error
`Arduino: 1.8.13 (Mac OS X), Board: "NodeMCU-32S, 80MHz, 921600, None"

Sketch uses 243529 bytes (18%) of program storage space. Maximum is 1310720 bytes.
Global variables use 16420 bytes (5%) of dynamic memory, leaving 311260 bytes for local variables. Maximum is 327680 bytes.
usage: esptool write_flash [-h] [--erase-all]
[--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size FLASH_SIZE]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt]
[--encrypt-files

[ ...]]
[--ignore-flash-encryption-efuse-setting]
[--compress | --no-compress]
[ ...]
esptool write_flash: error: argument : Address "{upload.erase_cmd}" must be a number
esptool write_flash: error: argument : Address "{upload.erase_cmd}" must be a number
`

Sketch

/* The true ESP32 chip ID is essentially its MAC address.
This sketch provides an alternate chip ID that matches 
the output of the ESP.getChipId() function on ESP8266 
(i.e. a 32-bit integer matching the last 3 bytes of 
the MAC address. This is less unique than the 
MAC address chip ID, but is helpful when you need 
an identifier that can be no more than a 32-bit integer 
(like for switch...case).

created 2020-06-07 by cweinhofer
with help from Cicicok */
	
uint32_t chipId = 0;

void setup() {
	Serial.begin(115200);
}

void loop() {
	for(int i=0; i<17; i=i+8) {
	  chipId |= ((ESP.getEfuseMac() >> (40 - i)) & 0xff) << i;
	}

	Serial.printf("ESP32 Chip model = %s Rev %d\n", ESP.getChipModel(), ESP.getChipRevision());
	Serial.printf("This chip has %d cores\n", ESP.getChipCores());
  Serial.print("Chip ID: "); Serial.println(chipId);
  
	delay(3000);

}

Debug Message

Arduino: 1.8.13 (Mac OS X), Board: "NodeMCU-32S, 80MHz, 921600, Debug"

Sketch uses 247341 bytes (18%) of program storage space. Maximum is 1310720 bytes.
Global variables use 16484 bytes (5%) of dynamic memory, leaving 311196 bytes for local variables. Maximum is 327680 bytes.
usage: esptool write_flash [-h] [--erase-all]
                           [--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}]
                           [--flash_mode {keep,qio,qout,dio,dout}]
                           [--flash_size FLASH_SIZE]
                           [--spi-connection SPI_CONNECTION] [--no-progress]
                           [--verify] [--encrypt]
                           [--encrypt-files <address> <filename> [<address> <filename> ...]]
                           [--ignore-flash-encryption-efuse-setting]
                           [--compress | --no-compress]
                           <address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: Address "{upload.erase_cmd}" must be a number
esptool write_flash: error: argument <address> <filename>: Address "{upload.erase_cmd}" must be a number

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions