Jump to content
43oh

Run placement fails


Recommended Posts

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?

Link to post
Share on other sites

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

Link to post
Share on other sites

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?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...