saving values from Keil 8051 compiler

Hello list, Thank you for bothering to read the post here on comp.arch.embedded. I am facing a problem halfway through a developmenmt process. I am using Keil 8051 compiler for writing an application with the AT89s8252 as the target device. The code is being written in "Embedded C". At this point i am using a 50x50 array in the program whose values i want to retrieve and keep for later use and analysis. This is so because i need to perform some statistical analysis on the results which is in no way possible through Keil. How can i have the array results saved to some external file ? Or how even can I extract the results or array values for later use and analysis ? One more problem that I am facing is that even if i declared a

2500 cell array, after the program is over, the Keil compiler Watch window doesn't show the variable values upto 2500[it is typically upto ~106]. Is this a bug in the program, or device doesn't support this much of memory, or is it the compiler ???

waiting for a reply and lastly thank you for reading the post.

Reply to
Loading thread data ...

The AT89S8252 has 256 bytes of RAM internally. Not all of those will be available for variable storage.

Where are you planning on storing 2500 objects of whatever size it is that you ar using? An external RAM? If so, see the compiler manual on how to use that. External RAM is accessed differently from internal RAM in the 8051.

Best regards, Spehro Pefhany

"it's the network..."                          "The Journey is the reward"             Info for manufacturers:
 Click to see the full signature
Reply to
Spehro Pefhany

In uVision help, look for debugger SAVE command.

If your array is a simple one (not array of structures), you can look at your data in the memory window by typing the array name in the address field and selecting propper data representation (char, int float etc.)



Reply to

Maybe you could dump all the variables over the serial port? With a terminal program you can write the data to a file and analyse it.


Reply to

I don't fully understand the problem, but if generating a file on the fly, and sending it to a terminal program through the serial port is a possible solution, then maybe this will help.

formatting link

Regards, Murray R. Van Luyn.

Maybe some day someone will implement the protocol timeouts and send me a copy?

Reply to
Murray R. Van Luyn

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.