Initialise data
"Azkarate_Askasua Mikel" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Hello,
We want to declare some variables out of any function (on header) and just initialise them.
They are put in some sections on RAM (as .data etc.) and obviously it can't be downloaded by the flasher.
There is a function in __start.c called __init_data() that copies sections using a table (_rom_copy_info[]), but in this table the origins and target are of each section are the some, so no copy is made.
I'm using MPC564 with Codewarrior v8.1.
*What I want to ask is how we could put it in RAM and how we can then copy it to the proper RAM addresses.
*Must we change the origin of .data in the linker command file? How?
Thanks.
Regards,
Mikel A-A
-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MPC500/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/