Arduino BLE Sense and Mbed studio

Hello. I am an old arduino user but very new to the BLE sense family. I had some familiarity with MBED studio and Nordic nRF52-DK board. So when i bought the BLE sense i was intreasted in using the same Mbed studio. And i realised that now i can use ARDUINO_NANO33BLE as target. So i compiled the code. the code is also there in the picture attached.

Then i uploaded the code using the following command

C:\Users\BonJovi\AppData\Local\Temp\arduino_build_551330>C:\Users\BonJovi\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.9.1-arduino2/bossac.exe -d --port=COM4 -U -i -e -w C:\Users\BonJovi\AppData\Local\Temp\arduino_build_551330/mbed-os-example-blinky.hex -R

It uploaded successfully. But the LED doesnot blink at 500mS. rather it fades in and fadesup.
What might be the Reason?

Here is the code

[color=#c2c7c9][color=#7d868c]/* mbed Microcontroller Library[/color]
[color=#7d868c] * Copyright (c) 2019 ARM Limited[/color]
[color=#7d868c] * SPDX-License-Identifier: Apache-2.0[/color]
[color=#7d868c] */[/color]

[color=#ffa62e]#include[/color] [color=#efce58]"mbed.h"[/color]


[color=#7d868c]// Blinking rate in milliseconds[/color]
[color=#ffa62e]#define[/color][color=#efce58] [/color][color=#00c1de]BLINKING_RATE[/color][color=#efce58]     [/color][color=#f7f7f7]500ms[/color]


[color=#00c1de]int[/color] [color=#a9d545]main[/color]()
{
[color=#7d868c]    // Initialise the digital pin LED1 as an output[/color]
    DigitalOut [color=#a9d545]led[/color](LED1);

    [color=#ffa62e]while[/color] ([color=#00c1de]true[/color]) {
        led [color=#f7f7f7]=[/color] [color=#f7f7f7]![/color]led;
        [color=#f7f7f7]ThisThread[/color]::[color=#a9d545]sleep_for[/color](BLINKING_RATE);
    }
}
[/color]

Congrats on getting that far.

Having seen that with other mbed boards it can sometimes mean that the Mbed bootloader for the Arduino 33 BLE board is not up to date - this may well be the case as it looks like you used mbed os 6.x in Mbed Studio and I believe that currently the Arduino 33 BLE boards are using mbed 5.13. I have no idea how your would check.

So maybe choose the mbed 5.15 blinky option instead and see if you get any differences. Let us know as I'm curious.

Another remote possibility is that one or mroe of the target settings for that board config are not right. To check you can go to the "targets" folder within the mbed os folder and review the settings in the targets.json file. If you need to change anything you can create a custom config file in your project folder. To learn how go to the mbed.com website.