Based on: ".\nRF5_SDK_11.0.0_89a8197\examples\ble_peripheral\ble_app_hrs\pca10040\s132_with_dfu\arm4\ble_app_hrs_s132_with_dfu_pca10040.uvproj".

The UV warns that "there is no nRF52832 device", when this project opened first time!
Then I switch device to "nRF52810", cancel the "cross-module optimize" (speed up the compile).
At last save the UV4 project to UV5 format as prompted by UV.

Since the 52810 has a smaller RAM&Flash, change start/size of RAM&Flash, according to the origine sample project.
