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

Using RL-FlashFS in bootloader and main program

Hello, All!
I write bootloader using RL-FlashFS Library. It's work fine.
But when i try to use RL-FlashFS functions in main program my LPC2367 is stoping(in ABORT MODE).
Maybe i must locate RL-FlashFS functions on other part of RAM ???
Where is my mistake?

With best regards, Vladimir.

Parents
  • Tamir, i remaped interrupts vectors using:
    RAM_INTVEC REMAP RAM_MODE in ASM Define.(using interrupt vectors from RAM )

    In code i add string:
    memcpy((char *)0x40000000, (char *)(0x000010000), 64); (copy interrupt table to start address of RAM)

    In project for ROM set START Address : 0x00010000
    In project for RAM set START Address : 0x40002000(instead 0x40001000)

    And previous problem has gone.
    But second problem is appeared.
    But, when i try to use timer 0 interrupts in bootloader, these interrupt don't calling in main program.
    Maybe i don't really remap interrupt table and forget something???

    With best regards, Vladimir.

Reply
  • Tamir, i remaped interrupts vectors using:
    RAM_INTVEC REMAP RAM_MODE in ASM Define.(using interrupt vectors from RAM )

    In code i add string:
    memcpy((char *)0x40000000, (char *)(0x000010000), 64); (copy interrupt table to start address of RAM)

    In project for ROM set START Address : 0x00010000
    In project for RAM set START Address : 0x40002000(instead 0x40001000)

    And previous problem has gone.
    But second problem is appeared.
    But, when i try to use timer 0 interrupts in bootloader, these interrupt don't calling in main program.
    Maybe i don't really remap interrupt table and forget something???

    With best regards, Vladimir.

Children