flash frequency does't change to 80Mhz

pwiner99
Posts: 8
Joined: Tue Jun 05, 2018 1:51 pm

flash frequency does't change to 80Mhz

Postby pwiner99 » Sun Sep 09, 2018 6:29 pm

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.

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: flash frequency does't change to 80Mhz

Postby ESP_Sprite » Mon Sep 10, 2018 2:58 am

What hardware do you use?

pwiner99
Posts: 8
Joined: Tue Jun 05, 2018 1:51 pm

Re: flash frequency does't change to 80Mhz

Postby pwiner99 » Mon Sep 10, 2018 9:47 pm

Adafruit Huzzah32
Mongoose-os

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: flash frequency does't change to 80Mhz

Postby ESP_Angus » Wed Sep 12, 2018 7:51 am

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.)

pwiner99
Posts: 8
Joined: Tue Jun 05, 2018 1:51 pm

Re: flash frequency does't change to 80Mhz

Postby pwiner99 » Sun Sep 16, 2018 10:37 pm

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

Who is online

Users browsing this forum: No registered users and 85 guests