Hello,
I'm getting an error in uVision where I get a pop-up that says "Out of Memory" than uVision freezes.
I have a project and I can compile and download to my target without any problems. The error occur when I begin to debug.
uVision says "Loading Object code" in the status bar and it slowly moves up to 100% than the error occurs.
However, if I change the scatter-loading file to have more of the code in internal flash I don't get this error.
Does anyone have any idea why this error would occur? How is my scatter-loading affecting the debugger's Loading Object code?
Thanks.
Marc
It's hard to tell just from your description, but it sounds to me like it's the uVision PC application that is running out of PC memory...
How much memory does your PC have? What does the Windows Task Manager show you?
Hi Andrew,
I'm not sure what else I could describe. Yes the error has to do with the uVision PC memory but why?
The Windows task manager shows that uVsion is using over 500MB of physical memory when it freezes - to me this is because something is going wrong.
My PC is fairly new and I have 3GB of RAM.
I guess to better understand what is going on, my question should be why does changing the target memory layout (scatter file) change the debugger "Loading Object Code"?
M
No idea!
Have you tried Keil support?
Not yet. I thought I'd check here first in case it was something obvious I was missing.
I think I will send them a support request.
Thanks for the help.
Hi,
can you please send your code example (to reproduce the problem) and your Keil µVision Version details to the Keil support?
BR, /th.
I have had this problem too yesterday. I was trying to adapt the scatterfile to my needs. Somehow the uvision was reacting strange after debugging started. I saw that it had consumed something like 1.7 GByte ! It was not possible to close the uvision although some menu items were still accessible.
I changed the scatter file and gone was the problem.
What version ok uVision or MDK?
I use the following version on a Win7 pc:
IDE-Version: µVision V4.21.0.0
Tool Version Numbers: Toolchain: MDK-ARM Basic (256K) Version: 4.21 Toolchain Path: BIN40\ C Compiler: Armcc.Exe V4.1.0.713 Assembler: Armasm.Exe V4.1.0.713 Linker/Locator: ArmLink.Exe V4.1.0.713 Librarian: ArmAr.Exe V4.1.0.713 Hex Converter: FromElf.Exe V4.1.0.713 CPU DLL: SARMCM3.DLL V4.21 Dialog DLL: DARMSTM.DLL V1.62 Target DLL: BIN\ULP2CM3.DLL V2.58 Dialog DLL: TARMSTM.DLL V1.60