Skip to content
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

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

Open
3 tasks done
Coco1780 opened this issue Mar 14, 2024 · 2 comments
Open
3 tasks done

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

Coco1780 opened this issue Mar 14, 2024 · 2 comments

Comments

@Coco1780
Copy link

Answers checklist.

  • I have read the component documentation ESP-IDF Components and the issue is not addressed there.
  • I am using target and esp-idf version as defined in component's idf_component.yml
  • I have searched the issue tracker for a similar issue and not found any related issue.

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

@Coco1780 Coco1780 added the Type: Bug Bugs in components label Mar 14, 2024
@github-actions github-actions bot changed the title Component "spi_nand_flash" with another spi slave device. Component "spi_nand_flash" with another spi slave device. (IEC-97) Mar 14, 2024
@adokitkat
Copy link

adokitkat commented Mar 14, 2024

@RathiSonika could you please take a look?

@RathiSonika
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants