-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: "Failed to resolve component 'spi_nand_flash', MT29F1G01 support (IEC-219) #424
Comments
Hi @Teesmo, If you download the archive from the component registry manually and want to run the example from the archive, make sure you extract the archive into a directory called
Alternatively, you can skip downloading the archive manually, and use this command to get the example project directly:
The latter is the recommended way to run examples of components from the component registry. |
Let me try that, thank you. |
It built, thank you |
@Teesmo Out of curiosity, which NAND flash chip are you using? |
I am using the MT29F1G01ABAFDSF-AAT:F. I was about to open an issue explaining that my chip is not being detected at all (The chip restarts after the error |
Do I understand it right that with these changes, your chip is detected and the example works? If yes, would you mind opening a pull request with your changes? |
No. The issue is that with or without my changes, my chip is not being detected (for some reason). I think my changes, under normal circumstances, should work. I checked if my issue is a hardware problem, but my wiring seems OK, and my GPIO allocations are inline with the example provided. It isn't apparent to me how the changes I have made (or lack thereof) affect chip detection, because, form issue #385, I understood that the author had run the code and it had (sort of) worked, even before making changes that are specific to his chip. |
No, the basic changes (like adding chip ID) are still necessary, otherwise the chip won't be detected. I don't have this specific chip (just got the |
@igrr I tried logging and got 0xff off two chips already. I'll double check my wiring. Apart from the basics (chip ID etc), will the extra changes (page_delay, block_delay etc) affect chip detection? |
No, as you can see from the code, we just get the VID and PID, and then there are switch-case statements to select by VID and PID. All the parameters set for the specific chip (page_delay etc) are only used once we exit from the chip detection code. The only thing necessary for chip detection to work is to have MOSI, MISO, CLK, CS lines correctly connected, and the flash chip should have power supply. |
Maybe my pin mappings might be wrong. I'll check that as well. |
@igrr I've checked my pin allocations, and they seem correct. The chip also gets powered. I'm wondering, maybe this (NAND) does not work on my microcontroller (ESP32-S2). I'll send the pull request |
0xff means either of the following things:
If you have an oscilloscope or a logic analyzer you can probe the signals on both sides and try to see if all the lines are properly connected. You can also share which pins you use, I can try to run an example on esp32-s2, although with a slightly different flash model. |
I use the default GPIO pins as defined in soc/spi_pins.h (9 HD, 10 CS, 11 MOSI, 12 CLK, 13 MISO, 14 WP). Although I think my implementation does not use HD and WP. |
Answers checklist.
General issue report
I downloaded the archive: espressif__spi_nand_flash from the component registry, When I tried running the example provided in the package., I encountered the error :
Failed to resolve component 'spi_nand_flash'
. I am not sure how to proceed further, because I was under the impression that the example would run with no interventions on my side.Here is the call stack:
Processing 3 dependencies:
[3/3] idf (5.4.0)CMake Error at /home/onepower/esp/esp-idf/tools/cmake/build.cmake:268 (message):
Failed to resolve component 'spi_nand_flash'.
Call Stack (most recent call first):
/home/onepower/esp/esp-idf/tools/cmake/build.cmake:310 (__build_resolve_and_add_req)
/home/onepower/esp/esp-idf/tools/cmake/build.cmake:607 (__build_expand_requirements)
/home/onepower/esp/esp-idf/tools/cmake/project.cmake:710 (idf_build_process)
CMakeLists.txt:8 (project)
`
The text was updated successfully, but these errors were encountered: