Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
mits_4588016
Level 3
Level 3
10 questions asked 50 sign-ins 10 replies posted

 

Hi Team,

I found the failure of sample code in STM32 expansion Pack on Murata Type1LV(CYW43012) by debugger.
But this failure is not found when the application is execute stand alone.
Please let me know the cause of this issue.

Failure message is following and attachment file.
"Interface is not up/NULL and failed in function whd_deinit at line 193
Filed to initialize Wi-Fi"

The emvironment information is following.
- Wifi module: Murata Type1LV (CYW43012)
- Evaluation board: STM32H747 DISCO Kit, muRata uSD-M2 Adapter Kit (rev B1), Embedded Artists 1LV M.2 Module
- Sample code: wifi_scan in STM32 expansion Pack 1.5.1

Best Regards,
Tsutsumi

0 Likes
1 Solution
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

seems sdio bus init was broken with the debug mode,   assume the speed of the code running in Debug mode is slower than the normal mode,  but the sdio bus init is a high speed operation,  this may be the reason why the init will fail here.  suggest to add break point to the application layer .

View solution in original post

0 Likes
6 Replies
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

Hi :

 You mean when you start the whd, we need a deinit in the first place before the real init.

Interface is not up/NULL and failed in function whd_deinit at line 193

what is the different with  "But this failure is not found when the application is execute stand alone." ?

0 Likes
mits_4588016
Level 3
Level 3
10 questions asked 50 sign-ins 10 replies posted

Hi,

Please let us know tehe meaning of "whd".

with debugger: This failure is found. And this application does not work (stops).

without debugger (stand alone): This application works without problem.

 

Best Regards,

Tsutsumi 

0 Likes
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

 Hello:

      I think we should have some ack mechanism for some init process,    did you ever try to add the break point to the place after the init function, like setting the break point to the scan api.

0 Likes
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

would you please check if it fails here ?

Zhengbao_Zhang_0-1706003094761.png

 

0 Likes

Hi,

I found the fail you pointed out.

 

mits_4588016_1-1706069095933.png

 

After proceeding to the next step, the following was displayed.

mits_4588016_2-1706069125584.png

I would like to know why this issue occurs with/without debugger connection.

 

Best Regards,

Tsutsumi

0 Likes
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

seems sdio bus init was broken with the debug mode,   assume the speed of the code running in Debug mode is slower than the normal mode,  but the sdio bus init is a high speed operation,  this may be the reason why the init will fail here.  suggest to add break point to the application layer .

0 Likes