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.