Hello,
Is this possible to modify bootloader code that way, to have runtime detection that Flash and SPIRAM can be run in QIO mode with 80Mhz clock, then set it or fallback to DIO/40Mhz ?
The goal is to have one firmware for different boards with fastest possible IO on each.
Search found 7 matches
- Wed Apr 13, 2022 7:56 pm
- Forum: ESP-IDF
- Topic: Bootloader with auto Flash/SPIRAM speed settings
- Replies: 0
- Views: 1052
- Fri Nov 11, 2016 11:23 am
- Forum: Report Bugs
- Topic: [solved] App hang up on nvs_flash_init()
- Replies: 10
- Views: 21191
Re: App hang up on nvs_flash_init()
Ok, finally i got it to work, my first suspicion that maybe linker scripts need rework were correct. The problem was that libraries names generated by PlatformIO build doesn't match those in esp32.common.ld , so libraries like freertos were not put into IRAM. I learned that after opening issue https...
- Tue Nov 08, 2016 8:01 pm
- Forum: Report Bugs
- Topic: [solved] App hang up on nvs_flash_init()
- Replies: 10
- Views: 21191
Re: App hang up on nvs_flash_init()
Does the same issue happen in ESP-IDF, with optimization set to release, and delay changed to 100? No, in this case app run like it should - i don't get it. I supplied pio_build.zip that contains buildlog from PlatformIO and generated .elf file, maybe i missed something and those files help find so...
- Tue Nov 08, 2016 1:07 pm
- Forum: Report Bugs
- Topic: [solved] App hang up on nvs_flash_init()
- Replies: 10
- Views: 21191
Re: App hang up on nvs_flash_init()
You can work around this by adding 'volatile' qualifier in two lines in components/spi_flash/cache_utils.c, around line 41: static volatile bool s_flash_op_can_start = false; static volatile bool s_flash_op_complete = false; Ok, it works for building in MSYS2, and Optimization level set to Release....
- Mon Nov 07, 2016 1:33 pm
- Forum: Report Bugs
- Topic: [solved] App hang up on nvs_flash_init()
- Replies: 10
- Views: 21191
Re: App hang up on nvs_flash_init()
Thank you, i will try this later.
I looked in the cache_utils.c and i see that those variables are used in spinlocks - why from the beginning are not marked as volatile to avoid stuck, caused by compiler optimization ?
I looked in the cache_utils.c and i see that those variables are used in spinlocks - why from the beginning are not marked as volatile to avoid stuck, caused by compiler optimization ?
- Mon Nov 07, 2016 8:17 am
- Forum: Report Bugs
- Topic: [solved] App hang up on nvs_flash_init()
- Replies: 10
- Views: 21191
Re: App hang up on nvs_flash_init()
@kolban :
i'm not using Arduino framework at all, and the problem exist also for msys2+esp-idf not only Platformio.
@ESP_igrr :
problem reveal even on simple 02_blink code from esp-idf examples.
i'm not using Arduino framework at all, and the problem exist also for msys2+esp-idf not only Platformio.
@ESP_igrr :
problem reveal even on simple 02_blink code from esp-idf examples.
- Sun Nov 06, 2016 7:09 pm
- Forum: Report Bugs
- Topic: [solved] App hang up on nvs_flash_init()
- Replies: 10
- Views: 21191
[solved] App hang up on nvs_flash_init()
I'm from Poland and this is my first post, so Hello Everyone ! :) Thanks to rudi ;-) from this forum I have Nano32. I'm using Platformio and i've managed to modify package https://github.com/platformio/platform-espressif32, for successfull built application (in this example it is 02_blink), against ...