diff --git a/Documentation/platforms/risc-v/bl602/index.rst b/Documentation/platforms/risc-v/bl602/index.rst index d9bce20823..d72c1ad3e5 100644 --- a/Documentation/platforms/risc-v/bl602/index.rst +++ b/Documentation/platforms/risc-v/bl602/index.rst @@ -40,7 +40,7 @@ nsh First make sure the ``riscv-gnu-toolchain`` has been installed correctly. -Configure the NUttX project: ``./tools/configure.sh bl602evb:nsh``. Run +Configure the NuttX project: ``./tools/configure.sh bl602evb:nsh``. Run ``make`` to build the project. .. code:: shell @@ -52,7 +52,7 @@ Configure the NUttX project: ``./tools/configure.sh bl602evb:nsh``. Run wifi ---- -Configure the NUttX project: ``./tools/configure.sh bl602evb:wifi``. Run +Configure the NuttX project: ``./tools/configure.sh bl602evb:wifi``. Run ``make`` to build the project. .. code:: shell @@ -101,14 +101,16 @@ Config download **Configuration parameters include:** +- **Factory Params**: Use the dts file in the device_tree folder of the + corresponding chip model in the Dev Cube directory. The default + selection is 40M. + - **Partition Table**: Use the partition table in the partition folder of the corresponding chip model in the Dev Cube directory, and 2M files are selected by default for BL602 -.. - - For the nuttx operating system, BL602 has a dedicated partition file. - For details, please contact us. + **For the nuttx, BL602 has a dedicated partition file. It is placed + in** ``nuttx/tools/bl602`` - **Boot2 Bin**: It is the first Flash program that runs after the system is started. It is responsible for establishing the BLSP diff --git a/tools/bl602/partition_cfg_2M_nuttx.toml b/tools/bl602/partition_cfg_2M_nuttx.toml new file mode 100644 index 0000000000..790f2e4271 --- /dev/null +++ b/tools/bl602/partition_cfg_2M_nuttx.toml @@ -0,0 +1,50 @@ +[pt_table] +#partition table is 4K in size +address0 = 0xE000 +address1 = 0xF000 + +[[pt_entry]] +type = 0 +name = "FW" +device = 0 +address0 = 0x10000 +size0 = 0x111000 +address1 = 0x121000 +size1 = 0xA0000 +# compressed image must set len,normal image can left it to 0 +len = 0 + +[[pt_entry]] +type = 2 +name = "mfg" +device = 0 +address0 = 0x121000 +size0 = 0xA0000 +address1 = 0 +size1 = 0 +# compressed image must set len,normal image can left it to 0 +len = 0 + +[[pt_entry]] +type = 3 +name = "factory" +device = 0 +address0 = 0x1C1000 +size0 = 0x4000 +address1 = 0 +size1 = 0 +# compressed image must set len,normal image can left it to 0 +len = 0 + +# for user +[[pt_entry]] +type = 4 +name = "chipdef" +device = 0 +address0 = 0x1C5000 +size0 = 0x3B000 +address1 = 0 +size1 = 0 +# compressed image must set len,normal image can left it to 0 +len = 0 +