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.

Cc2650: Flash read write with flash.c

Part Number: CC2650


Hi,

I am using flash.c driver​ to read write flash on sppbleserver. In sppbleserver_init(),

I am writing a value of 32 bytes in flash at memory location at 0x1e000.

The written value alive in the flash before reset.

If I reset the board/ repower the board. While i am reading at sppbleserver_init() it was erased. It was erased at Icall.

How can I retain the value after reset.

I like to use flash.c driver only. That's why we skipped Osal_snv_read and write.

Please give us a solution.

Thanks,

Santhananarayanan

  • Hi Santhananarayanan,

    Do you have the SNV enabled? That could be why it's getting erased.

    Try disabling SNV and seeing if that solves the issue. If you're just planning on using your own Flash driver, there's really no reason to have SNV (other than to save bonds) In which case, you'll need reserve flash for your driver or switch over to SNV. (Or maybe pursue another method, why do you want to do this?)

    Regards,
    Rebel
  • Hi,

    We tried disabling the SNV by setting NO_OSAL_SNV in Predefined symbols and disabled the -DGAP_BOND_MGR in build_config.opt.

    then the code does not run after main.

    we are using the rfpacketRx.c RxTask also with sppbleserver task. we are separating the two tasks to run based on the GPIO pin input on main .

    main()
    {
    input = PIN_getInputValue(Board_DIO15);
      if(input == 1)
      {
     RxTask_init();
      }
      else
      {
        ICall_init();
        ICall_createRemoteTasks();
        GAPRole_createTask();
        SPPBLEServer_createTask();
        SDITask_createTask();
      }    
      BIOS_start();
    }

    we have to share the flash data at same memory location between both tasks.

    since the SNV could not be used without ICALL in rfpacketRx task, we are using flash.c driver

    Please provide us solution to achieve this.

    thanks,

    Santhananarayanan