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/#
Revision 1:bf73d036c0de, committed 2014-11-15
- Comitter:
- kenjiArai
- Date:
- Sat Nov 15 09:39:59 2014 +0000
- Parent:
- 0:a18f5223f8a6
- Commit message:
- Added caution
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- 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!!!
--- a/mbed.bld Sat Jul 26 22:26:06 2014 +0000 +++ b/mbed.bld Sat Nov 15 09:39:59 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/6213f644d804 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89 \ No newline at end of file