cc young
cc young

Reputation: 20245

How to determine flash size of NodeMCU?

Just bought a couple of NodeMCU from vendor on AliExpress. They were advertised as "v2" and having 4M flash.

How can I verify the flash size? The board says "Ver 0.1", but don't know if that means anything.

Upvotes: 4

Views: 24486

Answers (2)

Marcel Stör
Marcel Stör

Reputation: 23565

You have basically two options: install a firmware (NodeMCU, Arduino, etc.) and use their functions or extract the flash ID and look it up.

Install NodeMCU

  • Build and flash the NodeMCU firmware.
  • Run print(node.flashsize())

Chip ID

Upvotes: 24

Dorin
Dorin

Reputation: 1086

As Marcel Stor said before in this comment, the esptool.py may be used to find the flash size.

  • Just run python esptool.py -p <serial_port> flash_id
  • Flash size is output like this Detected flash size: xx

Output sample

enter image description here

Upvotes: 3

Related Questions