This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Sprintf function Problem in TM4C1294

Sprintf() is not working with TM4C1294. Please help!!! Here Is my code:

#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "inc/hw_memmap.h"
#include "driverlib/debug.h"
#include "driverlib/gpio.h"
#include "driverlib/rom.h"
#include "driverlib/rom_map.h"
#include "driverlib/interrupt.h"
#include "driverlib/sysctl.h"
#include "driverlib/fpu.h"

void function(void)

{

char String[10];
float Float=123456.789;

FPULazyStackingEnable();
ROM_FPUEnable();

 sprintf(String,"%.2f",Float);

}

clock and other peripherals are initialised. But if I try to debug this , the watchdog resets the controller, which means the controller hangs. How do I solve this problem?

Regards,

Girish.