Esp i rozpoznawanie wielkości pamięci

User avatar
shimano73
Posts: 2174
Joined: Sun Feb 28, 2016 12:27 pm
Location: Orzesze
Been thanked: 1 time

Post

Koledzy i koleżanki , poprawiając błędy w moich softach , wymyśliłem aby sprawdzać ile posiada flash'u nasz esp. Z pomocą przyszedl internet i na pewnym githubie https://github.com/esp8266/Arduino/blob ... Config.ino
znalazłem programik ktory sprawdza ile go jest.
No i wgrałem sobie to z poziomu arduino , no i ładnie pokazuje ile czego jest i czy poprawnie skonfigurowane.

Code: Select all


Flash real id:   001640EF
Flash real size: 4194304 bytes

Flash ide  size: 4194304 bytes
Flash ide speed: 40000000 Hz
Flash ide mode:  QOUT
Flash Chip configuration ok.
Sprawdziłem tak kilka wemosów i zawsze bylo ok , ale z poziomu Arduino IDE, bo gdy użyłem wemosa z 128Mbit i wgrałem bin'a z pomocą esp_download_tool'em 3.6.5 to już pamięć nie była dobrze skonfigurowana

Code: Select all


Flash real id:   001840EF
Flash real size: 16777216 bytes

Flash ide  size: 4194304 bytes
Flash ide speed: 40000000 Hz
Flash ide mode:  QOUT
Flash Chip configuration wrong!
No ale pewnie dlatego bo w tym esp_download_tool 3.6.5 nie ma opcji dla wersji z 128Mbit. , nie ma jej nawet w 3.8.5 którą ciężko coś wgrać bo wali błędami, może to wina driverów albo czegoś , nie wiem

Więc jak ma wgrać bin'a zwykły człowiek - laik z programowania , aby ta pamięć się dobrze skonfigurowała mając 128Mbit na pokładzie, nie używając środowisk programistycznych,
W elektronice jak nie wiadomo o co chodzi to zwykle chodzi o zasilanie

Wezmę udział w Supla Offline Party 2024 :)
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

Pytanie tylko po co? Twój program wykorzystuje 128Mbit? ;)
https://gui-generic-builder.supla.io/
User avatar
Robert Błaszczak
Posts: 5222
Joined: Sat Dec 22, 2018 8:55 pm
Location: Zielona Góra
Has thanked: 37 times
Been thanked: 27 times

Post

A spróbuj tym: https://github.com/marcelstoer/nodemcu- ... s/tag/v4.0
Przy wgrywaniu pokazuje ilość pamięci.
Pozdrawiam
Robert Błaszczak


Moja prywatna strona: www.blaszczak.pl
User avatar
shimano73
Posts: 2174
Joined: Sun Feb 28, 2016 12:27 pm
Location: Orzesze
Been thanked: 1 time

Post

Po co ? Tak z ciekawości , jasne że dziś nie wykorzystuję 128Mbit pamięci ale kto wie co zrobię jutro ;)
Robercie program z linku wgrał bin'a i wynik testu OK :P

Code: Select all

Flash real id:   001840EF
Flash real size: 16777216 bytes

Flash ide  size: 16777216 bytes
Flash ide speed: 40000000 Hz
Flash ide mode:  QIO
Flash Chip configuration ok.

Jeszcze jak by mi ktoś wyjaśnił czym jest Flash Mode i jakie to ma znaczenie przy ustawianiu tego parametru ?
W elektronice jak nie wiadomo o co chodzi to zwykle chodzi o zasilanie

Wezmę udział w Supla Offline Party 2024 :)
User avatar
Robert Błaszczak
Posts: 5222
Joined: Sat Dec 22, 2018 8:55 pm
Location: Zielona Góra
Has thanked: 37 times
Been thanked: 27 times

Post

W NodeMCU PyFlasher przy wyborze jest opis po najechaniu na wykrzyknik. Ja zawsze ustawiam ten parametr według tej podpowiedzi. Ale o co tu dokładnie chodzi to nie wiem :) .
Pozdrawiam
Robert Błaszczak


Moja prywatna strona: www.blaszczak.pl
User avatar
Goral64
Posts: 3258
Joined: Fri Dec 27, 2019 6:22 pm
Location: Żerniki Wrocławskie
Has thanked: 2 times
Been thanked: 1 time

Post

Takie coś znalazłem:
DIO - SPI host uses the "Dual I/O Fast Read" command (BBh). Two SPI pins are used to write the flash address part of the command, and to read flash data out. Therefore these phases need half the clock cycles compared to standard SPI.
DOUT - SPI host uses the "Dual Output Fast Read" command (3Bh). Two SPI pins are used to read flash data out. Slightly slower than DIO, because the address is written via the single MOSI data pin.
QIO - SPI host uses the "Quad I/O Fast Read" command (EBh). Four SPI pins are used to write the flash address part of the command, and to read flash data out. Therefore these phases need a quarter the clock cycles compared to standard SPI.
QOUT - SPI host uses the "Quad Output Fast Read" command (6Bh). Four SPI pins are used to read the flash data out. Slightly slower than QIO, because the address is written via the single MOSI data pin.

In terms of performance: QIO > QOUT > DIO > DOUT. I'm fairly sure the flash cache issues 32 byte reads each time, so QOUT or QIO are substantially faster than DIO or DOUT.
Widzimy się na Supla Offline Party Season 2026 :D

Image

Return to “Pomoc”