m0 beta
This content relates to a deprecated version of Mbed
Mbed 2 is now deprecated. For the latest version please see the Mbed OS documentation.
This page explains how to get up and running with the new mbed NXP LPC11U24 beta.
For reporting back and further questions, see the forum thread:
To allow you to use this beta board, you need to do a few things differently than the normal. In particular, you need to:
- Use the beta version of the website
- Import the beta version of the mbed libraries
These instructions take you through the steps, showing where you have to jump through a few hoops to allow you to use this in beta.
Signup¶
To get started, you need to create an mbed NXP LPC11U24 login account:
- Plug in the mbed board; a flash drive will appear
- Click on the mbed.htm file on the mbed drive to take you to the signup page
- Choose "Signup", and enter your email, username and password to setup an account
- If the board has already been used to create an account, you can use the provided signup code instead
Enabling Betamode¶
Once you are logged in, you need to switch to "betamode" to enable beta support for the LPC11U24.
Click the following link to enable betamode:
Warning
You need to have the site in betamode for this to work with the LPC11U24!
If later on you get a compiler warning saying "This feature is not supported...", you're probably not in betamode
Importing the Beta libraries and Getting Started¶
Normally in mbed, you can just create a new program and a default program with the mbed libraries are pulled in. However, we want to use the beta libraries, so instead of creating a new default program, we instead import the beta default program:
To import the default beta program and libraries:
- Visit http://mbed.org/users/chris/programs/m0-helloworld/latest
- Click "Import program" in the top right corner
- Follow the instructions
Compiling and Downloading¶
To compile and download the hello world to the mbed, simply:
- Click compile
- Choose to download it to the mbed drive
- Hit reset to see blinky run!
Workshop Examples¶
Now you have something working, you can start experimenting. Modify the default program, and try and recompile and download. Hit reset to run the latest program.
Here are slides for various example projects, and the projects you can import to explore and get started with:
Slides:
- mbed NXP LPC11U24 - Hello World Handouts (A4) 4Mb
- mbed NXP LPC11U24 - Hello World Slides (English) 2Mb
Programs to import:
- Lab 1 - Basic IO: http://mbed.org/users/chris/programs/m0-AnalogIn/latest
- Lab 2 - Interrupts and Timing (Ticker): http://mbed.org/users/chris/programs/m0-Ticker/latest
- Lab 2 - Interrupts and Timing (InnterruptIn): http://mbed.org/users/chris/programs/m0-InterruptIn/latest
- Lab 2 - Interrupts and Timing (both): http://mbed.org/users/chris/programs/m0-TickerInterruptIn/latest
- Lab 3 - Filesystem and file handling: http://mbed.org/users/chris/programs/m0-Filesystem/latest
- Lab 4 - Sleep and Deepsleep (sleep): http://mbed.org/users/chris/programs/m0-sleep/latest
- Lab 4 - Sleep and Deepsleep (deepsleep): http://mbed.org/users/chris/programs/m0-deepsleep/latest
- Lab 5 - USB Device (keyboard): http://mbed.org/users/chris/programs/m0-USBKeyboard/latest
- Lab 5 - USB Device (mouse): http://mbed.org/users/chris/programs/m0-USBMouse/latest
USBDevice¶
New library for USBDevice coming... (USBMouse/Keyboard/MIDI/HID/MSC/Serial)
First HID example: