LPC812(OM13069 Smartphone Quick-Jack solution) can't download code to flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC812(OM13069 Smartphone Quick-Jack solution) can't download code to flash

653 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by j800514 on Sun May 29 19:00:34 MST 2016
HI

I use LPC-Link2 to download code to flash on OM13069 board

Used in the past are normal about NXP source code provided

But after I add UART function in source code,i can not download to board

It seems to find chips

In the keil Error message :JTAG/SWD Communication Failure

P.S. Other same board is the normal use , alone after increase UART Board is bad

what can i  solve about SWD can't debug the board ? 


there is my add to uart code:

void UART_Init(void)
{
LPC_SWM->PINENABLE0=(18uL<<24) | (19uL<<16) | (10uL<<8) | (4uL<<0);
//LPC_SWM->PINENABLE0 |= (1uL<<0);

LPC_SYSCTL->SYSAHBCLKCTRL |= (1uL<<14);
LPC_SYSCTL->PRESETCTRL &= ~(1uL<<3);
LPC_SYSCTL->PRESETCTRL |= (1uL<<3);

LPC_SYSCTL->UARTFRGDIV=0xFF;
LPC_SYSCTL->UARTFRGMULT=207;
LPC_SYSCTL->UARTCLKDIV=18;  //baudrate:115200bps

LPC_USART0->CFG &= ~(1uL<<0);
LPC_USART0->BRG = 0;
LPC_USART0->CFG = (1uL<<0) | (1uL<<2);
}



I think I can use ISP to repair it , is right ?

but i don't know what to do it on this board
Labels (1)
0 Kudos
6 Replies

443 Views
houbo
Contributor I

Hello , i  have met the same problem with you.When i try to download the project to the board, it didn't work and now the board can't work(with one LED lighting and can't communicate with the phone) .I try to enter ISP model and reset the board,but it still didn't work.Did i do something wrong.Can you tell me how to enter ISP model on this board.

0 Kudos

443 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos

443 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vtw.433e on Mon May 30 07:05:23 MST 2016
Because you have done smething wrong. Use a debugger to find out what you did to break the chip.
0 Kudos

443 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by j800514 on Mon May 30 01:49:08 MST 2016
Yes , you are right.

I have found a way to enter isp mode and erase the chip .

Why do I increase the UART in nxp sourse code cause this situation ?

0 Kudos

443 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vtw.433e on Sun May 29 22:36:00 MST 2016
Enter ISP mode. It is described in the FAQs here.
0 Kudos

443 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by j800514 on Sun May 29 19:00:46 MST 2016

Quote: j800514
HI

I use LPC-Link2 to download code to flash on OM13069 board

Used in the past are normal about NXP source code provided

But after I add UART function in source code,i can not download to board

It seems to find chips

In the keil Error message :JTAG/SWD Communication Failure

P.S. Other same board is the normal use , alone after increase UART Board is bad

what can i  solve about SWD can't debug the board ? 


there is my add to uart code:

void UART_Init(void)
{
LPC_SWM->PINENABLE0=(18uL<<24) | (19uL<<16) | (10uL<<8) | (4uL<<0);
//LPC_SWM->PINENABLE0 |= (1uL<<0);

LPC_SYSCTL->SYSAHBCLKCTRL |= (1uL<<14);
LPC_SYSCTL->PRESETCTRL &= ~(1uL<<3);
LPC_SYSCTL->PRESETCTRL |= (1uL<<3);

LPC_SYSCTL->UARTFRGDIV=0xFF;
LPC_SYSCTL->UARTFRGMULT=207;
LPC_SYSCTL->UARTCLKDIV=18;  //baudrate:115200bps

LPC_USART0->CFG &= ~(1uL<<0);
LPC_USART0->BRG = 0;
LPC_USART0->CFG = (1uL<<0) | (1uL<<2);
}



I think I can use ISP to repair it , is right ?

but i don't know what to do it on this board


0 Kudos