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

Try to run all code from RAM memory

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.

Parents
  • 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);
    }

Reply
  • 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);
    }

Children