K70+LCDC+USB

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

K70+LCDC+USB

1,243 Views
PRJOY
Contributor II

Hello everyone,

I use K70MCU, CW10.6, USB Stack v4.1.1 and LCD-RGB.

When run the demo "USB Stack->Host->Example->Printer" under CW , it is work fine.

While when i enable the bellow settings for speed up the LCD-RGB display update rate, but USB is not working.

  // turn code cache on

  LMEM_PCCCR = (LMEM_PCCCR_GO_MASK | LMEM_PCCCR_INVW1_MASK | LMEM_PCCCR_INVW0_MASK | LMEM_PCCCR_ENWRBUF_MASK | LMEM_PCCCR_ENCACHE_MASK);

  while( LMEM_PCCCR & LMEM_PCCCR_GO_MASK ){};

  // turn system cache on   

  LMEM_PSCCR = ( LMEM_PSCCR_GO_MASK | LMEM_PSCCR_INVW1_MASK | LMEM_PSCCR_INVW0_MASK | LMEM_PSCCR_ENWRBUF_MASK | LMEM_PSCCR_ENCACHE_MASK);

  while( LMEM_PSCCR & LMEM_PSCCR_GO_MASK ){};

  // Enable IPF/DPF/IC/DC

  FMC_PFB01CR ^= 0x00000001F;

  FMC_PFB23CR ^= 0x00000001F;

  // Enable IPF/DPF/IC/DC

  FMC_PFB01CR |= 0x00000001F;

  FMC_PFB23CR |= 0x00000001F;

Is there any settings to handle to speed up the LCD-RGB display update rate with out disturbing K70 USB-Host.

Thanks,

Prabhu.S

Labels (2)
0 Kudos
Reply
4 Replies

973 Views
PRJOY
Contributor II

Hi Jingjing Zhou,

Thanks for the reply.

0 Kudos
Reply

973 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi PRJOY,

    Please tell me where you setting the code in the USB host example code?

    I think you can try to configure these code after the USB initialization is OK, and test it again.

    Besides, you can configure the interrupt priority, make the USB interrupt priority higher than the LCD update priority.

Wish it helps you!

If you still have question, please contact with me!

Have a great day,

Jingjing

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

973 Views
PRJOY
Contributor II

Hi Jingjing Zhou,

Thanks for the reply.

Now i tried USB-Host Task only with cache on setting and removed display task (LCD-RGB). 

I followed your instructions(configure cache on setting code after the USB initialization), still usb (interrupt) is not getting.

Please help me on this

In my application ".data + .bss" section is greater than 128kb, so i mapped ".data + .bss" section into the external DDR memory

/* Specify the memory areas */

MEMORY

{

  m_interrupts    (rx) : ORIGIN = 0x00000000, LENGTH = 0x1E8

  m_cfmprotrom     (rx) : ORIGIN = 0x00000400, LENGTH = 0x10

  m_text         (rx) : ORIGIN = 0x00000800, LENGTH = 1M - 0x800

  m_data    (rwx) : ORIGIN = 0x70000000, LENGTH = 11M    
  m_data2   (rwx) : ORIGIN = 0x70B00000, LENGTH = 1M  

}

Thanks,

Prabhu.S

0 Kudos
Reply

973 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Prabhu.S,

   Please attached your modified printer.c, I want to check it.

Waiting for your reply!

Best Regards,

Jingjing

0 Kudos
Reply