Other Parts Discussed in Thread: SYSCONFIG
Hi team,
Here's some issue from the customer may need your help:
The example project is C:\ti\simplelink_cc13x2_26x2_sdk_5_20_00_52\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_pe Ripheral_oad_offchip. The CLang compiler is used, and the IDE is CCS.
Simple_peripheral_oad_onchip.syscfg -> TI DRIVERS -> NVS has two NVS regions: CONFIG_NVSINTERNAL and CONFIG_NVSINTERNAL. Where Region Type of CONFIG_NVSINTERNAL1 selects Pointer, base address is 0x0, and region size is 0x34000, as shown in the following figure:
Q1: There is no CONFIG_NVSINTERNAL1 region in the simple_peripheral project, only CONFIG_NVSINTERNAL region.
What is the role of CONFIG_NVSINTERNAL1 in OAD Engineering? The base address is 0x0 and the area size is 0x34000, which is the firmware area for the entire application.
Why call nvs_read and nvs_write, dose is even need to modify the firmware's own code? The Region Type for CONFIG_NVSINTERNAL is Generated, the base address is 0x34000, and the region size is 0x4000, as shown in the following figure:
The compiled Memory Allocation is shown in the following figure, the entire Flash size is 136K, and the region defined by CONFIG_NVSINTERNAL is assigned to the .TI.bound.flashBuf0 section in FLASH. The size is 16384 (that is, 0x4000):
Select Region Type for CONFIG_NVSINTERNAL to Pointer, base address is 0x34000, and area size is 0x4000, as shown in the following figure:
The compiled Memory Allocation is as shown in the following figure, and the entire Flash size is 120K (16384 (0x4000) when Region Type is Generated). Cannot find zone assignment defined by CONFIG_NVSINTERNAL:
Q2: As prompted in sysconfig for the Region Type field, Generated — automatically generates the flash internal region; Pointer- assigns the region to the address specified by Region Base.
Is the pairing bind information for BLE saved in the area defined by CONFIG_NVSINTERNAL?
Is the region defined by CONFIG_NVSINTERNAL calling the osal_snv_read and osal_snv_write operations? Why is this area not present in the final firmware in the way that Pointer is configured? But test BLE pairing, binding, and osal_snv_read/write are normal.
Could you help check this case? Thanks.
Best Regards,
Cherry