Hi, I am trying to draw sensor data to my screen. If I just call
GrStringDraw(&sContext, "Test : 0.0", -1, 10, 30, 0);
it will work no problem. However trying to call
char buf[64];
float i = 2.232;
sprintf(buf, "Test: %f", i);//
GrContextFontSet(&sContext, &g_sFontCm14);
GrStringDraw(&sContext, buf, -1, 10, 30, 0);
I get the error
FSR = 0x0004
HFSR = 0x40000000
DFSR = 0x0000000b
MMAR = 0xe000ed34
BFAR = 0xe000ed38
AFSR = 0x00000000
Terminating execution...
Does anyone know why I would be getting this issue? I can't solve it as I have attempted similar tasks before without error.
EDIT: I have now found that if I use sprintf with a integer it's no problem, however, a float will still crash