Memory Requirements of SpansionFS + Block Driver + SLLD

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lopac_4073346
Level 1
Level 1

Hi,

I've been trying to fit the SpansionFS + BlockDriver + SLLD on a Cortex M0+ with 32kb of RAM and can't seem to make it fit.  The .bss region is always about 50k over even when I reduce the Fat and Lim cache num to their minimum values.

What's the minimum size RAM needed to run the SpansionFS + Block Driver + SLLD?

Thanks!

0 Likes
1 Solution
SudheeshK
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hi Lon Palmer,

Can you configure our FFS package as below and check if the memory consumption reduces?

FTL/Format.h (to fit with S25FL512S): (Please change the values according to the Cypress flash device that you use)

  • FTL_DEVICE_TYPE = FTL_DEVICE_NOR
  • EBLOCK_SIZE = 0x40000 (256KB)
  • NUMBER_OF_ERASE_BLOCKS = 256

FTL/source/include/ftl_if_ex.h (to fit with PSoC 5LP RAM/ROM resource):

  • CACHE_RAM_BD_MODULE = FTL_TRUE
  • CACHE_MINIMUM_RAM = FTL_TRUE

FileSystem/custionfs.h (to fit with PSoC 5LP RAM/ROM resource):

  • IONFS_CPATH -> undefined
  • IONFS_CDATA -> undefined
  • IONFS_WB -> undefined
  • FAT_HEAP_SIZE = 2048
  • LIM_CACHE_NUM = 1
  • FAT_CACHE_NUM = 2

Which is the Cypress flash device that you use in your application?

Thanks and Regards,

Sudheesh

View solution in original post

0 Likes
1 Reply
SudheeshK
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hi Lon Palmer,

Can you configure our FFS package as below and check if the memory consumption reduces?

FTL/Format.h (to fit with S25FL512S): (Please change the values according to the Cypress flash device that you use)

  • FTL_DEVICE_TYPE = FTL_DEVICE_NOR
  • EBLOCK_SIZE = 0x40000 (256KB)
  • NUMBER_OF_ERASE_BLOCKS = 256

FTL/source/include/ftl_if_ex.h (to fit with PSoC 5LP RAM/ROM resource):

  • CACHE_RAM_BD_MODULE = FTL_TRUE
  • CACHE_MINIMUM_RAM = FTL_TRUE

FileSystem/custionfs.h (to fit with PSoC 5LP RAM/ROM resource):

  • IONFS_CPATH -> undefined
  • IONFS_CDATA -> undefined
  • IONFS_WB -> undefined
  • FAT_HEAP_SIZE = 2048
  • LIM_CACHE_NUM = 1
  • FAT_CACHE_NUM = 2

Which is the Cypress flash device that you use in your application?

Thanks and Regards,

Sudheesh

0 Likes