upload โปรแกรม ลง nodemcu v3 ไม่ผ่านสักที แก้ยังไงดีคะ

อยู่ปี4จะทำโปรเจคแต่ปวดหัวกับ esp8266 แล้วค่ะ
ลองอัพโหลดโปรแกรมลง กด flash ค้างไว้ กด reset และปล่อย และปล่อย flash ก็ไม่ได้อยู่ดี

คำถามมี 3 ข้อใหญ่ๆค่ะ ประมาณว่าปัญหาเกิดจากสาเหตุไหนกันแน่ถึงได้อัพโหลดไม่ผ่านสักที

1. ไม่รู้ว่า set ชื่อ wifi กับ password ให้กับ nodemcu v3 ยังไง เราจะเซตใหม่ได้อย่างไร ลอง search ใน internet เพื่ออัพโหลดโค้ดลงบอร์ดดำของ nodemcu v2 เจอแล้ว(แบบเขาให้แก้ใน File preferences--> more preferences can be edited in the file
credit จาก https://blog.thaieasyelec.com/getting-started-with-esp8266-nodemcu-ch1/ และก๊อป script ลงล่างสุดของ file board.txt เพื่อให้เครื่องรู้จัก board nodemcu v2 แต่ board ที่หนูมีคือ nodemcu v3 และหนูหา script ไม่เจอจริงๆค่ะ
เม่าเหม่อ ปล. ขอโทษในความโง่ของหนูด้วยนะคะ ใครมีใครหาเจอ รบกวนแปะลิ้งค์บอกบุญทีค่ะ

2. สาย usb ที่ใช้ เป็นสายชาร์จแบตโทรศัพท์มือถือทั่วไป(ที่เป็นแบบ android และไม่ใช่ type c) เสียบเข้ากับคอมขึ้น port ตรง ปกติดี แต่อัพโหลดไม่ผ่าน(ขึ้น error message ตามด้านล่าง) แล้วโมดูลที่ใช้ก็ต้องการไฟเลี้ยง 5V จะแก้ไขได้อย่างไร หรือจำเป็นต้องซื้อสาย microusb typeBโดยเฉพาะ หรือถ้าเปลี่ยนไปใช้ nodemcu v2 จ่ายไฟ5Vได้ไหมคะ ... หรือจริงๆแล้วจะต้องเปลี่ยนการต่อให้ต่อกับอะไรก็ได้ที่จ่ายไฟ 5V แทน ละจะต่อกับ nodemcu อย่างไร

เพราะโปรเจคที่ทำก็คือ ต้องการเก็บค่าจากโมดูลแบบเรียลไทม์และบันทึกค่าไว้ใน cloud ดังนั้นจึงอยากให้ nodemcu สามารถใช้งานกับโมดูลได้ หลังจากอัพโหลดแล้ว (คือเสียบกับแบตสำรองพกพาก็สามารถใช้งานได้)

Arduino: 1.8.12 (Windows 10), Board: "NodeMCUV2 (ESP8266 ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
Executable segment sizes:

IROM   : 244788          - code in flash         (default or ICACHE_FLASH_ATTR) 

IRAM   : 26892   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...) 

DATA   : 1264  )         - initialized variables (global, static) in RAM/HEAP 

RODATA : 1048  ) / 81920 - constants             (global, static) in RAM/HEAP 

BSS    : 25064 )         - zeroed variables      (global, static) in RAM/HEAP 

Sketch uses 273992 bytes (26%) of program storage space. Maximum is 1044464 bytes.
Global variables use 27376 bytes (33%) of dynamic memory, leaving 54544 bytes for local variables. Maximum is 81920 bytes.
usage: esptool [-h] [--chip {auto,esp8266,esp32}] [--port PORT] [--baud BAUD]
               [--before {default_reset,no_reset,no_reset_no_sync}]
               [--after {hard_reset,soft_reset,no_reset}] [--no-stub]
               [--trace] [--override-vddsdio [{1.8V,1.9V,OFF}]]
               {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,version}
               ...
esptool: error: argument operation: invalid choice: 'ck' (choose from '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', 'version')
esptool: error: argument operation: invalid choice: 'ck' (choose from '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', 'version')
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

ขอบคุณล่วงหน้าสำหรับคำตอบนะคะ
แสดงความคิดเห็น
โปรดศึกษาและยอมรับนโยบายข้อมูลส่วนบุคคลก่อนเริ่มใช้งาน อ่านเพิ่มเติมได้ที่นี่