NCTU Programming Marathon
Team for Make NCTU Programming Marathon 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
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¶
- Create an ARM mbed account if you do not have one.
- On the top right corner, click the Compiler button. An IDE should open.
- Open https://developer.mbed.org/platforms/ST-Nucleo-F429ZI/ and click the Add to your mbed Compiler button.
- 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.
- To see debug messages, install the serial driver.
- Then connect the board to you PC using the micro-USB cable. Make sure you see the NODE_F429ZI drive on your computer.
Compile and Run¶
- Import Program1_Blinky to your online compiler. Make sure you can see the NUCLEO-F429ZI target on the top right.
- Press Compile. A file downloads (mbed-os-example-blinky_NUCLEO_F429ZI.bin).
- Drag the file to the 'NODE_F429ZI' disk. The LED on the board will flash.
- After flashing, hit the 'Reset' button to start the program.
- Program1_Blinky runs! You will see the LED1 keep flashing.
More instructions for using the mbed Online Compiler can be found at mbed Compiler.