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

LPC1778 can't start from any IROM Address only 0x0

Dear All,

I use LPC1778 and try to divide internal flash memory for my handmade bootloader and firmware.
And when i set another IROM1 start address for my firmware (for example 0x1000) i see SWD Communication Failure message in window "Building Output". After that i can't debug or update my mcu. Can use only ISP.
Why changing IROM1 start address is stopping MCU?
What i have to do to run my code from any address?
P.S. When i use LPC2367 there is no these problems.
P.P.S. My version 4.53

I trying apply RAM_MODE, REMAP commands for my startup file. But doesn't work.
With best regards, Vladimir.

Parents
  • Thanks for the info Vladimir!.
    What i have done is- used the jump instruction and it works fine.
    Now, I have introduced RTX in my App code - as soon as I do that - the jump does not work fine.
    Is there something special that needs to be done in case of RTX in App code?

    Boot code goes like this:

    typedef  void ( *AppCode )(void);
    static const AppCode AppCodeStart = (AppCode)(0x4001);
    
    int     main(void)
    {
        __disable_fault_irq( );
        AppCodeStart();
    }
    

    When there is no reference to RTX there is no issue. But as soon as I introduce RTX in App code - my jump comes back to the boot

    -Vani

Reply
  • Thanks for the info Vladimir!.
    What i have done is- used the jump instruction and it works fine.
    Now, I have introduced RTX in my App code - as soon as I do that - the jump does not work fine.
    Is there something special that needs to be done in case of RTX in App code?

    Boot code goes like this:

    typedef  void ( *AppCode )(void);
    static const AppCode AppCodeStart = (AppCode)(0x4001);
    
    int     main(void)
    {
        __disable_fault_irq( );
        AppCodeStart();
    }
    

    When there is no reference to RTX there is no issue. But as soon as I introduce RTX in App code - my jump comes back to the boot

    -Vani

Children