5 Replies Latest reply on Feb 19, 2013 10:53 AM by userc_43634

    Modify code size in fx3.ld file

      I am working on FX3 firmware, my firmware size about 200KB is bigger than the default 180KB in fx3.ld, I changed the fx3.ld file as attached:

      SYS_MEM : ORIGIN = 0x40003000 LENGTH = 0x3D000
      DATA : ORIGIN = 0x40040000 LENGTH = 0x8000

      Also I changed the RTOS heap area in cyfxtx.c

      #define CY_U3P_MEM_HEAP_BASE ((uint8_t *)0x40040000/*0x40038000*/)
      #define CY_U3P_MEM_HEAP_SIZE (0x8000)

      Compiler PASS, but PC host can't build the connection with FX3. If I reduced the file size and used the defualt fx3.ld, everything works normally.

      What is my problem and how to fix it? Thank you!