We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi.
I have a problem, I want to run all my code from RAM memory. I try to do it with a scatter file. But after alot of experiments, I think it's cannot be done, because the interrupts vector has to be in the flash. And it's mean that in any interrupt I will 'go' to flash in an interrupt.
So there is another way to run all my code from the RAM? If not how the scatter file should be looked like?
Thnks.
But now when you know that you can normally remap the interrupt vectors into RAM - have you checked the datasheet for your processor?
And have you looked if any of the Keil examples has a RAM target?
Sure. And I don't find a thing if you can help me, will be thanks.
I tried for some weeks already.
Hi every one,
i am using C pro. i m new here and want to use the new technick of programing . the problem is that i wanna drive my LCD using code by C pro. here is the program but not working means not appearing the text i wanna print. Second thing is that just boxes in 1st and 3rd rows are glowing. can any body please help me to find the mistake i m doing here.
sbit LCD_RS at bit; sbit LCD_EN at bit; sbit LCD_D4 at bit; sbit LCD_D5 at bit; sbit LCD_D6 at bit; sbit LCD_D7 at bit; sbit LCD_RS_Direction at bit; sbit LCD_EN_Direction at bit; sbit LCD_D4_Direction at bit; sbit LCD_D5_Direction at bit; sbit LCD_D6_Direction at bit; sbit LCD_D7_Direction at bit; char *text; char *sak;
void main() { text = "c POR"; TD=0; Lcd_Init();
Lcd_Cmd(_LCD_CLEAR); Lcd_Cmd(_LCD_CURSOR_OFF); Lcd_out(1, 1, text); Delay_ms(4000); }
You have searched for weeks?
Have tried searching for "remap" in the datasheet for the processor? What is your conclusion? What have you tried to do, based on the datasheet information? What was the outcome?
What does this have to do with the current topic of discussion; viz, "run all code [for an at91sam7x256] from RAM memory" ?!
"i am using C pro"
What is that? It's not a Keil product - is it?
See: http://www.keil.com/forum/
you can start by actually making sure you don't leave the main function by adding an infinite loop, like this:
int main(void) { <your code starts here> . . . <your code ends here> for (;;) ; }
ok I succeed to run the main from the RAM but my main problem is the interrupts vector. The Reset inerrupt must be in the flash. but the other interrupt vector need to be in the ram, because, I don't wont to jump in any interrupt to the flash, I want that the flash get in low power mode.
Have you still not read the datasheet information about remapping the interrupt vector table to RAM?
Remapping of the interrupt vector table means that a part of the RAM is mapped on top of the flash, so the ARM core thinks that it reads interrupt vectors from flash, when in reality the vectors are stored in RAM, allowing you to modify them on-the-fly.
I search this in the data sheets but I don't see something like this. I work with AT91SAM7X. If you can show me who to do it I will thak you.
You see nothing?
17-May-2010 14:14 GMT, I asked you if you had checked the "remap" command in the datasheet.
Now, I ask you again - don't you see anything about remapping the RAM to overlap the flash in the datasheet? Have you tried to let your pdf reader actually search for "remap" in the datasheet? Have you checked all places where the word "remap" is used? And you still find nothing about how to store interrupt vectors in RAM?
RAM_INTVEC REMAP RAM_MODE