LPC1769 Speed definition Error

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

LPC1769 Speed definition Error

6,340 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Sat Feb 23 14:19:40 MST 2013
Hi everybody !
I have a problem with the speed definition that LPCXPRESSO calculates...
I'am Using a 12 MHz osc. to run CPU with 100 MHz Clk...
I set V[FONT=Arial][SIZE=2]ector Cath option but it seem[SIZE=2]s it doe[SIZE=2]sn't worked.

[/SIZE][/SIZE][/SIZE][/FONT]Here is the log:
--------------------------------------------------------------------------------------------
[FONT=Arial][SIZE=2]LPCXpresso Debug Driver v5.0 (Dec 18 2012 17:03:30 build 1101)
Looked for chip XML file in C:/nxp/LPCXpresso_5.0.14_1109/lpcxpresso/bin/LPC1769.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_5.0.14_1109/lpcxpresso/bin/nxp_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_5.0.14_1109/lpcxpresso/bin/crt_directory.xml
nSRST assert (if available)
Executing in user flash.
Emu(0): Conn&Reset. DpID: 2BA01477. Info: WIN64HS12
SWD Frequency: 3000 KHz. RTCK: False. [B][COLOR=Red]Vector catch: True.[/COLOR][/B]
Packet delay: 0  Poll delay: 0.
NXP: LPC1769  Part ID: 0x26113F37
Connected: was_reset=false. was_stopped=true
v Registered license, download limit of 128K
Writing 22388 bytes to 0000 in Flash ([B][COLOR=Red]assumed clock: 4.0MHz[/COLOR][/B])
Erased/Wrote page  0-5 with 22388 bytes in 4402msec
Flash write Done
Writing 23216 bytes to 5778 in Flash ([B][COLOR=Red]assumed clock: 4.0MHz[/COLOR][/B])
[B][COLOR=Red]Verify of Flash failed at 00005704.
15: Target error from Commit Flash write: Ef(5). Flash verify operation failed.[/COLOR][/B]
Stopped: Breakpoint #1[/SIZE][/FONT]
[FONT=Arial][SIZE=2]--------------------------------------------------------------------------------------------

[SIZE=2]Any ideas ??
[SIZE=2]Thx in advance.
[SIZE=2]Troubled[SIZE=2]-[/SIZE]Gus.

[/SIZE][/SIZE][/SIZE][/SIZE][/FONT]
0 Kudos
Reply
19 Replies

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Thu Feb 28 09:00:08 MST 2013

Quote: CodeRedSupport
Gustavo,

Contact Code Red Support directly. Follow the directions at:

http://www.code-red-tech.com/support.php

and reference this forum thread.

Regards,

CodeRedSupport


OK.
Thx !
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Feb 28 01:46:51 MST 2013
And when you contact us, please also send the map file generated when you build the problem image.

Regards,
CodeRedSupport
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Feb 27 23:33:53 MST 2013
Gustavo,

Contact Code Red Support directly. Follow the directions at:

http://www.code-red-tech.com/support.php

and reference this forum thread.

Regards,

CodeRedSupport
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Wed Feb 27 21:36:51 MST 2013
[FONT=Arial][SIZE=1]hi,
[SIZE=1][SIZE=1]This is the [B]same .axf file[/B] compil[SIZE=1]ed once and flashe[SIZE=1]d by [SIZE=1]3 methods[SIZE=1] (a)[SIZE=1],[/SIZE] (b) and (c).
[SIZE=1]Why I could run it from debugger ??
[SIZE=1]I [SIZE=1]notice the difference in SWD Frequency. I modified it from the configuration panel (See SWD.jpg) but [SIZE=1]it doesn't worked..
Ideas ?
[/SIZE][SIZE=1]Thx.
[SIZE=1]Gus[/SIZE]
[/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE]
[B]a. DEBUG FROM DEGUG ICON
----------------------------------------------------------------------------------------------------[/B]
LPCXpresso Debug Driver v5.0 (Feb 14 2013 02:02:03 build 1131)
Looked for chip XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/LPC1769.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/nxp_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/crt_directory.xml
Emu(0): Conn&Reset. DpID: 2BA01477. Info: WIN64HS12
[B]SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.[/B]
Packet delay: 0  Poll delay: 0.
NXP: LPC1769  Part ID: 0x26113F37
Connected: was_reset=false. was_stopped=false
v Registered license, download limit of 128K
Writing 24140 bytes to 0000 in Flash (assumed clock: 100.0MHz)
Erased/Wrote page  0-5 with 24140 bytes in 1819msec
Flash write Done
Writing 23216 bytes to 5E50 in Flash (assumed clock: 100.0MHz)
[B][COLOR=Red]IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
Verified-same page 5-11 with 23216 bytes in 1381msec[/COLOR][/B]
Flash write Done
nSRST assert (if available)
Executing in user flash.

