Announcements

Curious on how you can apply AIROC™ Wi-Fi and Wi-Fi Bluetooth to Smart Home Appliances? Register for the ASEAN Smart Home Appliance Webinar here to find out how.

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

AIROC™ Wi-Fi and Wi-Fi Bluetooth Combos Forum Discussions

PIHL
Level 3
25 sign-ins 10 replies posted 10 sign-ins
Level 3

Hi,

I am working on a project with custom board featuring CY43012 radio chip. I try to start a WIFI access point using my device.

I ported WHD library, and have SDIO part working. The firmware is being uploaded to CY43012, firmware starts, then I have succesfull communication with device (write/read to function 2).

I copied WiFi scan example and the whole cy_wcm_init(&wcm_config) function executes with no issues. Unfortunately after that I get a communication error. Console log below:


WLAN MAC Address : 48:EB:62:E3:EA:20
WLAN Firmware : wl0: Apr 26 2021 04:04:15 version 13.10.271.265 (aa096f9 CY) FWID 01-29e05f8
WLAN CLM : API: 18.2 Data: 9.10.0 Compiler: 1.36.1 ClmImport: 1.34.1 Creation: 2020-09-09 01:19:03
WHD VERSION : v1.94.0 : v1.94.0 : GCC 9.3 : 2021-04-27 16:54:34 +0800
Info: Scanning without any filter
----------------------------------------------------------------------------------------------------
# SSID RSSI Channel MAC Address Security
----------------------------------------------------------------------------------------------------
fwhd_bus_sdio_cmd53:869 cyhal_sdio_bulk_transfer SDIO_BYTE_MODE failed
Function whd_bus_sdio_abort_read failed at line 1041 checkres = 33555501
Error during SDIO receive, whd_bus_sdio_read_frame failed at 612
Function whd_management_set_event_handler failed at line 427 checkres = 101580800


The program fails at cy_rtos_get_semaphore(&cdc_bdc_info->ioctl_sleep,...) after function whd_cdc_send_iovar() is executed inside whd_management_set_event_handler()

In the main thread I ran whd_thread_receive_one_packet() and whd_thread_send_one_packet(), but both of those functions give me response of 0

0 Likes
1 Solution
PIHL
Level 3
25 sign-ins 10 replies posted 10 sign-ins
Level 3

I found an issue with my implementation of cyhal_sdio_bulk_transfer function. By code error I was rounding down the block count number when the result was not a natural number.

View solution in original post

2 Replies
AditiB_81
Moderator
Moderator 5 questions asked 250 replies posted 250 sign-ins
Moderator

Hi,

Can you give details on what does the project does? Can you provide some pointers to reproduce the issue at our end?

Thanks

Aditi

0 Likes
PIHL
Level 3
25 sign-ins 10 replies posted 10 sign-ins
Level 3

I found an issue with my implementation of cyhal_sdio_bulk_transfer function. By code error I was rounding down the block count number when the result was not a natural number.