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/#

Committer:
kenjiArai
Date:
Sat Nov 15 09:39:59 2014 +0000
Revision:
1:bf73d036c0de
Parent:
0:a18f5223f8a6
Added caution

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kenjiArai 0:a18f5223f8a6 1 /*
kenjiArai 0:a18f5223f8a6 2 * mbed Application program for the mbed
kenjiArai 0:a18f5223f8a6 3 * !!!This is very dangerous program!!!
kenjiArai 0:a18f5223f8a6 4 * Just check this source file and don't run on the mbed LPC1114FN28
kenjiArai 1:bf73d036c0de 5 * by Kenji Arai / JH1PJL
kenjiArai 1:bf73d036c0de 6 * http://mbed.org/users/kenjiArai/
kenjiArai 1:bf73d036c0de 7 * Created: Nobember 15th, 2014
kenjiArai 0:a18f5223f8a6 8 */
kenjiArai 0:a18f5223f8a6 9
kenjiArai 0:a18f5223f8a6 10 #include "mbed.h"
kenjiArai 0:a18f5223f8a6 11
kenjiArai 1:bf73d036c0de 12 #define KILL 0
kenjiArai 0:a18f5223f8a6 13
kenjiArai 0:a18f5223f8a6 14 DigitalOut myled(dp28); // LED for Debug
kenjiArai 0:a18f5223f8a6 15 // This is a problem!! dp23 is pin23, PIO0_0 and assigned for RESET.
kenjiArai 1:bf73d036c0de 16 DigitalOut chip_will_die(dp23); // DON'T SET PIN23 OUTPUT MODE
kenjiArai 0:a18f5223f8a6 17
kenjiArai 0:a18f5223f8a6 18 int main() {
kenjiArai 0:a18f5223f8a6 19 while (true){
kenjiArai 0:a18f5223f8a6 20 wait(1.0);
kenjiArai 0:a18f5223f8a6 21 myled = !myled;
kenjiArai 1:bf73d036c0de 22 chip_will_die = KILL;
kenjiArai 0:a18f5223f8a6 23 }
kenjiArai 0:a18f5223f8a6 24 }
kenjiArai 1:bf73d036c0de 25 #error "Don't copy binary file into the mbed !!!!!"
kenjiArai 1:bf73d036c0de 26 #error "Don't use dp23 as output!!!!!!!"
kenjiArai 0:a18f5223f8a6 27
kenjiArai 0:a18f5223f8a6 28 // You CANNOT use the mbed chip after copying bin file into the mbed!!!
kenjiArai 1:bf73d036c0de 29 // After run this program, you cannot run any other program due to RESET is always zero!!!
kenjiArai 1:bf73d036c0de 30 // You cannot use LPC1114 chip and you need special resucue for recovery!!!