Dear Sir, I am devloping application using keil tool chain on MCB 2130 [LPC2138 processor]. I am using phlips flash utility (using COM port) to load application prog. to the target device. I dont have JTAG debugger and JTAG device.
How can I moniter content of onchip SRAM [32 k]. I want to moniter SRAM because I need to check weather top 32 bytes of SRAM are reserved or not?
Please reply how can i moniter top 32 bytes of RAM, is there any provision in Keil IDE, I am using Eval version of Keil tool chain.
Best regards, and thanks in advance TIM
Keil has the ISD51 and MON51 in-system monitors. These are about 5K of monitor code that you add to your application which talk to the debugger over one of the 8051 UARTs.
Or you could write your own code. You don't describe what sort of interface your system has. A command-line interface over the UART is often useful for debugging -- or even just printf().
The easiest way to be sure the RAM stays unused is to use the RESERVE directive in the linker so that nothing will be located to that address range.
"I need to check weather top 32 bytes of SRAM are reserved"
What do you mean by "reserved"?
What do you think might be "reserving" them?
If they are reserved at build time, can't you determine this from the tool settings and/or output files?
Have anyone have any idea about this ?
" What do you mean by "reserved"? "
Means it should not being use at execution time by program. AS I am using its flash system by IAP commands and usermanual says that you need to reserve your top 32 bytes.
The linker listing file should tell you exactly which memory ranges are used by the program.
If you need to make sure that a certain memory address is not used otherwise, declare a dummy variable.
"linker listing file"
Sir, I hav't work with linker script, can you suggest me from where i can found demo- or info on linker scripts?
Thanks Tim
Sir, I hav't work with linker script,
The linker listing file is not an input, but an output of the linker. It contains all information on where the linker has put which function/variable in memory.
Dear Christoph Franck
I am using Keil tool chain, Should i enter this in LA(linker/Allocate) options. There I have found following options. (1) Reserves Space : ---- [user defind address range].
So, should i enter range range of top 32 bytes of ram here?
If i will do this, it will not use top 32 bytes of ram for any operations? [like user heap mem/user stack mem etc].
Plese reply Saurabh