SWD就不能用了,无法继续下载了。已经换了四次芯片都是会出现这个问题

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

SWD就不能用了,无法继续下载了。已经换了四次芯片都是会出现这个问题

4,123 Views
xiahounan
Contributor I

问题:我在使用LPC54114的SWD时遇到了一个问题,下载几次后,SWD就不能用了,无法继续下载了。已经换了四次芯片都是会出现这个问题

pastedImage_1.png

分析:经过测试过Ulink2没有问题,下面是在别的板子上的测试

pastedImage_4.png

按照手册里说的SWLCK和SWDIO引脚都已经内部上拉pastedImage_2.png

而且我也在外部使用100K电阻进向上拉

pastedImage_3.png

测量电压:VCC          3.265V

                  SWCLK     3.263V

                  SWDIO      1.105V ( ! )

SWDIO的电压不正常,但是根据板子上的LED能看出程序正常运行了,谁能知道是什么原因吗?

Labels (1)
Tags (1)
0 Kudos
8 Replies

3,747 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 亚男 侯,

非常感谢使用NXP产品,很高兴为你提供技术支持!
请问下载错误提示信息,具体是什么呢,还有去除R11电阻后再试试。

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

3,747 Views
xiahounan
Contributor I

Hi jeremyzhou

   IDE我用的是keil5,烧录器是ULINK2。

   下载提示错误信息如下图,

   pastedImage_1.png

R11已经拆了,但是测量电压还是不正常,SWDIO引脚电压依旧是1V左右,烧录器依然检测不到芯片,程序依然下载不了。

我最疑惑的是为什么不是一开始就不能用,而是已经下载了几次之后就不正常了  

0 Kudos

3,747 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 亚男 侯,

感谢回复。

我想知道的是相似的问题有多大的比例会出现在批量生产的板子上呢。

从你的描述来说板子在一开始debug的时候是没问题的,等到debug的次数到了一定数目时,问题才会出现,所以我猜测板子PCB或者焊接工艺都有可能是原因。

我建议你将好的板子或出现问题的板子详细的做个对比测试,还有将出现问题的板子上的芯片移到好的板子上试试,看看能否debug.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

3,747 Views
xiahounan
Contributor I

HI jeremyzhou

感谢回复,这几天重新测试了板子,发现可能是因为程序里打开了四个GPIO造成的,所以现在想请问你一下,在不使用SWD的情况下,怎样擦除LPC54114芯片?NXP是否有官方的烧录软件?

0 Kudos

3,747 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 亚男 侯,

感谢回复。

Flash Magic 工具可以用于烧录,烧写LPC芯片,具体方法可参考此贴。

https://learn.adafruit.com/getting-started-with-the-lpc810/programming-the-lpc810-with-flash-magic 

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

3,746 Views
xiahounan
Contributor I

HI jeremyzhou

   发现你们一个笔误,#define DEMO_GINT1_PORT kGINT_Port0应该是kGINT_Port1Snipaste_2020-03-21_09-46-04.jpg

0 Kudos

3,747 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 亚男 侯,

感谢回复!

其实是kGINT_Port0和kGINT_Port1对应着GPIO0和GPIO1,而GINT0和GINT1都是可以配置GPIO0和GPIO1中的引脚的。

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

3,747 Views
xiahounan
Contributor I

Hi jeremyzhou 

感谢回复!

我现在在做LPC54114这颗芯片的IAP功能,阅读手册时有个疑问,如下图

pastedImage_1.png

示例中的“IMAGEHEADER_T”是什么类型? u32?

0 Kudos