Stopped: Breakpoint #1
----------------------------------------------------------------------------------------------------


[B]b. PROGRAM FLASH
crt_emu_cm3_nxp -g -2 -vendor=NXP -pLPC1769 -s250 -flash-load-exec="D:\Work\PRG\LPC\ACQ_Seed\ACQ_Seed\Debug\ACQ_Seed.axf"  -wire=winUSB[/B]
----------------------------------------------------------------------------------------------------
Ni: LPCXpresso Debug Driver v5.0 (Feb 14 2013 02:02:03 build 1131)
Pc: (  0) Reading remote configuration
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/LPC1769.xml

Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/crt_directory.xml

Pc: (  5) Remote configuration complete
Pc: ( 30) Emulator Connected
Pc: ( 40) Debug Halt
Pc: ( 50) CPU ID
Nc: Emu(0): Conn&Reset. DpID: 2BA01477. Info: WIN64HS12
Nc: [B]SWD Frequency: 250 KHz. RTCK: False. Vector catch: False.[/B]
Nc: Packet delay: 0  Poll delay: 0.
Nc: NXP: LPC1769  Part ID: 0x26113F37
Pc: ( 65) Chip Setup Complete
Nt: Connected: was_reset=false. was_stopped=false
Cr:v Registered license, download limit of 128K
Pc: ( 70) License Check Complete
Nt: Loading ELF file 'ACQ_Seed.axf' at location 00000000
Nt: Writing 47360 bytes to 0000 in Flash (assumed clock: 100.0MHz)
Pb: 1 of 2 (  0) Writing pages 0-7 at 0x00000000 with 32768 bytes
Ps: (  0) Page  0 at 00000000
Ps: ( 12) Page  0 at 00000000: 4096 bytes
Ps: ( 25) Page  1 at 00001000: 4096 bytes
Ps: ( 37) Page  2 at 00002000: 4096 bytes
Ps: ( 50) Page  3 at 00003000: 4096 bytes
Ps: ( 62) Page  4 at 00004000: 4096 bytes
Ps: ( 75) Page  5 at 00005000: 4096 bytes
Ps: ( 87) Page  6 at 00006000: 4096 bytes
Ps: (100) Page  7 at 00007000: 4096 bytes
Nt: Verified-same page 0-7 with 32768 bytes in 1728msec
Pb: 2 of 2 ( 69) Writing pages 8-11 at 0x00008000 with 14592 bytes
Ps: (  0) Page  8 at 00008000
Ps: ( 28) Page  8 at 00008000: 4096 bytes
Ps: ( 56) Page  9 at 00009000: 4096 bytes
Ps: ( 84) Page 10 at 0000A000: 4096 bytes
Ps: (100) Page 11 at 0000B000: 2304 bytes
Nt: Verified-same page 8-11 with 14592 bytes in 875msec
[B][COLOR=SeaGreen]Pb: (100) Finished writing Flash successfully.
Nt: Flash write Done[/COLOR][/B]
Nc: nSRST assert (if available)
Nc: Executing in user flash.
----------------------------------------------------------------------------------------------------
[/SIZE][/FONT][FONT=Arial][SIZE=1][/SIZE][/FONT]
[FONT=Arial][SIZE=1][B]c. DEBUG FROM DEGUG ICON (SWD Freq. modified to 250 KHz)
[/B][/SIZE][/FONT][FONT=Arial][SIZE=1][FONT=Arial][SIZE=1]----------------------------------------------------------------------------------------------------
[/SIZE][/FONT][FONT=Arial][SIZE=1][/SIZE][/FONT]LPCXpresso Debug Driver v5.0 (Feb 14 2013 02:02:03 build 1131)
Looked for chip XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/LPC1769.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/nxp_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/crt_directory.xml
Emu(0): Conn&Reset. DpID: 2BA01477. Info: WIN64HS12
[B]SWD Frequency: 250 KHz. RTCK: False. Vector catch: False.[/B]
Packet delay: 0  Poll delay: 0.
NXP: LPC1769  Part ID: 0x26113F37
Connected: was_reset=false. was_stopped=false
v Registered license, download limit of 128K
Writing 24140 bytes to 0000 in Flash (assumed clock: 100.0MHz)
Verified-same page 0-5 with 24140 bytes in 1278msec
Flash write Done
Writing 23216 bytes to 5E50 in Flash (assumed clock: 100.0MHz)
[B][COLOR=Red]IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
IAPExecute Error: Ef(9). Flash erase or write operation aborted.
Verified-same page 5-11 with 23216 bytes in 1409msec[/COLOR][/B]
Flash write Done
nSRST assert (if available)
Executing in user flash.

