View Single Post
Old 02-23-2021, 02:58 AM   #71
stevenaleach
Enthusiast
stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.
 
Posts: 46
Karma: 134116
Join Date: Oct 2013
Device: Android Tablet
Quote:
Originally Posted by hobnail View Post
I'm old school and my knowledge comes from the days when code ran from either ram (DRAM) or rom. Typically code was loaded from a drive into ram where it was executed. Reading some of the Espressif docs it sounds like code is executing from the flash. My wee brain is having a hard time with that idea. Anyhow, I received my "Freenove Ultimate Starter Kit for ESP32-WROVER" today and it contains a cornucopia of devices and components, including the wrover. And I can't believe how clever Linux is; you just plug its usb into the wrover development board's usb socket and on the fly linux makes a serial device with the appropriate node in /dev. It's magic I tell ya.
Same here - flash and microcontrollers in general are new to me, but it's basically the equivalent of EEPROM -- it seems it's just mapped somewhere into the memory-space, just like ROM. The M5Paper has 16MB, the Lolin board I just got, 4MB. Can be used for code and data - when running MicroPython, the interpreter and libraries live in flash, along with a writable FAT filesystem with whatever room is left -- not much different than an old 8080/z80/etc machine with BASIC in ROM, except that it's re-writable. Shouldn't be used for high frequency data-logging because it's only "guaranteed" for about 10,000 rewrites and there may or may not be wear-leveling... but yea, for most purposes the flash is just a ROM region of memory.
stevenaleach is offline   Reply With Quote