This program will kill your mbed LPC1114FN28. Don't set dp23 as DigitalOut!! Don't run this program.
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/#
Diff: main.cpp
- Revision:
- 1:bf73d036c0de
- Parent:
- 0:a18f5223f8a6
--- a/main.cpp Sat Jul 26 22:26:06 2014 +0000 +++ b/main.cpp Sat Nov 15 09:39:59 2014 +0000 @@ -2,26 +2,29 @@ * 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 */ -#if 1 #include "mbed.h" -#define KILL 1 +#define KILL 0 DigitalOut myled(dp28); // LED for Debug // This is a problem!! dp23 is pin23, PIO0_0 and assigned for RESET. -DigitalOut p_die(dp23); // DON'T SET PIN23 OUTPUT MODE +DigitalOut chip_will_die(dp23); // DON'T SET PIN23 OUTPUT MODE int main() { while (true){ wait(1.0); myled = !myled; - p_die = KILL; + chip_will_die = KILL; } } -#endif +#error "Don't copy binary file into the mbed !!!!!" +#error "Don't use dp23 as output!!!!!!!" -#warning "Don't copy binary file into the mbed !!!!! // You CANNOT use the mbed chip after copying bin file into the mbed!!! -// You need to change the microprocessor chip (LPC1114FN28)!!! +// 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!!!