Introducing VS CtrlR

For custom IoT application development, the F1 Starter Kit can be configured on the Microsoft Visual Studio Code IDE platform with the CtrlR Plugin.

You will need the latest version of Visual Studio Code to proceed, which can be downloaded and installed here.

Installing VS CtrlR Plugin

  1. Launch Visual Studio Code and navigate to Extensions. Search for “CtrlR” and click Install.

    Install CtrlR plugin in VS Code
  2. Press the Reload button to complete the CtrlR Plugin installation.

Configuring F1 Starter Kit for CtrlR Plugin on your PC

  1. Connect your F1 Starter Kit to your PC and turn it on (SW200 switch from OFF to ON).

  2. If your PC doesn’t have the Silabs CP2102N Virtual COM port driver installed previously, an unknown device will be shown in your PC’s Device Manager.

    Unknown device in Device Manager
  3. Download and install the Virtual COM Port driver.

  4. Upon installation of the driver, a new COM port should show up in your PC’s Device Manager.

    COM port in Device Manager
  5. Go back to Visual Studio Code and ensure that the CtrlR Plugin has been correctly installed.

    CtrlR plugin installed in VS Code CtrlR plugin device view
  6. Normally, your device will be auto-detected as shown above. If this does not work, click [List all devices] in the DEVICES window.

    List all devices button
  7. If everything is correct, device details will pop up when your mouse pointer is placed on the device:

    Device details tooltip
  8. Use the “Connect” button to connect VS Code with the device.

    Connect button
  9. Next, you will be able to invoke a terminal, launch file explorer, or disconnect from the device with the 3 buttons.

    Terminal, file explorer, and disconnect buttons
  10. The terminal will let you interact with the device’s MicroPython REPL. Invoking a simple command os.uname() will print the firmware version of your device.

    MicroPython REPL with os.uname()
  11. The file explorer provides a drag-and-drop interface to view, add, and edit the files within your device.

    CtrlR file explorer