LPC54018 Customized board XIP project SPI clock issue

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

LPC54018 Customized board XIP project SPI clock issue

704 Views
Renuga_AKAS
Contributor I

Hi,

   We're using LPC54018 (208 PINs) customized board, we're trying to connect a TFT (ST7789v) through SPI interface. We're using FLEXCOMM9, configured peripheral clock as 96MHZ and updated the package to 208 PINs through MCUxpresso config tool. We're getting clock and data still the display doesn't shown the correct data/ didn't get refreshed?

 

Is XIP and non-xip project clock gets differed because the clock signal got differed in CRO analysis?

 

In code, boot init clock also got differed such as

In non-XIP project:

void BOARD_InitBootClocks(void)
{
BOARD_BootClockPLL180M();
}

 

In XIP project:

void BOARD_InitBootClocks(void)
{
BOARD_BootClockRUN();
}

Hereby i have attached the CRO SPI image images for your reference (Yellow colour clock signal got from non-XIP project and Blue colour clock signal got from XIP project).

LPC54018_non_XIP.jpg

LPC54018_XIP_Image.jpg

  

0 Kudos
Reply
8 Replies

676 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Renuga_AKAS 

1) "configured peripheral clock as 96MHZ and updated the package to 208 PINs through MCUxpresso config tool. We're getting clock and data still the display doesn't shown the correct data/ didn't get refreshed?"

->> Please show the configuration in MCUXpresso config tool and data.

 

2)  About your two projects, the only difference is XIP and no-XIP? 

 

3)What is  "CRO" ?

 

4) Send your test project and steps to reproduce the issue, I will try to check on my side.

 

BR

Alice

0 Kudos
Reply

668 Views
Renuga_AKAS
Contributor I

Hi,

 

1) Hereby, I have attached the .mex file and screenshots of pin & clock configurations in the MUCXpresso config tool for your reference.

 

PIN configurations:

Renuga_AKAS_0-1667535769106.png

 

LPC54018 - Package selected as 208PIN:

Renuga_AKAS_1-1667535814212.png

 

System Clock configured as 96MHz:

Renuga_AKAS_2-1667535946909.png

 

Flexcomm 9 (SPI) peripheral clock configured as 96MHz:

Renuga_AKAS_3-1667536007527.png

 

2)  About your two projects, the only difference is XIP and no-XIP? Yes.

In No-XIP, we configured system clock as 180MHz.

In XIP, whatever the system clock we're getting SPI clock and data but there is no trace for the communication with the TFT ST7789v driver.

3) I mean the "Digital Oscilloscope"

4) Hereby, I have attached the ZIP file - XIP project developed from helloworld_XIP SDK example project for your reference.

 

 

 

0 Kudos
Reply

619 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

So in the CRO, the signal is SCK (PIO3_20) of SPI 9?  

FROM your code, the baudrate is 50000:

Alice_Yang_0-1667809735985.png

 

BR

Alice

 

0 Kudos
Reply

591 Views
Renuga_AKAS
Contributor I

Hi @Alice_Yang,

 

    Till we're facing the same issue in the XIP Project. Can you support us to overcome this issue?

We have tried every possible ways till now that you directed us to do?

We need a quick response from you?

 

Thanks & Regards,

Renuga

0 Kudos
Reply

570 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Renuga_AKAS 

Does your mainly question is your XIP project can not work on your board?

If yes, how about first test the XIP demo under SDK? Because I can't measure on my side now.

Or question is confirm the  SPI clock with your project? 

 

BR

Alice

 

0 Kudos
Reply

612 Views
Renuga_AKAS
Contributor I

Hello,

     Yes, the digital oscilloscope shown the clock signal of SPI9 (Port3 20th pin).

 Actually we used the default SPI master configuration so the baudrate is 500000 not 50000. Is there any confusion on that?

 

Are you able to recreate the issue? Or is there any additional information needed for you?

0 Kudos
Reply

685 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Renuga_AKAS 

1) How about click the Update Code button: 

Alice_Yang_0-1667285615664.png

 

2) About clock configuration, you can config refer to your requirement. You can see the Hello world XIP and no-xip demo under SDK, they all use BOARD_BootClockFROHF96M().

 

BR

Alice

 

0 Kudos
Reply

680 Views
Renuga_AKAS
Contributor I

Hi @Alice_Yang,

1) How about click the Update Code button:

We updated the clock using MCUxpresso Config tool

2) About clock configuration, you can config refer to your requirement. You can see the Hello world XIP and no-xip demo under SDK, they all use BOARD_BootClockFROHF96M()

We also tried using the BOARD_BootClockFROHF96M(), in this too we're getting the clock signal still we didn't see any changes in the display.

We're using the default configuration as it given in the SPI SDK example.

 

Any suggestions for 208 PIN customized board?

0 Kudos
Reply