You are viewing an older revision! See the latest version

Beta

Table of Contents

  1. mbed Interface v21164

A place for listing beta versions of Firmware and Libraries...

mbed Interface v21164

A version of the mbed interface firmware that adds support for:

Functions to control the mbed interface debug connection and power state:

  • mbed_interface_disconnect() - tell the interface to disconnect the debug connection to the target (the channel usually used for semihost calls like LocalFileSystem fopen etc)
  • mbed_interface_powerdown() - tell the interface to disconnect the debug connection, and power down the interface (if not connected to USB)
  • mbed_interface_connected() - determine whether the mbed interface has a debug connection, based on whether debug is enabled in the core
  • mbed_interface_vbus() - check if the mbed interface has a USB connection

Official versions of some of the functions that already existed:

  • mbed_interface_reset() - tell the interface to perform a system reset
  • mbed_interface_uid() - get the unique id (UID) string of the mbed interface
  • mbed_mac_address() - get the 6-byte unique mac address, that is part of the mbed interface UID

#include "mbed.h"

DigitalOut led1(LED1);

int main() {

    led1 = mbed_interface_connected();  // is connected!
    wait(1);
    mbed_interface_powerdown();
    wait(1);
    led1 = mbed_interface_connected();  // no longer connected!
}

To get the new firmware, download the following interface firmware to the mbed and power cycle to load it (disconnect USB/power and reconnect)

To get the new library functionality, delete the mbed library from your project and Import the latest beta library instead:

  • http://mbed.org/projects/libraries-testing/svn/beta

For the full details of the new APIs, see the mbed_interface.h headerfile documentation:


All wikipages