Skip to content

STM32H7 WHD wifi module driver requires sleep to work #450

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

Open
multiplemonomials opened this issue Apr 15, 2025 · 0 comments
Open

STM32H7 WHD wifi module driver requires sleep to work #450

multiplemonomials opened this issue Apr 15, 2025 · 0 comments
Assignees

Comments

@multiplemonomials
Copy link
Collaborator

Currently, we have a porting layer which allows the Cypress WHD wifi driver to work by providing an SDIO API. Arduino created this porting layer for STM32H7 chips, and I refactored and cleaned it up, then merged it to Mbed.

This driver does work, but I found that when I removed all the debugging prints I'd added, it stopped working. I narrowed it down, and found that adding a delay in this location allowed everything to work. Removing that delay causes the wifi module to fail to init, and the reason why is not clear.

Debugging this is not going to be super easy, because (a) I don't have a lot of insight into how the WHD driver works, it's kind of a black box (though thankfully an open source black box), (b) adding any debug prints to the SDIO functions stops the issue from happening, and (c) the Arduino Giga and Portenta boards have no exposed traces or pins for the wifi module, so it's impossible to attach a logic analyzer.

I think that there are basically two paths forward to debug this issue;

  1. Create some code that makes a log of all SDIO transactions, then prints it out later, after the module has finished init. This would allow comparing the successful vs failed initializations to see where the difference is.
  2. Get a WHD wifi module dev board and attach it to a STM32H7 dev board, then use a logic analyzer to record the transactions.
@multiplemonomials multiplemonomials self-assigned this Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant