LPCXPRESSO LPC1769 - Cannot halt processor

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

LPCXPRESSO LPC1769 - Cannot halt processor

502 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by masterboy on Mon Feb 04 00:22:30 MST 2013
Hi,

I bought LPCXpresso LPC1769 last week, but I have a problem with debbug my simple program:


#ifdef __USE_CMSIS
#include "LPC17xx.h"
#endif

#include <cr_section_macros.h>
#include <NXP/crp.h>

__CRP const unsigned int CRP_WORD = CRP_NO_CRP ;

int main(void) {

LPC_GPIO0->FIODIR = 0xFFFFFFFF;
LPC_GPIO0->FIOSET = 0xFFFFFFFF;

volatile static int i = 0 ;

while(1) {
i++ ;
}

return 0 ;

}



[B]Debbug message:

Cannot halt processor
02: Failed on connect: Ep(04). Cannot halt processor.
Emu(0): Conn&Reset. Was: None. DpID: 2BA01477. Info: WIN64HS12[/B]

What is wrong? What can I do?
0 Kudos
7 Replies

413 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kaermel on Tue Feb 12 02:42:49 MST 2013
P2.10 (ISP mode pin) was floating and that was the cause.
Thank you for your help!
0 Kudos

413 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Tue Feb 12 02:34:51 MST 2013

Quote: kaermel

[LIST]
[*]custom board with Cortex 10-pin header; schematic checked and seems to be correct
[/LIST]


Check it again, and again, and again until you find your mistake. Check power, check termination (esp RESET and ISP), check signal routing.
0 Kudos

413 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Feb 12 02:17:19 MST 2013

Quote: kaermel
What can be the source of the problem?



It's either hardware or software :rolleyes:

Did you use UART bootloader (and FlashMagic) to check your brand new board :confused:
0 Kudos

413 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kaermel on Tue Feb 12 02:03:19 MST 2013
I have quite the same problem as masterboy has. My error message is:

Cannot halt processor
02: Failed on connect: Ep(04). Cannot halt processor.
Emu(0): Conn&Reset. Was: None. DpID: 2BA01477. Info: LPCLINK_1_1
I work with:

[LIST]
[*]LPCXpresso v5.1.0 [Build 2048] [2013-02-05] for Linux
[*]MCU: LPC1788
[*]project built by wizard: dummy C project for LPC177x_8x with CMSISv1p30_LPC177x_8x library (V1.3 (Jun 16, 2011))
[*]custom board with Cortex 10-pin header; schematic checked and seems to be correct
[/LIST]
I have not succeed to write any code into MCU, so it is still brand new.

What can be the source of the problem?
0 Kudos

413 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by masterboy on Mon Feb 04 12:22:33 MST 2013

Quote: tarik1985
:confused:
hello masterboy,
i am new with lpcxpresso 1769, i want to create my  first program but i need a library c ,i use lpcxprsso software but i  don't now how to begin.

thanks



Hi tarik1985, it is very simple, but ... First, you study hardly datasheet of LPC1769. It has about 800 pages, but It is funny ;)) Then study this PDF about LPCXpresso .

Good luck ;)
0 Kudos

413 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Feb 04 05:13:13 MST 2013

Quote: tarik1985
:confused:...i use lpcxprsso software but i  don't now how to begin.



Then use a Tutorial :confused:

See #2 of http://knowledgebase.nxp.com/showthread.php?p=19050
0 Kudos

413 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tarik1985 on Mon Feb 04 04:03:29 MST 2013
:confused:
hello masterboy,
i am new with lpcxpresso 1769, i want to create my  first program but i need a library c ,i use lpcxprsso software but i  don't now how to begin.

thanks
0 Kudos