- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I try to test WiFi functionality of CY43012 radio chip. To do it I use Cypress WHD Library. I build a project on custom board with NXP LPC54607 MCU.
I have a problem with whd_wifi_on() function. I have firmware and nvram uploaded without issues, and I get Function 2 ready. But after that I cannot pass downloading clm_blob file. I get error as below:
** ERROR: WLAN: could not download clm_blob file
** FATAL ERROR: system unusable, CLM blob file not found or corrupted.
I check the function and the moment it fails is timeout in:
retval = cy_rtos_get_semaphore(&cdc_bdc_info->ioctl_sleep, (uint32_t)WHD_IOCTL_TIMEOUT_MS, WHD_FALSE);
I think the issue is connected with some errors in functions porting, but the variables seems ok and I do not know where to look at.
Thanks,
Piotr
Solved! Go to Solution.
- Labels:
-
Wireless
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, after some investigation I figured out that I might have issue with SDIO interrupts.
thread_info->bus_interrupt is always FALSE
after removing thread_info->bus_interrupt confition from whd_thread_func() I was able to upload the CLM_BLOB and finish whd_wifi_on();
Unfortunately when I try to use setup function for Access Point or Scan It is failing due to error:
Received buffer request ID: 22 (expectation: 23)
Received a response for a different IOCTL - retry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you follow the suggestion in this thread?
Let us know if this resolves the issue. Also, can you provide the firmware and the clm_blob file?
Thanks
Aditi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I think the issue is not really connected with the one from suggested thread.
In my case I think that the semaphore "&cdc_bdc_info->ioctl_sleep" is not getting set from whd_thread.
Unfortunately I can not find the reason why.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for pointing this out. I'll check the call hierarchy and revert back to you.
Please provide the firmware.bin and the clm_blob file as well to check for file corruption.
Thanks
Aditi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I used the firmware and clm_blob from version wifi-host-driver 1.92.0.4803. Today I tried also the latest version with the same result.
In my program I see that whd_bus_sdio_irq_handler is not running.
I guess cyhal_sdio_register_irq is not registering the irq correctly.
Thanks,
Piotr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, after some investigation I figured out that I might have issue with SDIO interrupts.
thread_info->bus_interrupt is always FALSE
after removing thread_info->bus_interrupt confition from whd_thread_func() I was able to upload the CLM_BLOB and finish whd_wifi_on();
Unfortunately when I try to use setup function for Access Point or Scan It is failing due to error:
Received buffer request ID: 22 (expectation: 23)
Received a response for a different IOCTL - retry