Fota in custom application

We have a custom application, based on the I2C example. We would like to add the FOTA functionality to the application. I followed the steps described in “RSL10 Firmware Over-The-Air User’s Guide”. However, we get a 468 of compilation errors like:

‘EM_BLE_RX_DESC_OFFSET’ undeclared
EM_BLE_RX_DESC_OFFSET’ undeclared

‘EM_BLE_WPV_OFFSET’ undeclared
‘BLE_TX_DESC_CNTL’ undeclared
‘HCI_CMD_CMP_EVENT’ undeclared
‘BLE_CONNECTION_MAX’ undeclared
‘TASK_LLM’ undeclared
‘BLE_CONNECTION_MAX’ undeclared
‘GATT_ERR_WRITE’ undeclared
‘TASK_APP’ undeclared
‘ATT_ERR_NO_ERROR’ undeclared

What are we missing

So, I found that I needed to add all the -D flags. Now it compiles, however after I loaded the file, it does not register again in the mobile app.

You should not have had to declare those defines yourself.

The ONSemiconductor.RSL10/35.285 CMSIS pack contains the files that define these values. In your Project Explorer they should show up in the Includes folder under the “pack-install-path/ONSemiconductor/RSL10/3.5.285/include/bb” subdirectory.

If you used that project as your starting point and it compiles correctly, you should double check that your copy of the project contains the necessary includes.

1 Like