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.
If I compile the following program and load it onto my MK64F, it does NOT run??? if I uncomment the i==14 line, it compiles and runs just fine ???
#include "mbed.h" #include <stdint.h> float Qw12x12[12][12]; // covariance matrix Qw DigitalOut gpo(D0); DigitalOut led(LED_RED); void fcn() { int8_t i, j; for (i = 0; i < 12; i++) { for (j = 0; j < 12; j++) { Qw12x12[i][j] = 0.0F; // if (i==14) printf("ij %d %d\n",i,j); } } } int main() { fcn(); printf("going\n"); while (true) { gpo = !gpo; // toggle pin led = !led; // toggle led wait(0.2f); } }