UART sample code on LPC5526JBD64E MCU

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

UART sample code on LPC5526JBD64E MCU

ソリューションへジャンプ
3,487件の閲覧回数
carter_wang
Contributor I

 

Hi,

I have two boards, one is LPC55S28-EVK, the other has LPC5526JBD64E on it.

I downloaded SDK_2_7_0_LPCXpresso55S28, then imported the hello world demo application.

I try to develop more functions based on the demo application.

I found the output debug message from the UART port(PIO0_29/PIO0_30) on LPC55S28-EVK, however, no message on my board with LPC5526JBD64E MCU...

I was wondering could you tell me how I should modify the demo application to make it run successfully on LPC5526JBD64E?

 

It is my way to download the image into MCU on-chip flash.

  • Enter ISP mode.
  • Download the image by tool Flash Magic.
  • Change to passive mode.
  • Power on the board.

 

BR,

carter

0 件の賞賛
返信
1 解決策
3,446件の閲覧回数
EdwinHz
NXP TechSupport
NXP TechSupport

Hi Carter,

Are you using the LPC-Link 2 to debug the LPC5526 or the LPC55S28-EVK? Either way, I believe you should check out these posts in hopes of regaining debug access to your MCU:

https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Regaining-debug-access-to-target-MCU/m-p/473923

https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/ISP-Reset-over-debug/m-p/470945

 

With respect to the demo application, I would recommend creating a new project for the LPC5526 with the necessary drivers and copying the source files only, instead of importing the whole project. This is because the project often comes with chip or board specific configurations and can cause problems.

 

I hope this helps,

Edwin.

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
3,471件の閲覧回数
EdwinHz
NXP TechSupport
NXP TechSupport

The problem might be due to the differences in pin assignments. I believe the LPC55S28-EVK comes with a LPC55S28JBD100 (please confirm this on your board) which is a 100 terminal package. The LPC5526JBD64, however, is a 64 pin package. Please make sure the pin assignments match the UART port of the LPC5526 as well, and that you are reading the UART port accordingly for the correct pins of this part number.

 

Best regards,

Edwin.

0 件の賞賛
返信
3,462件の閲覧回数
carter_wang
Contributor I

 

Hi Edwin,

 

Thanks for your information.

I checked the UART pins definition(PIO0_29, PIO0_30) is the same between these two boards.

I tried to use LPC-Link 2 to debug it, but got another issue...

 

BR,

carter

0 件の賞賛
返信
3,447件の閲覧回数
EdwinHz
NXP TechSupport
NXP TechSupport

Hi Carter,

Are you using the LPC-Link 2 to debug the LPC5526 or the LPC55S28-EVK? Either way, I believe you should check out these posts in hopes of regaining debug access to your MCU:

https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Regaining-debug-access-to-target-MCU/m-p/473923

https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/ISP-Reset-over-debug/m-p/470945

 

With respect to the demo application, I would recommend creating a new project for the LPC5526 with the necessary drivers and copying the source files only, instead of importing the whole project. This is because the project often comes with chip or board specific configurations and can cause problems.

 

I hope this helps,

Edwin.

0 件の賞賛
返信
3,440件の閲覧回数
carter_wang
Contributor I

 

Hi Edwin,

 

Thanks for your information.

It is workable now.

 

BR,

carter

0 件の賞賛
返信