Jump to content
Gareeeesh

Memory issue with G2553

Recommended Posts

Hi people!

 

Basically I'm writing a function to control a 16x16 RGB LED matrix with serial communication.

 

The function I'm writing requires an array of size 16x16 ( hueBuffer[16][16] ) and of type 'short' since the max value of hue is 359.

 

However, I keep getting an error: "program will not fit into available memory.  run placement with alignment fails for section "DATA_GROUP" size 0x23d" but there is plenty of memory on the G2553.

 

I need the values of hue to go up to 360 so i cant use unsigned chars.

 

Anyone know of a solution to this problem?
 

I'll post the code if you want.

 

Cheers!

Share this post


Link to post
Share on other sites

Thanks for the suggestions guys, but I solved it. I'm just gonna use unsigned chars with 180 being the max value, then (180*2)-1.

The Hue values arent as accurate but it does the job.

 

Thanks again!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×