This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to stored global variable in CPU flash (MCF5213 Freescale)

How to store variables in microcontroller inbuild flash? to reduce the overhead of SRAM.
Our controller SRAM is almost reach at 94%. What wil be the solution if I have to add more variables even more, shall I shore variable in CPU flash.?

Thanks

shyam tayade

shyam.tayade@kpitcummins.com

Parents
  • Why do you specify an email address? Expecting a personal reply? Why not use the facilities of the forum so others can enjoy the answer?

    "What wil be the solution if I have to add more variables even more, shall I shore variable in CPU flash"

    What good is that going to do? Either way the variables are going to be loaded into RAM, regardless where in non-volatile memory they are stored. But of course, if their value changes slowly, you might want to consider storing them AND maintaining the value in non-volatile memory.
    Can you add external RAM/SRAM?

Reply
  • Why do you specify an email address? Expecting a personal reply? Why not use the facilities of the forum so others can enjoy the answer?

    "What wil be the solution if I have to add more variables even more, shall I shore variable in CPU flash"

    What good is that going to do? Either way the variables are going to be loaded into RAM, regardless where in non-volatile memory they are stored. But of course, if their value changes slowly, you might want to consider storing them AND maintaining the value in non-volatile memory.
    Can you add external RAM/SRAM?

Children
No data