Stopped: Breakpoint #1
[/SIZE][/FONT][FONT=Arial][SIZE=1]----------------------------------------------------------------------------------------------------

[/SIZE][/FONT][FONT=Arial][SIZE=1]


[/SIZE][/FONT]
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Wed Feb 27 14:22:14 MST 2013

Quote: Zero

Then start to work systematically :eek:
#1 If flashing with SWD fails, use ISP and decide if it's a SWD problem or not ;)


OK.
I saw your video that helps (www.youtube.com/watch?v=chFv1EiZcYo) :)
I've reset it in ISP mode and now I could flash the target:
[COLOR=SeaGreen][I]------------------------------------------
LPCXpresso Debug Driver v5.0 (Feb 14 2013 02:02:03 build 1131)
Looked for chip XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/LPC1769.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/nxp_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/crt_directory.xml
nSRST assert (if available)
Executing in user flash.
Emu(0): Conn&Reset. DpID: 2BA01477. Info: WIN64HS12
SWD Frequency: 3000 KHz. RTCK: False. Vector catch: True.
Packet delay: 0  Poll delay: 0.
NXP: LPC1769  Part ID: 0x26113F37
Connected: was_reset=false. was_stopped=true
v Registered license, download limit of 128K
Writing 48248 bytes to 0000 in Flash (assumed clock: 4.0MHz)
Erased/Wrote page  0-7 with 32768 bytes in 4954msec
Verified-same page 8-11 with 15480 bytes in 872msec
Flash write Done
nSRST assert (if available)
Executing in bootloader.

Stopped: Breakpoint #1
------------------------------------------[/I][/COLOR]

Could you tell me what I did wrong before that I could not flash it with SWD ?
Thanks for the help to you, Zero, and CodeRedSupport !
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Feb 26 17:58:15 MST 2013
Gustavo,

It seems you've changed/rebuilt the image since you  posted the .axf file, and captured the trace below. I've looked at your  ELF image, and see nothing wrong with it. I can flash the image without  trouble using the flash dialog (independent of GDB).

Code Red has identified one issue which requires investigation. During a debug session, GDB sends the image to  the debug utility for flashing. For the image you posted, the  length delivered to the debug utility by GDB appears to be 4 bytes less  than what the flash dialog reports for the same image file.

Regards,

CodeRedSupport
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Feb 26 16:49:29 MST 2013

