Make NTU Hackathon


Team for Make NTU Hackathon 2017 in Taipei. See the Wiki tab below for details on using the hardware available. The Code tab contains example code for all the hardware.

Program1_Blinky

Table of Contents

  1. Setup
  2. Compile and Run

This is one of the simplest examples of mbed OS. It shows the use of a DigitalOut object to represent an LED and the non-blocking Thread::wait() call. This is good practice as if there were other threads, they could be scheduled and run while the first thread is waiting.

Building with mbed CLI

If you'd like to use mbed CLI to build this, then you should follow the instructions for mbed cli. The instructions here relate to using the developer.mbed.org Online Compiler

Setup

  1. Create an ARM mbed account if you do not have one.
  2. On the top right corner, click the Compiler button. An IDE should open.
  3. Open https://developer.mbed.org/platforms/ST-Nucleo-F429ZI/ and click the Add to your mbed Compiler button.
  4. Go back to the compiler browser window and click F5 to refresh the page. Make sure you see the NUCLEO-F429ZI target on the top right.
  5. To see debug messages, install the serial driver.
  6. Then connect the board to you PC using the micro-USB cable. Make sure you see the NODE_F429ZI drive on your computer. /media/uploads/Maggie17/capture.jpg

Compile and Run

  1. Import Program1_Blinky to your online compiler. Make sure you can see the NUCLEO-F429ZI target on the top right.
  2. Press Compile. A file downloads (mbed-os-example-blinky_NUCLEO_F429ZI.bin).
  3. Drag the file to the 'NODE_F429ZI' disk. The LED on the board will flash.
  4. After flashing, hit the 'Reset' button to start the program.
  5. Program1_Blinky runs! You will see the LED1 keep flashing.

More instructions for using the mbed Online Compiler can be found at mbed Compiler.


All wikipages