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 ENABLE RAM2 LPC1768 IN KEIL

HI
I'm going to RAM2 on LPC1768 microcontroller will activate the program KEIL
I want to put a variable in RAM2
If you have information about a friend who can help me
Thank you

Parents
  • That is just one way of doing it. In this case, you have a pointer stored at the memory region the linker decides (probably the first) and pointing to something at a location you have decided.

    The linker will automagically use both memory regions if the first can't fit all variables.

    And you can specify in the scatter file that a specific source file should have the variables in a specific memory region.

    Or you can specify that a variable should be at an absolute address (as long as you don't also try to give it an initial value).

    Or you can specify that a range of variables in a source file should be placed in a specific memory region.

    So a huge number of options available.

Reply
  • That is just one way of doing it. In this case, you have a pointer stored at the memory region the linker decides (probably the first) and pointing to something at a location you have decided.

    The linker will automagically use both memory regions if the first can't fit all variables.

    And you can specify in the scatter file that a specific source file should have the variables in a specific memory region.

    Or you can specify that a variable should be at an absolute address (as long as you don't also try to give it an initial value).

    Or you can specify that a range of variables in a source file should be placed in a specific memory region.

    So a huge number of options available.

Children