Quote: Gustavo
This stuff is driving me mad..... :(



Then start to work systematically :eek:

#1 If flashing with SWD fails, use ISP and decide if it's a SWD problem or not ;)

#2 Seperate LPC-link and target board. Supply target board with 3.3V and flash it via ISP. Your target board is a simple LPC1769. If ISP isn't able to flash it you've a damaged chip and are barking up the wrong tree :)
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Tue Feb 26 07:28:49 MST 2013
Hi.
I've checked again but still with problems.
The error code indicates inssufficient USB ( support.code-red-tech.com/CodeRedWiki/CommitFlashWrite ) power capability from USB... I've powered the board with an aditional regulator.. [COLOR=Red][B]It is not a Power supply problem....[/B][/COLOR]
The odd thing is with some projects writes ok...
This stuff is driving me mad..... :(
-----------------------------------------------------------------------------------------------
LPCXpresso Debug Driver v5.0 (Feb 14 2013 02:02:03 build 1131)
Looked for chip XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/LPC1769.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/nxp_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/crt_directory.xml
nSRST assert (if available)
Executing in user flash.
Emu(0): Conn&Reset. DpID: 2BA01477. Info: WIN64HS12
SWD Frequency: 3000 KHz. RTCK: False. Vector catch: True.
Packet delay: 0  Poll delay: 0.
NXP: LPC1769  Part ID: 0x26113F37
Connected: was_reset=false. was_stopped=true
v Registered license, download limit of 128K
Writing 24676 bytes to 0000 in Flash (assumed clock: 4.0MHz)
Erased/Wrote page  0-6 with 24676 bytes in 1991msec
Flash write Done
Writing 23216 bytes to 6068 in Flash (assumed clock: 4.0MHz)
Verify of Flash failed at 00006004.
[B][COLOR=Red]15: Target error from Commit Flash write: Ef(5). Flash verify operation failed.[/COLOR][/B]
Stopped: Breakpoint #1
(crt_emu_cm3_nxp) terminating due to request from GDB
SWD Frequency (Final): 3000 KHz.
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Feb 26 03:56:19 MST 2013
Flashing is no problem here, looks like a valid axf :)

Quote:
Ni: LPCXpresso Debug Driver v5.0 (Feb 14 2013 02:02:03 build 1131)
Pc: (  0) Reading remote configuration
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/LPC1769.xml

Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/nxp/LPCXpresso_5.1.2_2065/lpcxpresso/bin/crt_directory.xml

Pc: (  5) Remote configuration complete
Pc: ( 30) Emulator Connected
Pc: ( 40) Debug Halt
Pc: ( 50) CPU ID
Nc: Emu(0): Conn&Reset. DpID: 2BA01477. Info: HID64HS12
Nc: [COLOR=Red]SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False[/COLOR].
Nc: Packet delay: 0  Poll delay: 0.
Nc: NXP: LPC1769  Part ID: 0x26113F37
Pc: ( 65) Chip Setup Complete
Nt: Connected: was_reset=false. was_stopped=false
Cr:v Registered license, download limit of 128K
Pc: ( 70) License Check Complete
Nt: Loading ELF file 'ACQ_Seed.axf' at location 00000000
Nt: Writing 47928 bytes to 0000 in Flash (assumed clock: 100.0MHz)
Pb: 1 of 2 (  0) Writing pages 0-7 at 0x00000000 with 32768 bytes
Ps: (  0) Page  0 at 00000000
Ps: ( 12) Page  0 at 00000000: 4096 bytes
Ps: ( 25) Page  1 at 00001000: 4096 bytes
Ps: ( 37) Page  2 at 00002000: 4096 bytes
Ps: ( 50) Page  3 at 00003000: 4096 bytes
Ps: ( 62) Page  4 at 00004000: 4096 bytes
Ps: ( 75) Page  5 at 00005000: 4096 bytes
Ps: ( 87) Page  6 at 00006000: 4096 bytes
Ps: (100) Page  7 at 00007000: 4096 bytes
Nt: Verified-same page 0-7 with 32768 bytes in 1624msec
Pb: 2 of 2 ( 68) Writing pages 8-11 at 0x00008000 with 15160 bytes
Ps: (  0) Page  8 at 00008000
Ps: ( 27) Page  8 at 00008000: 4096 bytes
Ps: ( 54) Page  9 at 00009000: 4096 bytes
Ps: ( 81) Page 10 at 0000A000: 4096 bytes
Ps: (100) Page 11 at 0000B000: 2872 bytes
Nt: Verified-same page 8-11 with 15160 bytes in 811msec
Pb: (100) [COLOR=Red]Finished writing Flash successfully.[/COLOR]
Nt: Flash write Done
Nc: nSRST assert (if available)
Nc: Executing in user flash.

0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Tue Feb 26 03:34:27 MST 2013

Quote: CodeRedSupport

......If you'd like to post your .axf file, I can have a look.

CodeRedSupport


Thx CodeRedSupport. Here's the axf file.

Meanwhile, I'll upgrade LPCXPRESSO to version 5.1.2.
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Feb 25 17:35:27 MST 2013
The assumed clock is whatever is calculated by the debug utility. In  this case, the IAP flash API needs to know the core clock frequency to  program flash. Not all bootrom flash APIs require this information. The  reason you see 4 MHz reported, is (in one instance) you specified vector  catch (i.e. reset vector catch) which instructs the debugger to include  additional reset processing (of which vector catch is one part of)  during connection. After reset, the core clock is the IRC value, 4 MHz,  so that's why you see it as Zero points out.

Having said all that,  the clock setting is unrelated to your problem. It appears there's an  issue handling the gap in your image. I can't reproduce a problem here using a similar image. If you'd like to post your .axf file, I can have a look. In the meantime, I recommend you update to the LPCXpresso 5.1.2 release.

Regards,

CodeRedSupport


Quote: Gustavo
Zero,
please tell me...
1. Could you explain me what is the "assumed clock" ? How it is calculated ?

2. When I activate the Vector catch option it decrease to 4 MHz... What is the "Vector Catch" Option ?

Here's the log...
thanks in advance,
Gus.

[B]--------------------------------------------------------------------------------------------------------[/B]
LPCXpresso Debug Driver v5.0 (Dec 18 2012 17:03:30 build 1101)
Looked for chip XML file in C:/nxp/LPCXpresso_5.0.14_1109/lpcxpresso/bin/LPC1769.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_5.0.14_1109/lpcxpresso/bin/nxp_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_5.0.14_1109/lpcxpresso/bin/crt_directory.xml
Emu(0): Conn&Reset. DpID: 2BA01477. Info: WIN64HS12
SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Packet delay: 0  Poll delay: 0.
NXP: LPC1769  Part ID: 0x26113F37
Connected: was_reset=false. was_stopped=false
v Registered license, download limit of 128K
Writing 24772 bytes to 0000 in Flash ([B][COLOR=Red]assumed clock: 100.0MHz[/COLOR][/B])
Erased/Wrote page  0-6 with 24772 bytes in 1884msec
Flash write Done
Writing 23216 bytes to 60C8 in Flash ([COLOR=Red][B]assumed clock: 100.0MHz[/B][/COLOR])
[B][COLOR=Red]IAPExecute Error: Ef(9). Flash erase or write operation aborted.
15: Target error from Commit Flash write: Ef(9). Flash erase or write operation aborted.[/COLOR][/B]
[B]--------------------------------------------------------------------------------------------------------

[/B]

0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Feb 25 16:49:20 MST 2013
AFAIR SWD is detecting the actual clock speed of the target. So if you read

Quote:

Writing 1048 bytes to 0000 in Flash (assumed clock: 100.0MHz)

your target is running with 100MHz. 4MHz indicates IRC :)

