Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: Undefined external HalFlashWrite on cc2540

$
0
0

hello

i am writing a application program where i need to save the data dynamically in flash memory when the application is running 

so i am using halflashwrite and halflashread

#define FADDRH XREG( 0x6272 )

uint8 data1[4];
uint8 data[]={0xff,0xff,0x00,0x00};

HalFlashWrite(FADDRH, data, 1);


 HalFlashRead(0x01,FADDRH, data1,4);

Linking 

Error[e46]: Undefined external "HalFlashWrite::?relay" referred in usb_serial ( D:\sudhir\Embedded Code\Tmpsensor\Debug\Obj\usb_serial.r51 )

Error[e46]: Undefined external "HalFlashRead::?relay" referred in usb_serial ( D:\sudhir\Embedded Code\Tmpsensor\Debug\Obj\usb_serial.r51 ) 

Error while running Linker

Total number of errors: 2
Total number of warnings: 0

i can see only declarations like

void HalFlashRead(uint8 pg, uint16 offset, uint8 *buf, uint16 cnt);

and 

void HalFlashWrite(uint16 addr, uint8 *buf, uint16 cnt);

in header file 

please help me for solving this errors


Viewing all articles
Browse latest Browse all 116964

Trending Articles



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