Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CC1310: CC1310 Error Write to Internal Flash

$
0
0

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

voidFlashReadNonCache(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?


Viewing all articles
Browse latest Browse all 262198

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>