Page 1 of 1

flash frequency does't change to 80Mhz

Posted: Sun Sep 09, 2018 6:29 pm
by pwiner99
My sdkconfig file has this:

CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_ESPTOOLPY_FLASHFREQ_40M=
CONFIG_ESPTOOLPY_FLASHFREQ_26M=
CONFIG_ESPTOOLPY_FLASHFREQ_20M=
CONFIG_ESPTOOLPY_FLASHFREQ="80m"

But the second stage boot message is this:
[Sep 9 10:52:25.021] [0;32mI (29) boot: ESP-IDF v3.0-r11 2nd stage bootloader[0m
[Sep 9 10:52:25.021] [0;32mI (29) boot: compile time 17:48:58[0m
[Sep 9 10:52:25.021] [0;32mI (29) boot: Enabling RNG early entropy source...[0m
[Sep 9 10:52:25.021] [0;32mI (34) qio_mode: Enabling default flash chip QIO[0m
[Sep 9 10:52:25.022] [0;32mI (39) boot: SPI Speed : 40MHz[0m
[Sep 9 10:52:25.022] [0;32mI (43) boot: SPI Mode : QIO[0m
[Sep 9 10:52:25.022] [0;32mI (47) boot: SPI Flash Size : 4MB[0m

Any thoughts how how to make 80mhz happen? I was able to change form DIO to QIO.

Re: flash frequency does't change to 80Mhz

Posted: Mon Sep 10, 2018 2:58 am
by ESP_Sprite
What hardware do you use?

Re: flash frequency does't change to 80Mhz

Posted: Mon Sep 10, 2018 9:47 pm
by pwiner99
Adafruit Huzzah32
Mongoose-os

Re: flash frequency does't change to 80Mhz

Posted: Wed Sep 12, 2018 7:51 am
by ESP_Angus
Hi pwiner99,

What method did you use to flash?

To change flash settings like this, you need to both recompile and re-flash the bootloader.bin with new esptool.py arguments ("-fs 80m" in this case). The flash speed setting will be overriden by esptool.py at flashing time if one is supplied on the command line.

If you use IDF "make flash", this should happen automatically but you may need to do something different if using another method.

(Note that DIO<->QIO & DOUT<->QOUT is special because the esptool mode is always "DIO" or "DOUT", and then the second stage bootloader in IDF enables QIO or QOUT mode. But the other flash modes, flash freq, and flash size are all set in a header which esptool.py can overwrite.)

Re: flash frequency does't change to 80Mhz

Posted: Sun Sep 16, 2018 10:37 pm
by pwiner99
ESP_Angus,

Thanks for the response. It was helpful. Sorry I didn't reply earlier. This set up the first phase correctly for me.

mos flash --esp-flash-params dio,32m,80m

I had trouble getting the flash size right. I thought 4m for 4 megabyte and it would error. 32m worked.

Paul