M5Paper error on Arduino upload
- 
					
					
					
					
 Hi, I have a new M5Paper 1.1 and Arduino 1.8.19. 
 I have selected the board M5Stack-Paper and the port.
 With my M5Core2 I have no problems, but when I compile and upload any program to M5Paper I get the following error message:
 Arduino: 1.8.19 (Windows 10), Board: "M5Stack-Paper, Enabled, Default (2 x 6.5 MB app, 3.6 MB SPIFFS), 240MHz (WiFi/BT), 921600, None"Sketch uses 415801 bytes (6%) of program storage space. Maximum is 6553600 bytes. 
 Global variables use 18392 bytes (0%) of dynamic memory, leaving 4503592 bytes for local variables. Maximum is 4521984 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 numberCan anyone help with this? 
- 
					
					
					
					
 @gordond You haven't selected the com port that the m5Paper is connected to. 
- 
					
					
					
					
 Hi, when I plug in M5Paper COM port 6 appears and I have selected it, but still get that error message. 
  I have also used Easyloader to upload Calculator and Factory Test successfully and that showed COM port 6. 
- 
					
					
					
					
 can you capture the beginning of the write attempt just after compile? 
- 
					
					
					
					
 During compile I found this error message: 
 Multiple libraries were found for "SD.h"
 Used: C:\Users\Gordon\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.5\libraries\SD
 Not used: C:\Program Files (x86)\Arduino\libraries\SD
 Multiple libraries were found for "WiFiClient.h"
 Used: C:\Users\Gordon\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.5\libraries\WiFi
 Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
 "C:\Users\Gordon\AppData\Local\Arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3/bin/xtensa-esp32-elf-ar" cr "C:\Users\Gordon\AppData\Local\Temp\arduino_build_476900\core\core.a" "C:\Users\Gordon\AppData\Local\Temp\arduino_build_476900\core\esp32-hal-rgb-led.c.o"
 remove core\core.a: The process cannot access the file because it is being used by another process.
 "C:\Users\Gordon\AppData\Local\Arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3/bin/xtensa-esp32-elf-ar" cr "C:\Users\Gordon\AppData\Local\Temp\arduino_build_476900\core\core.a" "C:\Users\Gordon\AppData\Local\Temp\arduino_build_476900\core\esp32-hal-rmt.c.o"
 Error compiling for board M5Stack-Paper.and then after compile I get this: 
 "C:\Users\Gordon\AppData\Local\Arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3/bin/xtensa-esp32-elf-size" -A "C:\Users\Gordon\AppData\Local\Temp\arduino_build_476900/M5Paper_Hello_World.ino.elf"
 Sketch uses 415801 bytes (6%) of program storage space. Maximum is 6553600 bytes.
 Global variables use 18392 bytes (0%) of dynamic memory, leaving 4503592 bytes for local variables. Maximum is 4521984 bytes.
 C:\Users\Gordon\AppData\Local\Arduino15\packages\m5stack\tools\esptool_py\3.3.0/esptool.exe --chip esp32 --port COM6 --baud 921600 --before default_reset --after hard_reset write_flash {upload.erase_cmd} -z --flash_mode dio --flash_freq 80m --flash_size 16MB 0x1000 C:\Users\Gordon\AppData\Local\Temp\arduino_build_476900/M5Paper_Hello_World.ino.bootloader.bin 0x8000 C:\Users\Gordon\AppData\Local\Temp\arduino_build_476900/M5Paper_Hello_World.ino.partitions.bin 0xe000 C:\Users\Gordon\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.5/tools/partitions/boot_app0.bin 0x10000 C:\Users\Gordon\AppData\Local\Temp\arduino_build_476900/M5Paper_Hello_World.ino.bin
 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
