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.

SPI and external flash

Other Parts Discussed in Thread: CC2650, CC2650STK

Hi, experts

We are currently working in a project referring to CC2650 SensorTag and its official project source code.
We plan to take advantage of external flash to store some sensor data. However, I got a little confused with SPI and external flash.

(1) There is a self-test function sensorTestExecute() in SensorTag_init(), and it would test external flash by checking manufacture and device IDs of external flash in final step. To my understanding, DIO_17 is used as TDI of JTAG and SCLK of external flash so the previous flash checking would fail if we connect CC-DEVPACK-DEBUG to CC2650STK in debug mode.

This would result in flashing of red LED1 before sensortag begins to advertise. Is it correct ?

(2) There is another header file "SENSORTAG_CC2650.h" under "Projects/ble/common/cc26xx/resources/" which defines SPI SCLK to IOID_11. Dose our SensorTag project use this ?

(3) If we want to replace original external flash by another Winbond's 8M flash, do we need to modify any SPI related source code except for "ext_flash_layout.h" ?

(4) Is it possible to store some useful data in external flash in current SensorTag project ?

(5) Except for flash checking, everything works fine in debug mode with CC-DEVPACK-DEBUG connected on our device, but fail to work in normal mode with battery only. Neither LED1 nor LED2 flash.

Any suggestion will be appreciated.

Thank you.

  • Hello,

    The current SensorTag SW does not utilize ext SPI flash for data logging. That function may come in a later release, TBD. However, as you indicate, you can modify the source code in the SDK to enable this function. You can see the full schematics at www.ti.com/sensortag under Teardown, this may help with your layout related quesitons.

    In terms of using another flash part, there may or may not be driver changes depending on the compatibility of the selected part.

    For the issue where it doesn't work in normal mode w/o the CC-DEVPACK-DEBUG attached, have you incrementally added your code changes to to see where/when it stops working?

    Best wishes
  • Hi, JXS

    Thank you for your reply.

    About external flash, CC2650 SensorTag makes use of external flash for OAD currently, so I think it would work if I modify or add some functions to current project.

    About schematics, yes, I have checked it so I got confused with question (2). I just want to make sure that I don't misunderstand it.

    For the last debug mode issue, it's the strangest part. I keep the same firmware for debug and normal modes. The only difference is that CC-DEVPACK-DEBUG is attached or not.
    Besides, if I add a SensorTag_blinkLed() before sensorTestExecute() in SensorTag_init(), device would work ! However, this does not make sense, and I cannot figure it out. XD

    Any suggestion or advice will be appreciated.

    Thank you.
  • Hi,

    About the last issue, I think it would be the H/W issue on our device after some tests, and my colleagues is trying to clarify it.
    : )

    Thank you.