Hi Sir;
I want to save some data to the CC2540 under network processor mode, so i try UTIL_NVWrite API with NVID above 0x80(NV for application usage). It returns failure with invalid parameter error. Then i try another NVID(0x20) listed for GAP Bond Manager, still failed. Can you help to explain this?
Here lists the packets log for test using btool.
[1] : <Tx> - 05:24:33.284
-Type : 0x01 (Command)
-Opcode : 0xFE82 (UTIL_NVWrite)
-Data Length : 0x10 (16) byte(s)
NvID : 0x80 (128)
NvDataLen : 0x0E (14)
NvData : 01:02:03:04:05:06:07:08:09:10:11:12:00:00
Dump(Tx):
01 82 FE 10 80 0E 01 02 03 04 05 06 07 08 09 10
11 12 00 00
------------------------------------------------------------------------------------------------------------------------
[2] : <Rx> - 05:24:33.301
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (GAP_HCI_ExtentionCommandStatus)
Status : 0x02 (Invalid Parameter)
OpCode : 0xFE82 (UTIL_NVWrite)
DataLength : 0x00 (0)
Dump(Rx):
04 FF 06 7F 06 02 82 FE 00
------------------------------------------------------------------------------------------------------------------------
[1] : <Tx> - 05:13:04.384
-Type : 0x01 (Command)
-Opcode : 0xFE82 (UTIL_NVWrite)
-Data Length : 0x10 (16) byte(s)
NvID : 0x20 (32)
NvDataLen : 0x0E (14)
NvData : 01:02:03:04:05:06:07:08:09:10:11:12:00:00
Dump(Tx):
01 82 FE 10 20 0E 01 02 03 04 05 06 07 08 09 10
11 12 00 00
------------------------------------------------------------------------------------------------------------------------
[2] : <Rx> - 05:13:04.400
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (GAP_HCI_ExtentionCommandStatus)
Status : 0x02 (Invalid Parameter)
OpCode : 0xFE82 (UTIL_NVWrite)
DataLength : 0x00 (0)
Dump(Rx):
04 FF 06 7F 06 02 82 FE 00