
Getting Started with EZ-BT WICED Modules
Document Number: 002-23400 Rev. **
23
// case BTM_PAIRED_DEVICE_LINK_KEYS_REQUEST_EVT:
// /* read keys from NVRAM */
// p_keys = (uint8_t *)&p_event_data->paired_device_link_keys_request;
// wiced_hal_read_nvram( HELLO_SENSOR_PAIRED_KEYS_VS_ID, sizeof(wiced_bt_device_link_keys_t), p_keys, &result );
// WICED_BT_TRACE("keys read from NVRAM %B result: %d \n", p_keys, result);
// break;
//
// case BTM_LOCAL_IDENTITY_KEYS_UPDATE_EVT:
// /* save keys to NVRAM */
// p_keys = (uint8_t*)&p_event_data->local_identity_keys_update;
// wiced_hal_write_nvram ( HELLO_SENSOR_LOCAL_KEYS_VS_ID, sizeof( wiced_bt_local_identity_keys_t ), p_keys ,&result);
// WICED_BT_TRACE("local keys save to NVRAM result: %d \n", result);
// break;
//
//
// case BTM_LOCAL_IDENTITY_KEYS_REQUEST_EVT:
// /* read keys from NVRAM */
// p_keys = (uint8_t *)&p_event_data->local_identity_keys_request;
// wiced_hal_read_nvram( HELLO_SENSOR_LOCAL_KEYS_VS_ID, sizeof(wiced_bt_local_identity_keys_t), p_keys, &result );
// WICED_BT_TRACE("local keys read from NVRAM result: %d \n", result);
// break;
//
// case BTM_ENCRYPTION_STATUS_EVT:
// p_status = &p_event_data->encryption_status;
// WICED_BT_TRACE( "Encryption Status Event: bd ( %B ) res %d", p_status->bd_addr, p_status->result);
// hello_sensor_encryption_changed( p_status->result, p_status->bd_addr );
// break;
//
// case BTM_SECURITY_REQUEST_EVT:
// wiced_bt_ble_security_grant( p_event_data->security_request.bd_addr, WICED_BT_SUCCESS );
// break;
//
// case BTM_BLE_ADVERT_STATE_CHANGED_EVT:
// p_mode = &p_event_data->ble_advert_state_changed;
// WICED_BT_TRACE( "Advertisement State Change: %d\n", *p_mode);
// if ( *p_mode == BTM_BLE_ADVERT_OFF )
// {
// hello_sensor_advertisement_stopped();
// }
// break;
//
// default:
// break;
// }
//
// return result;
//}
7 . 3 . 5
C r e a t e P l a t f o r m F i l e s , B u i l d , a n d D o w n l o a d
1. If you have not installed the WICED SDK platform files for the CYBT-343026-EVAL board at this point, you should
do so now. The platform files define the functional GPIO assignments, NVRAM type, and other low-level
characteristics that control the firmware image download process for a specific target device. This custom platform
file definition is required to properly use the CYBT-343026-EVAL board. You can find the reference and link to the
EZ-BT platform file in the respective EZ-BT module datasheet. After you download the platform file, install it and
do the following:
CYBT-343026-01 Platform File Location:
Visit
community.cypress.com/docs/DOC-13750
CYBLE_343026_EVAL Platform files.zip
file. Follow the instructions described in the KBA; they are presented
below for quick reference:
▪
Download
CYBT_343026_EVAL.zip
attached with
▪
Save and extract the downloaded file.
▪
Navigate to the folder
CYBT-343026-EVAL > 002-21025
and extract
CYBT_343026_EVAL_PLATFORM_FILES.zip
.
▪
Navigate to the folder
CYBT-343026-EVAL > 002- 21025 > CYBT_343026_EVAL_PLATFORM_FILES >
CYBT_343026_EVAL_PLATFORM_FILES
.
▪
Select and copy the folder
CYBT_343026_EVAL
under
CYBT_343026_EVAL_PLATFORM_FILES
. This
folder contains the necessary platform files.
▪
Paste the folder in WICED Studio 6.2.1 or later at the following path:
…\ WICED-Studio-6.2.1\20706-
shows the location of the folder in WICED Studio 6.2.1.