1 of 1 people found this helpful
I realized you might have put the following piece of code
bleprofile_WriteNVRAM(VS_BLE_HOST_LIST, sizeof(UINT8), (UINT8 *)&TestReadFlag1);
TestReadFlag3 = bleprofile_ReadNVRAM(VS_BLE_HOST_LIST, sizeof(UINT8), (UINT8*)&TestReadFlag2);
ble_trace2("TestReadFlag2 is %d, Read result is %d", TestReadFlag2, TestReadFlag3);
Reason why it needs to be after this method is since GPIOInit enables the write protect for writing data in NVRAM.
I tried it and verified and it works on both hello_sensor and cycling_speed_cadence.
I found the reason, I changed Port1 from GPIO_PIN_WP to commented.