diff --git a/components/nvs_flash/nvs_partition_generator/README.rst b/components/nvs_flash/nvs_partition_generator/README.rst index ae6212f511..3a78a109d6 100644 --- a/components/nvs_flash/nvs_partition_generator/README.rst +++ b/components/nvs_flash/nvs_partition_generator/README.rst @@ -29,9 +29,10 @@ Each line of a .csv file should contain 4 parameters, separated by a comma. The +-----+-----------+----------------------------------------------------------------------+-----------------------------------------------------+ | 2 | Type | Supported values are ``file``, ``data`` and ``namespace``. | | +-----+-----------+----------------------------------------------------------------------+-----------------------------------------------------+ -| 3 | Encoding | Supported values are: ``u8``, ``i8``, ``u16``, ``u32``, | As of now, for the ``file`` type, | -| | | ``i32``, ``string``, ``hex2bin``, ``base64`` and ``binary``. | only ``hex2bin``, ``base64``, ``string``, | -| | | This specifies how actual data values are encoded in the | and ``binary`` encoding is supported. | +| 3 | Encoding | Supported values are: ``u8``, ``i8``, ``u16``, ``i16``, ``u32``, | As of now, for the ``file`` type, | +| | | ``i32``, ``u64``, ``i64``, ``string``, ``hex2bin``, ``base64`` | only ``hex2bin``, ``base64``, ``string``, | +| | | and ``binary``. | and ``binary`` encoding is supported. | +| | | This specifies how actual data values are encoded in the | | | | | resulting binary file. The difference between the ``string`` | | | | | and ``binary`` encoding is that ``string`` data is terminated | | | | | with a NULL character, whereas ``binary`` data is not. | | diff --git a/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py b/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py index 3bc10e8c3f..1bfe3f711f 100755 --- a/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py +++ b/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py @@ -75,6 +75,8 @@ class Page(object): I16 = 0x12 U32 = 0x04 I32 = 0x14 + U64 = 0x08 + I64 = 0x18 SZ = 0x21 BLOB = 0x41 BLOB_DATA = 0x42 @@ -432,12 +434,21 @@ class Page(object): elif encoding == "u16": entry_struct[1] = Page.U16 struct.pack_into('