Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

LM Flash Programmer - "Error - Unable to initialize target- 0"

$
0
0

Hi,

I have been using LM4F112E5 stellaris micro controller  for my application. I use the LM3S9b92 controller with 'LM flash programmer' to program the controller. 

While downloading the program,  I  have getting following error.  "Unable to initialize the target - 0"

I have written the following code for JTAG pins -

SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);
GPIODirModeSet(GPIO_PORTC_BASE, GPIO_PIN_0 |GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3, GPIO_DIR_MODE_OUT);
GPIOPadConfigSet(GPIO_PORTC_BASE,  GPIO_PIN_0 |GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_OD);

GPIOPinWrite(GPIO_PORTC_BASE, GPIO_PIN_0, 0);
GPIOPinWrite(GPIO_PORTC_BASE, GPIO_PIN_1, 0);
GPIOPinWrite(GPIO_PORTC_BASE, GPIO_PIN_2, 0);
GPIOPinWrite(GPIO_PORTC_BASE, GPIO_PIN_3, GPIO_PIN_3);

 when i download at first time, it get successfully programmed, but while downloading second time i got the above error.  please let me know what should be the problem.


Viewing all articles
Browse latest Browse all 262198

Trending Articles