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

arm FlashFS

Hi!
I'm using your FlashFS with LPC2119;but I Don't know How
to add __ram to IAP_Execute.c file ,There are five fountions in it:

void IAP_Execute (struct sIAP *pIAP)
U32 GetSecNum (U32 adr)
int fs_Init (U32 adr, U32 clk)
int fs_EraseSector (U32 adr)
int fs_ProgramPage (U32 adr, U32 sz, U8 *buf)

each of them must add __ram or some of them need add __ram?
Thanks!

Parents
  • Thanks Franc Urbanc to repaly my question!
    Now I found my problems:
    I don't know how to configure the FlashFS,In LPC2119,I configured asf_flashdev.h and asf_config.c in 4 ways:
    1.
    in asf_flashdev.h
    #define FLASH_DEVICE
    DFB(0x02000, 0x00A000),
    DFB(0x02000, 0x00C000),
    #define FL_NSECT 2
    in asf_config.c
    #define FL_BADR 0x0000a000
    #define FL_SIZE 0x00004000
    It don't work;
    2.
    in asf_flashdev.h
    #define FLASH_DEVICE
    DFB(0x02000, 0x008000),
    #define FL_NSECT 1
    in asf_config.c
    #define FL_BADR 0x00008000
    #define FL_SIZE 0x00004000
    It works well;

    3.
    in asf_flashdev.h
    #define FLASH_DEVICE
    DFB(0x02000, 0x008000),
    #define FL_NSECT 1
    in asf_config.c
    #define FL_BADR 0x00008000
    #define FL_SIZE 0x00002000
    It works well;

    4.
    in asf_flashdev.h
    #define FLASH_DEVICE
    DFB(0x02000, 0x00a000),
    #define FL_NSECT 1
    in asf_config.c
    #define FL_BADR 0x0000a000
    #define FL_SIZE 0x00002000
    It don't works;

    Can you tell me How to configure the FlashFS?

    Thanks very much!

Reply
  • Thanks Franc Urbanc to repaly my question!
    Now I found my problems:
    I don't know how to configure the FlashFS,In LPC2119,I configured asf_flashdev.h and asf_config.c in 4 ways:
    1.
    in asf_flashdev.h
    #define FLASH_DEVICE
    DFB(0x02000, 0x00A000),
    DFB(0x02000, 0x00C000),
    #define FL_NSECT 2
    in asf_config.c
    #define FL_BADR 0x0000a000
    #define FL_SIZE 0x00004000
    It don't work;
    2.
    in asf_flashdev.h
    #define FLASH_DEVICE
    DFB(0x02000, 0x008000),
    #define FL_NSECT 1
    in asf_config.c
    #define FL_BADR 0x00008000
    #define FL_SIZE 0x00004000
    It works well;

    3.
    in asf_flashdev.h
    #define FLASH_DEVICE
    DFB(0x02000, 0x008000),
    #define FL_NSECT 1
    in asf_config.c
    #define FL_BADR 0x00008000
    #define FL_SIZE 0x00002000
    It works well;

    4.
    in asf_flashdev.h
    #define FLASH_DEVICE
    DFB(0x02000, 0x00a000),
    #define FL_NSECT 1
    in asf_config.c
    #define FL_BADR 0x0000a000
    #define FL_SIZE 0x00002000
    It don't works;

    Can you tell me How to configure the FlashFS?

    Thanks very much!

Children
No data