Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2652RB
The data is zeros utilising sensor controller unless debugged through CCS or after the reset button is pushed, not on power cycle on a battery, any idea why this may be?
thanks
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.
its a simple peripheral project, the same issue I have with the newer version of our firmware for a cc2652rb
i both initialise and then poll the sensors using
// Schedule the next execution
fwScheduleTask(1);
i believe there to be something wrong with initalising the sensor on startup on power cycle could it be to do with this, I set up the sci before tasks ect as instructed running at 40hz readings
using i2c the pins are definitely not being shared anywhere, on startup cannot find any logical reason why on debug and reset the values from the sensor would be valid and power cycle would be 0
isit possible to read out the tick value from the sensor contoller?
Hey Alexander,
I'm linking your prior related E2E thread for reference. I have several questions:
You could provide the tick as a counter variable to the application.
Regards,
Ryan
it is once integrated into a BLE project
Not using any OAD version in this instance
BLE functionality is correct it is reading the same values over and over or zero
yes the behaviour was both battery and JTAG
Yes I believe this did resolve the issue, I added a large delay at the beginning of the sensor setup and set the sensor controller to setup on BLE connection not on power up, this resolves the issue I believe, thanks
How can I expose the tick as a counter from within sensor controller? thanks
Thanks for confirming that the issue was a startup race condition. There are several tick sources in the Sensor Controller so I don't know exactly what you are referring to. My suggestion was to create a variable which is incremented every time the Execution Code is processed.
Regards,
Ryan
so we are running the sensor controller at 40hz and we want to make sure that there isnt a delay between that data as previously when reading the sensors through i2c on the boards the timestamp showed a larger gap of readings than 25ms, due to the functions taking longer, so what we wanted was extra to the timestamp we have external to the sensor controller, a way of confirming these readings are taking place at 40hz, and our external timestamp isnt timestamping older readings ect
Thank you for providing further details. The Sensor Controller can send an ALERT event at which point the System CPU can record the time within the application callback. https://software-dl.ti.com/lprf/sensor_controller_studio/docs/cc13x2_cc26x2_help/html/firmware_framework__1.html
Regards,
Ryan