Not applicable
Sep 26, 2012
06:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 26, 2012
06:34 AM
hello
i use infineon xc836 2fri for my project but my flash memory(code) has been full so keil compiller send me error.so how can i use internal ram data memory(xram) for my project?or whats your alternative opinion?
thanks
i use infineon xc836 2fri for my project but my flash memory(code) has been full so keil compiller send me error.so how can i use internal ram data memory(xram) for my project?or whats your alternative opinion?
thanks
Labels
- Labels:
-
XC800
- Tags:
- full flash memory
- IFX
3 Replies
Not applicable
Sep 27, 2012
09:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 27, 2012
09:12 AM
Wait, what's full?
Your flash or your memory?
Your flash or your memory?
Not applicable
Sep 28, 2012
10:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 28, 2012
10:49 PM
hi ,
full flash.
thanks
full flash.
thanks
Not applicable
Sep 29, 2012
04:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 29, 2012
04:10 AM
Well, you can use xdata and idata to squeeze out more memory during runtime:
http://hsk.sourceforge.net/dev/platform.html#platform_memory
http://hsk.sourceforge.net/dev/conventions.html#conventions_memory
However everything must fit into your flash to begin with. So if it doesn't fit you have several options:
- Try different compiler settings (it will only work in cases where you're very close to your memory limit)
- Rewrite your code to generate smaller programs (normally this means you require more runtime memory, because you cannot simply hard-code everything)
- Get rid of features you don't require (that really hurts when writing generic libraries)
- Use external flash (that requires a lot of knowledge about how memory in general on the 8052, especially on the XC800 works and how to make compilers play nice with it)
http://hsk.sourceforge.net/dev/platform.html#platform_memory
http://hsk.sourceforge.net/dev/conventions.html#conventions_memory
However everything must fit into your flash to begin with. So if it doesn't fit you have several options:
- Try different compiler settings (it will only work in cases where you're very close to your memory limit)
- Rewrite your code to generate smaller programs (normally this means you require more runtime memory, because you cannot simply hard-code everything)
- Get rid of features you don't require (that really hurts when writing generic libraries)
- Use external flash (that requires a lot of knowledge about how memory in general on the 8052, especially on the XC800 works and how to make compilers play nice with it)