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
Can't you do it with the Target options pane, or with a scatter file? And use directives or pragmas to drive placement?
thank you for answer But is this attribute LPC EXPRESSO Do you believe there's no way in keil
Do not misunderstand I mean the question of the text before I was just wondering if it is possible or not in Keil Thanks for the tips
Keil is certainly capable of compiling/linking code at whatever addresses you tell it too.
thank you I realized with the following command: unsigned char *x2 = (unsigned char *)(0x2007C000)
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.
hi This is where you can order without addressing the program will randomly Rome 2 Please If you can explain more that
Excuse me My intention RAM2 but I wrote Rome 2
Please review some of the product documentation.