Gareeeesh 2 Posted March 23, 2013 Share Posted March 23, 2013 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! Quote Link to post Share on other sites
RobG 1,891 Posted March 23, 2013 Share Posted March 23, 2013 Here are your options: Use F5xxx series Use external SPI SRAM Use G2955 Quote Link to post Share on other sites
bluehash 1,581 Posted March 23, 2013 Share Posted March 23, 2013 Rickta and Rob both have SPI SRAM examples. Interface 23K256 SPI RAM with USI SPI Serial SPI memory functions javakys 1 Quote Link to post Share on other sites
Gareeeesh 2 Posted March 23, 2013 Author Share Posted March 23, 2013 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! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.