This message contains an entire topic ported from the WildRice - Coldfire forum. Freescale has received the approval from the WildRice administrator on seeding the Freescale forum with messages. The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value as you search for answers to your questions. Freescale assumes no responsibility whatsoever with respect to Posted Material. For additional information, please see the Terms of Use - Message Boards and Community Forums. Thank You and Enjoy the Forum!
Mar 15, 2006, 3:17 AM Post #1 of 2 (17 views) Copy Shortcut [ColdFire] Accessing SDRAM on WildFire 5282 (Coldfire 5282) Can't Post --------------------------------------------------------------------------------Hi there, I'm currently programming the WildFire 5282 board, which uses the ColdFire 5282 microcontroller. Programming environment is eclipse, programming language is C (there is also a wildfire run time library available). (Furthermore, I'm a newbie in programming microcontrollers...) When allocating variables (e.g., an "int"), they seem to be stored within the user stack (the board's Internal SRAM, size: 64 KB). But for a programme, I'd like to store the variables in the board's SDRAM (16 MB). But I do not know, how to tell the programme to allocate variables in SDRAM. Can anyone help me? TIA, Henry -------------------------------------------------------------------- Mar 15, 2006, 7:04 AM Post #2 of 2 (16 views) Copy Shortcut RE: [ColdFire] Accessing SDRAM on WildFire 5282 (Coldfire 5282) [In reply to] Can't Post --------------------------------------------------------------------------------Henry, (non-static) Variables allocated within a function scope are allocated off the stack. Statics and variables allocated at the module or global scope are generally not allocated off the stack. Your solution may be as simple as defining the variables outside the body of a function or declaring them as static. The memory space for static allocation is usually, I believe, determined by a linker script. The exact format for the linker script can vary greatly from one compiler/linker to the next. Perhaps you have some sample code, build files, and memory maps for the WildFire board which you could examine? John //-------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -----Original Message----- From: HenrySent: Wednesday, March 15, 2006 6:18 AM Subject: [ColdFire] Accessing SDRAM on WildFire 5282 (Coldfire 5282) Hi there, I'm currently programming the WildFire 5282 board, which uses the ColdFire 5282 microcontroller. Programming environment is eclipse, programming language is C (there is also a wildfire run time library available). (Furthermore, I'm a newbie in programming microcontrollers...) When allocating variables (e.g., an "int"), they seem to be stored within the user stack (the board's Internal SRAM, size: 64 KB). But for a programme, I'd like to store the variables in the board's SDRAM (16 MB). But I do not know, how to tell the programme to allocate variables in SDRAM. Can anyone help me? TIA, Henry Message Edited by Dietrich on 03-31-2006 03:37 PM
Message Edited by Dietrich on 04-01-2006 11:21 AM
Message Edited by Dietrich on 04-04-2006 09:20 PM