Can't Program FLASH on Xpresso LPC1769 Hardware

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Can't Program FLASH on Xpresso LPC1769 Hardware

1,565 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bobw on Mon Jan 27 11:48:45 MST 2014
Hi,
I have an LPC Xpresso 1769 and I've been trying unsuccessfully for DAYS to FLASH the program (non-volatile) memory using IAR EWARM and/or JFlash.

I have a simple program that starts up and periodically writes debug strings to the UART.

If I use the iJet or the JLink Plus to debug the program, it runs fine. I can hit break points and I can see my UART debug traces, etc. In other words, things operate as expected.

But if I program the device with the same code using the JTAG port on the LPC Xpresso using either IAR (with iJet) or JFlash (with JLink Plus), the IDE/programmer software tells me everything worked fine (even verifies OK), but when I unplug the programmer and power cycle the device, I get nothing. The program does not appear to be there (no UART traces, just dead, nothing).


I'm pretty sure it related to the LPC XPresso hardware - perhaps the LPCLink stuff hanging off of the JTAG lines?...

Does ANYONE know what the heck is going on and/or how can get around it to program the LPC1769 through the LPCXpresso's JTAG connection?


Thanks,
Bob
标签 (1)
0 项奖励
回复
4 回复数

1,495 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bobw on Tue Jan 28 13:01:58 MST 2014
I cut the traces as indicated in the PDF now the JTAG connection is dead for both the i-Jet and the J-Link debugger/programmer pods.

I need the JTAG to be active for the [u]target side[/u] not the LPC-Link side.

I can put the jumpers back with a wee solder bridge, so no big deal.

But do you have any other ideas?
0 项奖励
回复

1,495 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Mon Jan 27 15:11:25 MST 2014
Why not separate the lpclink?
http://www.embeddedartists.com/sites/default/files/docs/HowToCreateAnLPC-LINK.pdf
0 项奖励
回复

1,495 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bobw on Mon Jan 27 14:25:50 MST 2014

Quote:
If you are not connecting to LPC-Link (JTAG) it will have no affect.



We are not connecting to LPC-Link at all.


Quote:
I think it is more likely that your program is crashing (perhaps taking an exception).



The program is not crashing (at least not in Debugger mode). I can't tell what its doing when executed out of FLASH, but I know it is not working.


Quote:
You will need to debug you application to find out.


Debugging is not productive because when debugging with either of the modules everything works great.


Quote:
Also, don't forget that if you are semihosting, then your application will hang as there is no debugger attached


I tried with and without semihosting, there's no difference.

Anybody got any ideas?

Finally, we have the final version of our target hardware that uses LPC1769 w/o LPC-Link connection and it can be programmed and runs correctly after cycling power, but I am tasked with getting these Xpressos working for simulation duties. That is why I said previously that I am VERY suspicious of the LPC-Link part.

So is there anyone else out there that can successfully program and run Xpresso hardware using iJet or JLink?

Thanks,
Bob

0 项奖励
回复

1,495 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Jan 27 13:03:01 MST 2014
If you are not connecting to LPC-Link (JTAG) it will have no affect.

I think it is more likely that your program is crashing (perhaps taking an exception). You will need to debug you application to find out.

Also, don't forget that if you are semihosting, then your application will hang as there is no debugger attached.
0 项奖励
回复