mbed reference links
Putting together a page of reference data I've found useful in the course of mbed development.
General Coding Practices
- Sharing hardware definitions between multiple files - this gave me some trouble on the mbed, not sure why. I feel like I was able to do it fine on other platforms. Maybe I'm just a bit rusty...
mbed Compiler
- List of compiler data types
- checking for memory available, and malloc issues - particularly helpful is
Import libraryAvailableMemory
Function to calculate the memory available for malloc
- Timer Resources - about how the mbed libs use the timer internally. Check this post for list of interrupt names.
- "Getting Closer to the Hardware" - nice writeup by AJK about writing lower-level code
libs, etc
- I was trying to write something like log4c, but I got hung up on the v*printf syntax (also I was using the USB serial port, ick!) But a few weeks afterwards, snatch59 wrote DebugTrace (proper program page linked from here) which did what I was trying to do with v*printf, so now I have a log4c clone working. I should share it when I get done with this project and have some time to clean it up.
- serial input processing - /users/paulg/programs/CanonicalInputProcessing/lq042x CLI-type interface
mbed Hardware
RTC
- http://mbed.org/users/chris/notebook/rtc-battery-backup-current/ - hardware notes about using a coin cell for RTC backup. Conclusion: if your board has D3 placed, remove it when using a battery backup, otherwise the leakage current will be pretty high.
Watchdog Timer / WDT
- main cookbook page
- forum thread discussing implementation
- WDT low-level implementation by Simon Ford
- WDT driver wrapper by Christian Lerche
System Clocking
Bootloader/ISP
- re-entering ISP mode from user code... code: here
LPC1768 Additional Features
- using LPC pins not available on the mbed - what's up with those #defines anyway, aren't they kind of self-referential? and if not, then why are they necessary - couldn't you just use the pin names without those defines? sigh.
Please log in to post comments.