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.

LP-CC1352P7: How to add "SPI FFS INTERNAL" example functionality into ble central code

Part Number: LP-CC1352P7
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hello,

I have LP-CC1352P7-4 launchpad and have implemented a ble central code which receive image byte array data over uart port from another linux board and then sends this image byte array data to ble peripherals.

But I want to store this data received over uart before sending it to ble peripherals.

I seperately tried with SPI FFS INTERNAL example code which stores the data properly in spi ffs file system without errors.

When I am trying to integrate this spi ffs internal file system code into my ble central code, it is failing.

I have added the spi ffs initialisation part just after the ble central task initialisation function and before starting the task infinite loop.

But I am getting error at driver initialisation level.

The spi ffs driver handle is returning the NULL.

Thank you 

Dnyaneshvar salve

  • Hi Dnyaneshvar,

    If I understand you correctly, you're using the simple_central example as your starting point. You want to store an image on the external flash.

    I would recommend you just to use SysConfig to add an NVS instance and select the external flash (MX25R8035F SPI flash) for Use Hardware. This will also add the necessary SPI pins.

    You can see an example implementation in the simple_peripheral_oad_offchip example.

    Cheers,

    Marie H

  • Hi Marie H,

    I want to use internal flash memory and not the external flash.

    NVS driver was already present in the base code

    Do i need to addd the SPI driver also for internal flash memory uses?

    or the NVS driver is already initialised somewhere else?

    thank you,

    Dnyaneshvar Salve

  • Hi Dnyaneshvar,

    Ok. If you're using internal flash you don't need to use SPI.

    Did you specifically need to use SPI FFS? If not I would recommend you to use NVS. You can define your own NVS internal region, or use the one which is already defined in the example. (It's used by the BLE stack for connection information.)

    Cheers,

    Marie H

  • Hello Marie H,

    Now, I have defined my own NVS internal region. and using NVS driver instead of "spiffs internal" example code.

    It is working without errors.

    Thanks a lot for the help...

    Dnyaneshvar Salve