Worksheet for Calculating the Save Data File System Capacity

Calculates the amount of space used by save data and expanded save data.

CTR Card Save Data

Calculates the amount of data that can actually be saved in save data.

Save data manages data in a fixed size of 512 bytes. On this worksheet, this fixed size is referred to as a block.
Note that this differs from the definition of a block (128 KB) that is displayed on the CTR Menu.


Input Parameters
Type of Application CTR card-based software (Card1) / SD application
CTR card application (Card2) / SD application
Protection Type No automatic redundancy. (Any save data that is being written will be corrupted if the Game Card is removed. )
Automatic redundancy. (Any save data that is being written will be protected against corruption even if the Game Card is removed. )
Recordable Media 128KB of backup memory
512 KB of backup memory
1 to 2047 MB user-specified
MB
Maximum Number of Directories (0-?) (Total number of directories that can be created throughout the entire file system.)
Maximum Number of Files (1-?) (Total number of files that can be created throughout the entire file system.)

Amount of Data That Can Be Saved
Save Data Block Size bytes
Number of Save Data Blocks blocks
Save Data Capacity bytes = KB (= block size × number of blocks)

Expanded Save Data

Calculates the data size space of the expanded save data.

Expanded save data manages data with a fixed size of 4,096 bytes. On this worksheet, this fixed size is referred to as a block.
Note that this differs from the blocks as displayed on the CTR Menu, where 1 block = 128 KB.

Calculates the number of blocks consumed in expanded save data. Depending on the SD Card format, the actual memory footprint on the SD Card may be greater than the values shown here. Note that nn::fs::ResultNotEnoughSpace may be returned even if an SD Card has as much free space as the sizes shown here.

Metadata

Calculates the size (in number of blocks) used when expanded save data is created.
Input Parameters
Icon Data Size bytes
Maximum Number of Directories (0-?) (Total number of directories that can be created throughout the entire file system.)
Maximum Number of Files (1-?) (Total number of files that can be created throughout the entire file system.)

Space Used
Block Size for Expanded Save Data 4,096 bytes
Number of Blocks Used for Expanded Save Data blocks
Memory Size Used for Expanded Save Data bytes / KB

File

Calculates the size (in number of blocks) that can be used when a single file is created in expanded save data. The actual size may be smaller than the size (in number of blocks) shown.

Input Parameters
Protection Type No automatic redundancy. (Any save data that is being written will be corrupted if the SD Card is removed. )
Amount of Data That Can Be Saved KB

Space Used
Block Size for Expanded Save Data 4,096 bytes
Number of Blocks Used for Expanded Save Data blocks
Memory Size Used for Expanded Save Data bytes / KB

Revision History

2011/10/12
Added support for Card2 save data.
2011/02/09
Added notes about the definition of "blocks."
2010/12/16
Added worksheets for expanded save data calculations.
2010/12/11
Initial version.

CONFIDENTIAL