Part Number: CC2650DK
Other Parts Discussed in Thread: CC2650
How can i read and write in internal flash during run time?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: CC2650DK
Other Parts Discussed in Thread: CC2650
How can i read and write in internal flash during run time?
Yes I set a break point in SimpleBLEPeripheralObserver_processRoleEvent()
at case GAP_DEVICE_DISCOVERY_EVENT:
How can i save received data in internal flash of cc2650.(Data Received by UART and BLE both )
I have enable OSAL_SNV=1 in the stack project.set Preprocessor OSAL_SNV=1 and call osal_snv_write and write data of sdiRx buffer but not working.Please help
when i send data through UART it recieved in sdi_rxbuf.c file at SDITL_readTL(&RxBuf[RxBufTail],len);
I want to write this buffer(RxBuf) in internal flash.
Firstly, why is there a "VOID" in front of the function call?
VOID osal_snv_write(BLE_MAC_ADD_CONFIG, 6,RxBuf);
Secondly, you have to know that "it takes a lot of time" to write flash. During writing, CPU should be blocked. Task-switching is not permitted. So, your UART driver will be blocked, too. You have to check the implementation of "STL".
Personally, I don't use osal_snv_write() since I don't know how it is implemented. I call the low-level APIs directly and make sure interrupts are disabled while writing flash.
i am using spp ble server.
i want to add some bytes(variable) in scan response data in run as below
memcpy(&scanRspData[21],&var_bUff,10);
GAPRole_SetParameter(GAPROLE_SCAN_RSP_DATA, sizeof(scanRspData),
scanRspData);
but case GAPROLE_SCAN_RSP_DATA: return 0x02 for this , data also not updated.
can i update scan or advertise data in run time?