ahgan84 0 Posted October 27, 2011 Share Posted October 27, 2011 Hi guys, I'm using the MSP430F5529 MCU and I've encounter below error: run placement fails for object ".bss", size 0x2072 (page 0). Available ranges: RAM size: 0x2000 unused: 0x1f60 max hole: 0x1f60 Is this problem means I've not enough memory for my .bss objects? Does this means my .bss object only allocated 2k (0x2000) bytes of memory but I used until 0x2072? What is the 'unused: 0x1f60' and 'max hole: 0x1f60' means? Can I increase the size of the .bss object or I should reduce the variables in my coding? Quote Link to post Share on other sites
bluehash 1,581 Posted October 27, 2011 Share Posted October 27, 2011 Yes.. you are over by 0x72 than what is allotted for bss. Try changing your fixed arrays to consts. Quote Link to post Share on other sites
ahgan84 0 Posted October 27, 2011 Author Share Posted October 27, 2011 Yes.. you are over by 0x72 than what is allotted for bss.Try changing your fixed arrays to consts. How much memory does consts have? Quote Link to post Share on other sites
SirZusa 34 Posted October 27, 2011 Share Posted October 27, 2011 till you are out of program memory (flash) on your unit Quote Link to post Share on other sites
ahgan84 0 Posted October 27, 2011 Author Share Posted October 27, 2011 till you are out of program memory (flash) on your unit But my value need to be a modifiable value. How can it be consts? So how? Btw, is there a way we can see how much memory we've used after we compiled? Quote Link to post Share on other sites
SirZusa 34 Posted October 27, 2011 Share Posted October 27, 2011 this is not possible - if it needs to be modifiable / variable - you need to store it in RAM - and if you are out of RAM you will need a bigger MCU seems like the F5529 is already the biggest of this series with 8192 Bytes of RAM? What do you store in there? Maybe you can change the type of the vars? (eg. Byte instead of integer for unsigned values ranging 0 - 255) or optimize your code - reduce the global vars without knowing your program it is hard to say where to begin edit: in IAR the last debug-lines: 234 bytes of CODE memory 84 bytes of DATA memory (+ 17 absolute ) 4 bytes of CONST memory bluehash 1 Quote Link to post Share on other sites
ahgan84 0 Posted October 28, 2011 Author Share Posted October 28, 2011 I'm trying to do oversampling over all 12 channels of the ADC external input. Mostly I'm using 'unsigned long' variables, so probably that used up all the memory. Maybe I use int instead. edit: in IAR the last debug-lines: 234 bytes of CODE memory 84 bytes of DATA memory (+ 17 absolute ) 4 bytes of CONST memory I'm using CCS4. So where can I see the memory used for my coding? 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.