Other Parts Discussed in Thread: CC2640
Tool/software:
Hi,
We are migrating SDK from v1.50.00.58 to v5.30.00.03 using the following migration guides.
After the sdk upgrade, We are running into the issue where cc2640 would stop advertising after around 15 minutes. Something we also reported in the past but could not find solution. Please note that with old sdk, we never faced the same issue as we already around fifty thousand of devices already in the field.
When device stops advertising, we noticed that power module stops sending notifications registered by application using Power_registerNotify. However, the spi communication between host processor and cc2640 works as expected. We also tried to debug using ROV but we didn't see anything there.
Our device uses spi trasport for communication with the host processor. We also noticed that we if we comment out Power_registerNotify that registers spiPostNotify callback with wake up from standby event then device continue advertising for the indefinite period.
Can you please help/guide us further on how to debug/fix this issue?
Please find below the logs for the last power state before device stopped advertisement.
#020875 [ 899.770 ] INFO: (../Driver_SPI/SPICC26XXDMA.c:1118) SPI:(@40000000) CPU freq: 48000000; SPI freq to 5000000
#020876 [ 899.770 ] INFO: (../Startup/main.c:411) Power Event 8
#020877 [ 899.770 ] INFO: (../Startup/main.c:411) Power Event 16
#020878 [ 899.815 ] INFO: (../Startup/main.c:411) Power Event 1
#020879 [ 899.983 ] INFO: (../Startup/main.c:411) Power Event 4
#020880 [ 899.983 ] INFO: (../Driver_SPI/SPICC26XXDMA.c:1118) SPI:(@40000000) CPU freq: 48000000; SPI freq to 5000000
#020881 [ 899.983 ] INFO: (../Startup/main.c:411) Power Event 8
#020882 [ 899.984 ] INFO: (../Startup/main.c:411) Power Event 16
#020883 [ 900.028 ] INFO: (../Startup/main.c:411) Power Event 1
#020884 [ 900.199 ] INFO: (../Startup/main.c:411) Power Event 4
#020885 [ 900.199 ] INFO: (../Driver_SPI/SPICC26XXDMA.c:1118) SPI:(@40000000) CPU freq: 48000000; SPI freq to 5000000
#020886 [ 900.199 ] INFO: (../Startup/main.c:411) Power Event 8