CYW20819 / Estimate stack size

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

cross mob
YoTa_1693656
Level 6
Level 6
Distributor - Marubun (Japan)
250 replies posted 250 sign-ins 100 replies posted

Hello Cypress IoT Team

We evaluate CYW20819 with ModusToolBox.

Regarding API stack size, we referred to the below.

  Code-Examples-BT-SDK-for-ModusToolbox-master\CYW920819EVB-02\apps\demo\datalogger\dual_spi_master

Then, in the following thread, we understand CYW20819 may hang up due to large stack size.

  https://community.cypress.com/thread/50272

[Questions]

1)

How can we estimate the proper stack size for the API? (If Cypress knows the recommended stack size, let me know.)

2)

Can we detect any error due to large stack size in advance?

Thanks,

Yoshinori

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi Yoshinori,

Please refer https://cypresssemiconductorco.github.io/btsdk-docs/BT-SDK/WICED-Application-Buffer-Pools.pdf  for the information about size and number of buffers need to be allocated by the stack.

If you want to find the the stack usage of the thread, please follow "3.4.1 Stack Usage" in the doc CypressAcademy_WBT101_Files/WBT101-03-RTOS.pdf at master · cypresssemiconductorco/CypressAcademy_WBT...

Thanks,

-Dheeraj

View solution in original post

0 Likes
1 Reply
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi Yoshinori,

Please refer https://cypresssemiconductorco.github.io/btsdk-docs/BT-SDK/WICED-Application-Buffer-Pools.pdf  for the information about size and number of buffers need to be allocated by the stack.

If you want to find the the stack usage of the thread, please follow "3.4.1 Stack Usage" in the doc CypressAcademy_WBT101_Files/WBT101-03-RTOS.pdf at master · cypresssemiconductorco/CypressAcademy_WBT...

Thanks,

-Dheeraj

0 Likes