Problem Program download with lpcexpresso 7.3

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

Problem Program download with lpcexpresso 7.3

1,551 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DieterNiesel on Tue Jul 15 10:05:26 MST 2014
I get following error when I am trying to download the executable to lpcxpresso1549 board

02: Failed on connect: Ee(36). Could not connect to core.

System ist win7-64 bit

when i am doing the same with version lpcxpresso 7.2 build 153 everything works.
The same board under linux with version 7.3 works prefect.

downloading a executable to lpcxpresso1769 board works also perfect.

Whats the problem ?
0 Kudos
Reply
9 Replies

1,519 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DieterNiesel on Fri Jul 18 06:56:52 MST 2014
ok thanks for your reply and investigation
0 Kudos
Reply

1,519 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Jul 18 06:51:22 MST 2014
OK. I *think* this is due to a bug in the CMSIS-DAP for that board and there is a new CMSIS-DAP image that is going to be released shortly that should fix this issue. In the meantime, please continue to use the Redlink image instead.
0 Kudos
Reply

1,519 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DieterNiesel on Fri Jul 18 06:34:12 MST 2014
Yes I am able to confirm this with the installed CMSIS-DAP Image from the LPCLINK2 config tool it shows the error when version 7.3
ist used.
0 Kudos
Reply

1,519 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Jul 18 06:21:56 MST 2014
Can you confirm that the problem ONLY happens when CMSIS-DAP is running on the LPC1549 board. That is, it works correctly with Redlink V4_46.
0 Kudos
Reply

1,519 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DieterNiesel on Fri Jul 18 06:19:10 MST 2014
The recovery doesn't help
When you look at the error you will recognize that with the on Board image CMSIS-DAP  flashing the target ist not working
with the image Redlink V4_46 loaded via dfu everything works.
when I use the older version of lpcxpresso IDE also no problem
On a second system with Os Ubuntu Linux and lpcxpresso version 7.3 the flash  button also works correct.

so it s no problem of the target mcu, I think its a problem of software talking to the link2 V2 part of the lpcxpresso1549 board.
0 Kudos
Reply

1,519 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Jul 18 03:54:58 MST 2014
From your description, it looks like you have put your target into a mode where the debugger cannot gain debug access to the chip.

This is described, with recovery instructions here:
http://www.lpcware.com/content/faq/lpcxpresso/regaining-debug-access
0 Kudos
Reply

1,519 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DieterNiesel on Fri Jul 18 03:19:27 MST 2014
No one any idea for this error ?
0 Kudos
Reply

1,519 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DieterNiesel on Wed Jul 16 03:25:55 MST 2014
Hello thanks for the answer.
First I did all steps you mentioned in your post.


Using the program flash button :

crt_emu_cm_redlink -flash-load-exec "E:\projekte\lpcv7\pnb1549\Debug\pnb1549.axf" -g -2 -vendor=NXP -
pLPC1549 -ConnectScript=LPC15RunBootRomConnect.scp -flash-driver=LPC15xx_256K.cfx

Ni: LPCXpresso RedlinkMulti Driver v7.3 (Jul  1 2014 11:18:44 - crt_emu_cm_redlink.exe build 130)
Pc: (  0) Reading remote configuration
Pc: (  5) Remote configuration complete
Wc: ============= SCRIPT: LPC15RunBootRomConnect.scp =============
Os: RedlinkAPI: Hardware interface transfer error
RedlinkAPI: Hardware interface transfer error
RedlinkAPI: Hardware interface transfer error
RedlinkAPI: Hardware interface transfer error
RedlinkAPI: Hardware interface transfer error
Halt on reset vector catch
RedlinkAPI: Hardware interface transfer error
RedlinkAPI: Hardware interface transfer error
RedlinkAPI: Hardware interface transfer error
RedlinkAPI: Hardware interface transfer error
Halt on watchpoint write of ROMWSCTRL register
RedlinkAPI: Hardware interface transfer error
RedlinkAPI: Hardware interface transfer error
Wc: ============= END SCRIPT =====================================
Xe:
Ed:02: Failed on connect: Ee(36). Could not connect to core.
Et:31: No connection to emulator device
Pc: (100) Target Connection Failed

This is the error i get


Power cycle the lpc1549 board and attach JP3 before power connect.
In lpcxpresso IDE using Boot Debug Probe button results in loading firmware to RAM
with boot_link2.cmd i can verify that this is
      Booting LPC-Link2 with LPC432x_Redlink_V4_46.bin


after booting this image the use of Prgram Flash will show :

Ni: LPCXpresso RedlinkMulti Driver v7.3 (Jul  1 2014 11:18:44 - crt_emu_cm_redlink.exe build 130)
Pc: (  0) Reading remote configuration
Pc: (  5) Remote configuration complete
Wc: ============= SCRIPT: LPC15RunBootRomConnect.scp =============
Os: DpID = 2BA01477
AP_ID = 0x24770011
Halt on reset vector catch
Halt on watchpoint write of ROMWSCTRL register
Wc: ============= END SCRIPT =====================================
Xe:
Pc: ( 30) Emulator Connected
Xc:
Pc: ( 40) Debug Halt
Pc: ( 50) CPU ID
Nc: Emu(0): Conn&Reset. DpID: 2BA01477. CpuID: 410FC230. Info: (null)
Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Nc: Loaded LPC15xx_256K.cfx: LPC15 (256K Flash) Jul  1 2014 11:51:09  On-chip Flash Memory

Pc: ( 65) Chip Setup Complete
Nt: Connected: was_reset=true. was_stopped=true
Cr:v LPCXpresso Free License - Download limit is 256K
Pc: ( 70) License Check Complete
Nt: Loading ELF file 'pnb1549.axf' at location 00000000
Nt: Writing 5924 bytes to address 0x00000000 in Flash
Pb: 1 of 1 (  0) Writing pages 0-1 at 0x00000000 with 5924 bytes
Ps: (  0) Page  0 at 00000000
Ps: (  0) Page  0 at 00000000: 4096 bytes
Ps: ( 69) Page  1 at 00001000: 1828 bytes
Nt: Erased/Wrote page  0-1 with 5924 bytes in 1011msec
Pb: (100) Finished writing Flash successfully.
Nt: Flash Write Done


I also loaded with link2-config tool CMIS-DAP Software to the lpc1549 board the same results.
0 Kudos
Reply

1,519 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Jul 15 23:38:32 MST 2014
First of all make sure that you power down the probe when switching between different LPCXpresso IDE versions so that the probe firmware gets reloaded (the Redlink firmware from one version is not guaranteed to work with other versions).

Also make sure that there are no 'lingering processes running" - as detailed towards the bottom of :

http://www.lpcware.com/content/faq/lpcxpresso/booting-lpc-link2

Then please try powering up the board with the LPC1549 in ISP mode (press the ISP switch as you connect power/USB):

http://www.lpcware.com/content/faq/lpcxpresso/regaining-debug-access

If you are still having problems, please post the debug log:

http://www.lpcware.com/content/faq/lpcxpresso/debug-log

Regards,
LPCXpresso Support

0 Kudos
Reply