That's not always working. Therefore 'Vector catch' mode is more reliable. It's resetting (via hardware reset) your target twice (before and after flashing) instead once and obviously using IRC while programming :eek:
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Mon Feb 25 15:09:12 MST 2013
Zero,
please tell me...
1. Could you explain me what is the "assumed clock" ? How it is calculated ?

2. When I activate the Vector catch option it decrease to 4 MHz... What is the "Vector Catch" Option ?

Here's the log...
thanks in advance,
Gus.

[B]--------------------------------------------------------------------------------------------------------[/B]
LPCXpresso Debug Driver v5.0 (Dec 18 2012 17:03:30 build 1101)
Looked for chip XML file in C:/nxp/LPCXpresso_5.0.14_1109/lpcxpresso/bin/LPC1769.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_5.0.14_1109/lpcxpresso/bin/nxp_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_5.0.14_1109/lpcxpresso/bin/crt_directory.xml
Emu(0): Conn&Reset. DpID: 2BA01477. Info: WIN64HS12
SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Packet delay: 0  Poll delay: 0.
NXP: LPC1769  Part ID: 0x26113F37
Connected: was_reset=false. was_stopped=false
v Registered license, download limit of 128K
Writing 24772 bytes to 0000 in Flash ([B][COLOR=Red]assumed clock: 100.0MHz[/COLOR][/B])
Erased/Wrote page  0-6 with 24772 bytes in 1884msec
Flash write Done
Writing 23216 bytes to 60C8 in Flash ([COLOR=Red][B]assumed clock: 100.0MHz[/B][/COLOR])
[B][COLOR=Red]IAPExecute Error: Ef(9). Flash erase or write operation aborted.
15: Target error from Commit Flash write: Ef(9). Flash erase or write operation aborted.[/COLOR][/B]
[B]--------------------------------------------------------------------------------------------------------

