You get home from work and there's post! The latest flier from CPC, a couple of white envelopes, and a small jiffy bag. Can't remember buying anything that small from eBay lately. Wait, it's got 'ARM' on it, but its too small for a development board, isn't it? Only way to find out is to open it. Ah!, it's one of those Basic Stamp type of things (but much better, of course). The credit card pin-out diagram is a great idea!
Anyway, looking at the contents I thought, this must be simple because there's hardly anything here. I wa impressed that even the bags were zip-ups and I didn't have to tear into them. The PCB format is great for a development system because it's easy to fit onto a breadboard or stripboard, while being small enough to use as a prototype target system.
At first glance of the instructions, I saw ' A PC running Windows XP' and some other stuff. I was assuming that, like most systems, there would be software to interface with the board to run on a Windows machine, then I noticed 'Macintosh HD' in the second browser window screen-shot and decided that I should read the instructions - for a change.
I had all the relevant ingredients right there, my Mac Mini running OS X and the Firefox browser. I unwrapped the lead, plugged it into the PCB and the Mac and, in a couple of seconds, the MBED image appeared on my desktop. I double-clicked on it and opened the MBED.HTM file. Instantly, the mbed microcontroller page appeared, with the 'create new account' link at the top. Creating the account was so easy that I hardly felt that it was done, but that was typical of the experience up to that point.
The next thing was to find out how the device worked. I started with the Handbook, as I didn't get a response from the Forum or the Cookbook links, at that time. I selected 'getting started' from the Handbook and downloaded the 'Hello World.bin' file to my machine. I dragged it into the mbed disc image and watched the Status LED flash as the program was loaded. I then pressed the 'Reset' button and observed the Status LED flash in a more 'determined' way, as it wrote to the Flash memory of the LPC2368, I guess. The Status LED stopped flashing and the program ran, flashing LED1.
Next, I loaded the compiler from the links at the top right of the mbed.co.uk page and, right clicking on the 'My Programs' icon in the Program Workspace, selected 'new program', gave it a name in the dialog box, and the compiler reported that it was creating a program. The code that appeared was from the 'Hello World' program, that seems to be the default. I tried simply altering the number of the LED flashed by the program, from LED1 to LED4, and clicked on the 'compile' icon on the toolbar. The compilation succeeded and a new binary file appeared in the 'Compiler Output' window. I double-clicked on this file and selected 'save to disk' from the dialog box that appeared. The file landed on my desktop (but I guess that it could be directed straight to the mbed module) and I dragged it into the mbed image. Pressing the mbed microcontroller's 'Reset' button loaded the program and ran it, now flashing LED4.
Now, I've run into the first hurdle, I haven't done anything with C++ for over ten years, and I'm rusty. I've used 'C' to develop a data logging application but have never considered that I'm great at high-level languages. I was brought up on assembler - in Hex - lovely if you're a bit geeky, but only practical if you've got lots of library code for interfacing with peripherals - not the done thing these days. I'm sure that I'll be able to get hold of some cookbook code and learn to understand it better.
Overall, I think that the whole concept of seeing the micro as a Flash drive and allowing multi-platform access to the compiler and documentation, via the web, is brilliantly simple and extremely accessible without the need for software installations, that can be problematic. Virtually everyone has a browser that works and, if you haven't, a suitable one can be installed free. I'm pleased that it works on the Mac as, if I'd had to drag out the Windows machine I would have had to spend money on anti-virus software, etc. My PC is only used as a development system now, and never gets connected to the net. Just for the fun of it, I think I'll try accessing the mbed facilities through my old RiscOS machine. I've got a couple of decent browsers for it.
There's just one thing about the hardware, that I'll have to check up against the data sheet for the LPC2368. It seems that the SD card lines might not be available on the DIL pins, but I may be mistaken. They would be really useful in data logging applications, which I'm fond of.
Next task - brush up on C++ and have a look at the cookbook to help me to get to grips with it.
Thanks for letting me play with this very promising system.
Rennie
Dear Beta Testers,
You wake up excited, jump out of bed and run downstairs! Yay, a little package has arrived; it's like Christmas has come early :D So you play and all is wonderful... until you are reminded you need to write a thank you note. "Oh mum, do I have to?". The answer, as always, is yes!
So the thank you note we require is a little different. The aim is for you to capture all the successes, dead-ends, confusions, errors, surprises, good/bad points that happen during the first experience with mbed. Try to make your notes very soon after (or during) starting, as the subtle aspects will be forgotten very quickly. To make the first minutes as intuitive and successful as possible, we need to feel all the pains (however small). So what went well, what confused you, what would you change, what works and should stay the same etc.
We'll aim to keep this thread as the "first five minutes" thread, so only the reports (and any responses) in this one if possible; for other questions/queries/observations as you dive deeper, please just start a new thread so we can keep this distinct. No one on the forum bites, so please don't hold back :)
Happy testing!
Simon