We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Okay, I think this should be an easy one! I have a program/data partition at 0x20000. I also have internal SRAM from 0-0x1300. Without the 'Use internal SRAM' box checked, I get this config:
XDATA (X:0x20000-X:0x2FFFF) HDATA (X:0x20000-X:0x2FFFF)
XDATA (X:0x0-X:0x13FF) HDATA (X:0x0-X:0x13FF, X:0x20000-X:0x2FFFF)
SEGMENTS (?XD?* (X:0x20000))
"Any ideas on what I've missed?" Telling us what variant you're using, for a start! ;-)
Dallas's 5250. I was hoping that wouldn't matter, since a) it seems like the solution should generalize and b) we can't really talk about the chip's inner workings anyway (sigh). Regardless, if there are any other bits of info that might seem helpful, please don't hesitate to ask!
Here's what you need to do. 1. In Options for Target...Setup the memory in the target window the way you kind-of want. Just get it close. 2. Click on the LX51 Locate tab. 3. Copy the stuff in the C classes list. 4. Paste this stuff into the User Classes section. 5. Un-check the Uses Memory Layout from Target Dialog checkbox. 6. Modify the classes as you need. When configurations get sophisticated there's nothing like manually controlling where everything goes. Hope this helps. Jon
Heh, that does help as it doesn't seem like the stock dialog boxes are going to drop everything into place. The main problem, though, is that I'm not even sure of the customizations I need to apply! - My classes seem correct. As I pasted in my original post, above, I have a small XDATA class and a larger HDATA class (it can't be addressed as XDATA since it's out of XDATA's standard 16 bit range). - My segments do not seem correct and herein is the real trouble! They are all apparently being located off of that small XDATA class. Because it's so small this is a Bad Thing, and I'm not sure how to correct it.. as I mentioned, explicitly locating them doesn't seem to work. Any more thoughts are most welcome!