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.
Hi everybody! I'm using a uC ADuC842 (based in 8052 core). It has 2 KB of XRAM On-Chip. I have a test program (C code) which do some operations with float numbers and send results to the serial port. When I use this compiler configuration: - Memory Model: small: variables in DATA - Code ROM Size: Large: 64K program I haven't any problem and compiled code runs perfectly in ADuC842. When I change compiler configuration to: - Memory Model: Large: variables in XDATA - Code ROM Size: Large: 64K program - Check Boxes selected: + Use On-Chip ROM (0x0-0xF7FF) + Use On-Chip XRAM (0x-0x7FF) I simulate compiled code with uVision and it runs perfecly (like before), but when I run compiled code in ADuC842 it doesn't work. It seems that I have problems using XRAM, but I don't know where. Sombody can help me? Comment: I have researched along the Disscusion Forum and I have read that it's necessary use startup.a51 to initialize uC. I don't know how call that segment in my C code program. Can this solve my problem? Thaks!!
"Give us a suggestion for re-wording" How about: "Use XRAM size from chip database"
"Use XRAM size from chip database" The check-box specifies both the size & the addresses, so I think "Use XRAM address range from chip database" would be better; similarly for ROM. It still needs to be made crystal clear that this does not generate any config code! In my uVision v2.39, if I click on the '?' button and then on this check box, I just get "No help topic is associated with this item" The F1 key is completely ignored.
"The check-box specifies both the size & the addresses" I can't think of a derivative that doesn't map it's XRAM from 0. Can you? "It still needs to be made crystal clear that this does not generate any config code!" I was hoping that "Use XRAM size..." in the context of the XRAM range boxes would be enough. I can't see any way of making it 100% clear without having the statement "This does not mean that the XRAM present in your derivative will actually work unless you configure it to do so manually. There is probably an SFR that you'll need to write to." beside the checkbox, but this would be most unattractive. "In my uVision v2.39, if I click on the '?' button and then on this check box, I just get "No help topic is associated with this item" The F1 key is completely ignored." I gave up trying to use help facilities in applications a long time ago as they are always useless. It's an ISO standard: all conforming applications must have hopeless help.
"I gave up trying to use help facilities in applications a long time ago as they are always useless." Defeatist!