Hi,
The flash memory I want to use in my project (S25FL128SAGBHIZ00) stuck during the program/erase operation (ESP32C6 connected via USB to Windows running PC).
The flash_id, read_flash_status, read_flash operations are OK (checked with logic analyzer on SPI bus).
During erase (as standalone and as preceeding programming as well) the flash rises E_ERR flag and flasher stub is stuck waiting for the flag to be cleared, then exits.
So I want to check status of PPB and DYB bits and for that I need to modify the existing flasher stub.
I have ESP-IDF installed, I downloaded espressif/esptool master image from github.
When I tried to run idf.py app or idf.py all in flasher_stub directory, I've got it compiled more than 900 files for this puny little stub and ended up with error.
Can anyone please provide me with instructions how should I compile it?
Please help.
Best Regards,
Boris.
Custom flasher stub compilation
- ESP_Roland
- Posts: 265
- Joined: Tue Oct 09, 2018 10:28 am
Re: Custom flasher stub compilation
No, you should not use "idf.py" for this.
You can find the instructions in the flasher stub directory: https://github.com/espressif/esptool/bl ... /README.md
You can find the instructions in the flasher stub directory: https://github.com/espressif/esptool/bl ... /README.md
Re: Custom flasher stub compilation
Done as explained in that Readme.md file. got the following:
...\esptool-master\flasher_stub>make WITHOUT_ESP8266=1
" CC(32) stub_flasher.c slip.c stub_commands.c stub_write_flash.c stub_io.c build ld/stub_32.ld -> build/stub_flasher_32.elf"
" WRAP build/stub_flasher_32.elf -> build"
process_begin: CreateProcess(NULL, env python ...\esptool-master\flasher_stub\wrap_stub.py build/stub_flasher_32.elf, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [build/stub_flasher_32.json] Error 2
What's done wrong?
...\esptool-master\flasher_stub>make WITHOUT_ESP8266=1
" CC(32) stub_flasher.c slip.c stub_commands.c stub_write_flash.c stub_io.c build ld/stub_32.ld -> build/stub_flasher_32.elf"
" WRAP build/stub_flasher_32.elf -> build"
process_begin: CreateProcess(NULL, env python ...\esptool-master\flasher_stub\wrap_stub.py build/stub_flasher_32.elf, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [build/stub_flasher_32.json] Error 2
What's done wrong?
Who is online
Users browsing this forum: Majestic-12 [Bot] and 94 guests