Strange Behaviour LPC11U37/401

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

Strange Behaviour LPC11U37/401

627 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kemes on Mon Apr 01 11:12:33 MST 2013
Hi to all
I am porting my code from LPC1114 to LPC11U37.  The code, that uses UART, compile and works well under LPC1114.  On the new processor the code compile correctly and works well except when I attempt to enable UART1.  In particular if I set :

   LPC_IOCON->PIO0_18 = 1;  // PIO0_18 is RXD
   LPC_IOCON->PIO0_19 = 1;  // PIO0_19 is RXD

In order to config the usart1 pins, it compiles, but when I start debugging the result is:

15: Target error from Commit Flash write
  Flash verify operation failed.

And I can't debug.  if I comment the two lines, it compiles and downloads well (and, of course, doesn't work usart 1....) allowing me to debug.
There are some other settings ? 
Thanks
0 项奖励
回复
1 回复

576 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Apr 02 02:30:13 MST 2013
What version of LPCXpresso are you using? You should be using v5.1.2.

If you still see problems with LPCXpresso v5.1.2, please can you post the full debug log:

http://support.code-red-tech.com/CodeRedWiki/DebugLog

It would also be worth trying a mass erase before programming, to see if that cures the problem:

http://support.code-red-tech.com/CodeRedWiki/GuiFlashProgramming

Can you also confirm if you see the same problem with all images, or just this particular one. For example if you create a "semihosting" project using the project wizard, do you see the same problem?

Regards,
CodeRedSupport
0 项奖励
回复