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.

cc2530 使用hal_flash 读写flash

Other Parts Discussed in Thread: CC2530

void main()
{

       uint8 writedata[20]={"hello! cc2530!"};
       uint8 readdata[20];


          delay(10);
          while(1)
         {

                  HalFlashErase(120);//
                 delay(10);
                 while( FCTL & 0x80 );
                 HalFlashWrite(0xf000, writedata,20);
                 delay(10);
                 HalFlashRead(120, 0, readdata,20);
                delay(10);
          }
}

调用hal_flash 完成flash操作,读写都没有成功,调试好些天还没拿下呀!论坛翻了好多遍,现在还是不知道问题出在哪里!