Bluepill bare metal not working

I am using a bluepill STM32F103C8 with Mbed Studio, I am trying the blinky example. It works without mbed_app.json file and blinks correctly but when I add mbed_app.json with following { "requires": ["bare-metal"] }
It stops working. How to enable bare metal with Mbed studio.

That is exactly how you use the bare metal profile within Mbed Studio. What errors are you getting exactly?