Part Number:CC1310
Hi. I'm trying to write to internal flash a few bytes and trying to use function from this topic https://e2e.ti.com/support/wireless-connectivity/zigbee-and-thread/f/158/t/506551
But i have a problem when using flahread function with vims.c functions
void
FlashReadNonCache(uint8_t * pui8DataBuffer, uint32_t ui32Address, uint32_t ui32Count) {
uint32_t OldVIMSState = VIMSModeGet();
VIMSModeSet(VIMS_BASE, VIMS_CTL_MODE_GPRAM);
uint8_t* pui8ReadAddress = (uint8_t *)ui32Address;
while
(ui32Count--) {
*Pui8DataBuffer++ = * pui8ReadAddress++;
}
VIMSModeSet(VIMS_BASE, OldVIMSState);
}
The error is:
error: too few arguments to function 'NOROM_VIMSModeGet'
uint32_t OldVIMSState = NOROM_VIMSModeGet();
../../arch/cpu/cc26x0-cc13x0/lib/cc13xxware/driverlib/vims.h:85:45: note: declared here
#define VIMSModeGet NOROM_VIMSModeGet
^
../../arch/cpu/cc26x0-cc13x0/lib/cc13xxware/driverlib/vims.h:226:17: note: in expansion of macro 'VIMSModeGet'
extern uint32_t VIMSModeGet(uint32_t ui32Base);
What i'm doing wrong?