I want to run BLE peripheral UART application on nRF51822. I have downloaded nrf5 SDK and S130 softdevice. I am using Keil5 and STlinkV2 for programming the device. The UART program gets compiled and downloaded successfully. But some error occurs in flashing softdevice. Kindly help me to solve this issue. Also, find the attached images for reference. Also I want to know RAM and ROM settings for Keil ide.
Specs- Keil IDE with stlinkV2
Device- waveshare BLE nrf51822

