This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

52810, how to use dfu?

Hello, guys, I develop 52810 with sdk 14.1.0, i need the OTA features, but i couldn't find the dfu demo(ble secure dfu bootloader and buttonless dfu template app, pca10040e), what can i do ?

Do you give the dfu demo for 52810 later?

Parents
  • Hello!Some about DFU example migrated to nRF52810.

    1.Modify nrf_ble_dfu_s112.c by this code:

    	#if (NRF_SD_BLE_API_VERSION >= 3)// && !S112)
    				case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:
    				{
    						err_code = sd_ble_gatts_exchange_mtu_reply(p_ble_evt->evt.gatts_evt.conn_handle,
    																											 NRF_SDH_BLE_GATT_MAX_MTU_SIZE);
    						APP_ERROR_CHECK(err_code);
    				} break; // BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST
    #if (!S112)
    				case BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST:
    				{
    						ble_gap_data_length_params_t const dlp =
    						{
    								.max_rx_octets = BLE_GAP_DATA_LENGTH_AUTO,
    								.max_tx_octets = BLE_GAP_DATA_LENGTH_AUTO,
    						};
    
    						err_code = sd_ble_gap_data_length_update(p_ble_evt->evt.gatts_evt.conn_handle,
    																										 &dlp, NULL);
    						APP_ERROR_CHECK(err_code);
    				} break; // BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST
    #endif
    #endif
    
    1. Firmware id for s112 is 0xA6 (--sd-req 0xA6). It used for generate dfu image.
Reply
  • Hello!Some about DFU example migrated to nRF52810.

    1.Modify nrf_ble_dfu_s112.c by this code:

    	#if (NRF_SD_BLE_API_VERSION >= 3)// && !S112)
    				case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:
    				{
    						err_code = sd_ble_gatts_exchange_mtu_reply(p_ble_evt->evt.gatts_evt.conn_handle,
    																											 NRF_SDH_BLE_GATT_MAX_MTU_SIZE);
    						APP_ERROR_CHECK(err_code);
    				} break; // BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST
    #if (!S112)
    				case BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST:
    				{
    						ble_gap_data_length_params_t const dlp =
    						{
    								.max_rx_octets = BLE_GAP_DATA_LENGTH_AUTO,
    								.max_tx_octets = BLE_GAP_DATA_LENGTH_AUTO,
    						};
    
    						err_code = sd_ble_gap_data_length_update(p_ble_evt->evt.gatts_evt.conn_handle,
    																										 &dlp, NULL);
    						APP_ERROR_CHECK(err_code);
    				} break; // BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST
    #endif
    #endif
    
    1. Firmware id for s112 is 0xA6 (--sd-req 0xA6). It used for generate dfu image.
Children
Related