LPC55S16 SRAM enlarge?

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

LPC55S16 SRAM enlarge?

728 Views
felix1
Contributor IV

Hi, 

I need more SRAM to store image data for panel, can I enlarge the SRAM size of LPC55S16?

felix1_0-1692788589510.png

 

 

0 Kudos
Reply
4 Replies

688 Views
frank_m
Senior Contributor III

Looking at your RAM usage, I would highly suggest to either consider a MCU variant with more RAM, or rework/optimize your code and variable declarations.

Often, algorithms put emphasis on performance. to the detriment of memory usage.
Or vice versa.

0 Kudos
Reply

672 Views
felix1
Contributor IV

Hi,

Indeed, change to LPC55S28 is a solution, but I have only LPC55S16-EVK now.

I need to get image data through USB  port and refresh the panel with frame buffer 480*(800/8)=48000 bytes. For now, I need to refresh the left side of the panel, and then the right side. It produces the refresh delay from left side to right side.

Can I move USB stack to SRAMX?

 

 

0 Kudos
Reply

668 Views
frank_m
Senior Contributor III

> I need to get image data through USB  port and refresh the panel with frame buffer 480*(800/8)=48000 bytes.

I expected something like that.
I mean, an application expected to shuffle around large data volumes at high(er) throughput.
Just keep in mind that generic MCUs are not very well suited for that.
DSPs are made for that, and most application processors (Cortex A) and some high-end Cortex M devices have dedicated hardware to handle displays.

With a generic MCU, you need to accept limitations.
You could reduce the package size, and optimize it through double-buffering mechanisms and/or DMA usage.

I would suggest to profile your application, and see where it spends most time.
And evaluate what options you have to improve performance, or reduce the visible impact.

0 Kudos
Reply

696 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @felix1 

You can place some data into SRMX, detail steps refer to:

https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/LPC-How-to-place-data-function-file-in-s...  

 

BR

Alice

0 Kudos
Reply