- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there, hope you're all doing well.
I am working on a project on the CYBLE 416045-02 on PSOC creator 4.3, where I am using the psoc 6 as a BLE peripheral to send data acquired from the ADC and send it periodically using an RTC or MCWDT interrupt. I am also using RTOS in my code.
Till now, I got to the point where I can succefully transfer data to the BLE central device (an ESP32) but could not get around on how to send it periodically and go into deep sleep mode when not advertising.
I attached my code on the post for reference.
Are there any example codes or documentation that feature RTOS, BLE, RTC/MCWDT and deep sleep mode all together (I know it's a lot to ask for), if so please let me know down below.
Thank you!
Fellow Psoc 6 developer
Garen
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please can you go through this below document for more information.
Thanks & Regards
Pratiksha V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not totally go through all your code.
But I noticed that you did not enable and initiate the WDT.
Hope adding the code in the following red box can work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please can you this code example for reference CE218138 – PSoC 6 MCU with BLE
Connectivity: BLE Thermometer (RTOS) .
Thanks & Regards
Pratiksha V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @PratikshaV
Thank you for your answer.
After reviewing this example, I noticed that regular sleep mode is only implemented and not deepSleep mode. Measured the power consumption is about 2.5 mAh. Which is not even near what I had in mind.
I tried to use Cy_SysPm_DeepSleep() instead of Cy_SysPm_Sleep() in the CM4 code but it did not work.
Can you please further guide me to a working example?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please can you go through this below document for more information.
Thanks & Regards
Pratiksha V