Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
以下のファイルオープン・クローズを繰り返すプログラムを実行すると、 146回ループ後にプログラムのリセットが発生するのですが、 なぜでしょうか? (ちなみに使用しているMBEDはLPC11U24です。)
#include "mbed.h" LocalFileSystem SeqFile("Local"); int main() { FILE *fp; printf("START\n"); wait(0.1); int i = 1; while(1){ fp = fopen("/Local/TEST.csv", "r"); printf("%d\n",i); wait(0.1); fclose(fp); i++; } }