[/B]
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Sun Feb 24 19:39:24 MST 2013
Hi Zero,
The board is working fine. I downloaded another project with no problem....
Still looking for a solution to flash the target with the correct app.
... I'll let U note if something get better.... :(
Thx 4 by now...
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Sun Feb 24 00:02:43 MST 2013
#1 If you use a simple sample (SysTick) or create a new LPCXpresso project with default settings there's no reason why your board shouldn't work.

#2 Usually [COLOR=Red]switching to ISP[/COLOR] and trying to flash the board via SWD is enough to revive your board :)

#3 Sometimes that's not enough and your last hope is[COLOR=Red] using ISP[/COLOR] with [COLOR=Red]FlashMagic [/COLOR](http://www.flashmagictool.com/). Deleting and flashing via UART-ISP is very reliable and still working if SWD refuses to work ;) So if you haven't damaged or protected (CRP3) your board that's solving your problem. I've seen that several times :) If you add an UART-RS232 or UART-USB (See #15 of http://knowledgebase.nxp.com/showthread.php?t=1931, http://flic.kr/p/bCdFve, Argentina: http://www.openhacks.com/page/productos/id/6/title/A000014) that's done within a few minutes :)
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Sat Feb 23 19:32:35 MST 2013
The board I'm using is a LPC1769 Kit + LPC Link from embedded artist.. http://www.embeddedartists.com/products/lpcxpresso/lpc1769_xpr.php
I used until yesterday with no prob. so i believe there's a configuration problem or something else... IDK.
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Sat Feb 23 16:44:15 MST 2013
LPC-Link is lowering the speed if problems occur. Your SWD speed of 3000kHz is default speed (http://www.support.code-red-tech.com/CodeRedWiki/MultipleJtagDevices?highlight=%28speed%29 describes how to reduce SWD speed). Your flash writing problem looks like a hardware problem, but you are telling us nothing about your board :eek: so I can't help you.

If it's a new board and you are trying to flash it first time it's important to check the hardware ;) There a several hardware problems possible, which can  cause SWD failures :) To avoid a few of them a fast test is to use ISP via UART ;)
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Sat Feb 23 16:34:30 MST 2013
I've already read it.... but nothing new shows up there...
The fact is Why LPCXPRESSO configures a 4.00 MHz when originally uses a 100.0 MHz ???
These stuff is drivinig me nuts
0 Kudos
Reply

6,314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Sat Feb 23 14:27:58 MST 2013

Quote: Gustavo
[FONT=Arial][SIZE=2][SIZE=2]Any ideas ??
[/SIZE][/SIZE][/FONT]



#1 Switch to ISP :eek: http://www.support.code-red-tech.com/CodeRedWiki/DebugAccessChip

#2 Check your board :confused:
0 Kudos
Reply