Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
You are viewing an older revision! See the latest version
Homepage
LPC1114FN28 での動作不具合事例1¶
<概要>¶
LPC1114FN28をmbed化してプログラムして、”いか醤油ぽっぽ焼き"(http://mbed.org/users/okano/code/ika_shouyu_poppoyaki/)でプログラムの書き込み&起動を行おうとした場合に、書き込みには成功して、起動に失敗することがありました。原因は不明ですが、状況を報告します。
<内容>¶
LPC1114FN28のdp14(LED1)を点滅させるプログラムです。(http://mbed.org/users/suupen/code/LPC1114ErrorSample1/)(9行目で1秒待機、11行目でLED1の出力反転を行っています。
main.cpp
#include "mbed.h"
DigitalOut myled(LED1);
int main()
{
while(1) {
#if 0 // '1'ni site 9gyome no "wait(1.0)" wo yuuko ni suruto ugoku.
wait(1.0);
#endif
myled = !myled;
}
}
このプログラムで、9行目を無効にすると、”いか醤油ぽっぽ焼き”での起動に失敗します。

<推測>¶
原因の確定は出来ていません。 状況として、9行目のwait命令のほかに、変数への代入などに差換えても正常に実行できるので、短時間に同じ命令を実行する場合に不具合になるのではと推測しています。