lpcware

LPCXpresso LPC1114: Debug doesn't work

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by mc_veter on Mon May 02 00:49:23 MST 2011
At Debug deduces the message: "02:Failed on connect: Ee(07). Bad ASK returned from status - wire error.:"
It has begun after code writing:

        //AD4
LPC_IOCON->SWDIO_PIO1_3 &= ~0x00;   
LPC_IOCON->SWDIO_PIO1_3 |=  0x00;   
//AD5
LPC_IOCON->PIO1_4 &= ~0x07;   
LPC_IOCON->PIO1_4 |=  0x00;   
//P1.5
LPC_IOCON->PIO1_5 &= ~0x07;   
LPC_IOCON->PIO1_5 |=  0x00;   
//P1.8
LPC_IOCON->PIO1_8 &= ~0x07;   
LPC_IOCON->PIO1_8 |=  0x00;   
//P0.6
LPC_IOCON->PIO0_6 &= ~0x07;   
LPC_IOCON->PIO0_6 |=  0x00;   
//P0.10
LPC_IOCON->SWCLK_PIO0_10 &= ~0x00;   
LPC_IOCON->SWCLK_PIO0_10 |=  0x00;   
//P3.0
LPC_IOCON->PIO3_0 &= ~0x07;   
LPC_IOCON->PIO3_0 |=  0x00;   
//P3.1
LPC_IOCON->PIO3_1 &= ~0x07;   
LPC_IOCON->PIO3_1 |=  0x00;   

                //AD4
GPIOSetDir( 1, 3, 1 );
GPIOSetValue( 1, 3, 0 );
//AD5
GPIOSetDir( 1, 4, 1 );
GPIOSetValue( 1, 4, 0 );
//P1.5
GPIOSetDir( 1, 5, 1 );
GPIOSetValue( 1, 5, 0 );
//P1.8
GPIOSetDir( 1, 8, 1 );
GPIOSetValue( 1, 8, 0 );
//P0.6
GPIOSetDir( 0, 6, 1 );
GPIOSetValue( 0, 6, 0 );
//P0.10
GPIOSetDir( 0, 10, 1 );
GPIOSetValue( 0, 10, 0 );
//P3.0
GPIOSetDir( 3, 0, 1 );
GPIOSetValue( 3, 0, 0 );
//P3.1
GPIOSetDir( 3, 1, 1 );
GPIOSetValue( 3, 1, 0 );

I wanted to draw these pins as outputs. I changing the pin assignments for swd which disables debug.

How to recover operation LPC1114?

Outcomes