Psoc 6 RTOS BLE and Deep sleep mode triggered by RTC or MCWDT interrupt

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
yes_its_garen
Level 1
Level 1
5 sign-ins First reply posted First question asked

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

0 Likes
1 Solution
4 Replies
Jiabin
Level 4
Level 4
100 sign-ins 25 replies posted First solution authored

Hi @yes_its_garen 

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. 

Jiabin_0-1661349359918.png

 

PratikshaV
Moderator
Moderator
Moderator
100 solutions authored 5 likes given 250 sign-ins

Hi @yes_its_garen 

Please can you this code example for reference CE218138 – PSoC 6 MCU with BLE
Connectivity: BLE Thermometer (RTOS) .

 

Thanks & Regards

Pratiksha V

0 Likes

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

0 Likes

Hi @yes_its_garen 

Please can you go through this below document for more information.

https://www.infineon.com/dgdl/Infineon-AN219528_PSoC_6_MCU_Low-Power_Modes_and_Power_Reduction_Techn...

 

Thanks & Regards

Pratiksha V

0 Likes