full flash memory xc836

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
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
0 Likes
3 Replies
Not applicable
Wait, what's full?

Your flash or your memory?
0 Likes
Not applicable
hi ,

full flash.
thanks
0 Likes
Not applicable
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)
0 Likes