This program will kill your mbed LPC1114FN28. Don't set dp23 as DigitalOut!! Don't run this program.

Dependencies:   mbed

You can see a source program for your reference.
But please do not run this program in your mbed board!!
Don't set dp23(nR) pin as DigitalOut!!!
Please also refer following Note.
http://developer.mbed.org/users/kenjiArai/notebook/lpc1114fn28---suggestion-for-improvement/#

main.cpp

Committer:
kenjiArai
Date:
2014-11-15
Revision:
1:bf73d036c0de
Parent:
0:a18f5223f8a6

File content as of revision 1:bf73d036c0de:

/*
 * mbed Application program for the mbed
 *      !!!This is very dangerous program!!!
 *      Just check this source file and don't run on the mbed LPC1114FN28
 *  by Kenji Arai / JH1PJL
 *      http://mbed.org/users/kenjiArai/
 *      Created: Nobember  15th, 2014
 */

#include "mbed.h"

#define KILL    0

DigitalOut  myled(dp28);    // LED for Debug
// This is a problem!! dp23 is pin23, PIO0_0 and assigned for RESET.
DigitalOut  chip_will_die(dp23);    // DON'T SET PIN23 OUTPUT MODE

int main() {
    while (true){
        wait(1.0);
        myled = !myled;
        chip_will_die = KILL;
    }
}
#error "Don't copy binary file into the mbed !!!!!"
#error "Don't use dp23 as output!!!!!!!"

// You CANNOT use the mbed chip after copying bin file into the mbed!!!
// After run this program, you cannot run any other program due to RESET is always zero!!!
// You cannot use LPC1114 chip and you need special resucue for recovery!!!