espressif / idf-extra-components

Additional components for ESP-IDF, maintained by Espressif
136 stars 85 forks source link

Component "spi_nand_flash" with another spi slave device. (IEC-97) #315

Open Coco1780 opened 4 months ago

Coco1780 commented 4 months ago

Answers checklist.

Which component are you using? If you choose Other, provide details in More Information.

Other

ESP-IDF version.

5.0.4

Development Kit.

Custom board

Used Component version.

rathisonika/spi_nand_flash 0.0.7 and espressif/spi_nand_flash 0.1.0

More Information.

First of all thank you for this very useful extension for me. I use a W25N01GVZEIG flash which works very well on its own. But I also use a w5500 ethernet spi module on the same spi bus. The two together don't work. After some research I think I found the problem. In the "spi_nand_execute_transaction" function I replaced "spi_device_transmit" by "spi_device_polling_transmit" and everything works now.

BTW : I can't compile espressif/spi_nand_flash 0.1.0 I always get "dhara/map.h" not found

adokitkat commented 4 months ago

@RathiSonika could you please take a look?

RathiSonika commented 4 months ago

Hello @Coco1780 , Thank you for bringing up the issue. I'll investigate the spi_nand_execute_transaction function.

Regarding the compilation problem, the spi_nand_flash component relies on the dhara library, which is included as a separate component in the component repository. If you're compiling the example within the idf_extra_components repository, please initialize the submodule using the command git submodule update --init dhara/dhara, and then try again. Alternatively, you can remove the override path from the example's idf_component.yml file and attempt to compile it again. This should resolve the issue.