3 Replies Latest reply on Sep 9, 2020 6:48 PM by KoSa_1909416

    BT stack Memory leak

    KoSa_1909416

      Hi All,
      We are planning to create a program with similar functionality to " ble_wifi_introducer " .

       

      [Background]
          Our application does not turn off the power once it has been turned on
          until something like a power outage occurs.

       

          On the other hand, while checking the WICED Studio Wi-Fi/Combo Forums,
          I found the following thread.


          https://community.cypress.com/message/156413#156413

          It seems that a memory leak occurs when the BT stack is repeatedly
          wiced_bt_stack_deinit and wiced_bt_stack_init .
          This thread still seems to be open.

       

      [Question]
          Is the BT stack memory leak problem solved ?
          We believe that our product needs a fix for this issue.

       

          Software environment:
              - WICED 6.2.1 or 6.4

       

       

      Best Regards,
             Sakagami

        • 1. Re: BT stack Memory leak
          SheetalJ_96

          Hello Sakagami,

           

          Unfortunately we have not yet verified this memory leak problem.

          Coming back to basic doubt, why do you want to re-initialize the BT stack? Also, did you notice the memory leak problem in latest WICED 6.2.1 or 6.4? The reported issue seems to be using WICED 6.1.

          • 2. Re: BT stack Memory leak
            KoSa_1909416

            Dear SheetalJ san,
            Thank you for your reply.

             

            > why do you want to re-initialize the BT stack?

                    As our product is an embedded device, it does not have enough memory.
                    So it is necessary to free the memory area when it is no longer needed.
                    Also, the number of times a BT connection request occurs cannot be predicted.

             

            >Also, did you notice the memory leak problem in latest WICED 6.2.1 or 6.4?

                    Yes.There are the memory leak problem(about 192 byte) in both WICKED version.

             

            Best Regards,

            Sakagami

            • 3. Re: BT stack Memory leak
              KoSa_1909416

              Dear SheetalJ san,

               

              I checked using the sample code in the thread below.

              https://community.cypress.com/message/156413#156413

               

              The amount of memory leak differs depending on

              the OS and wiced_bt_cfg_buf_pool_t (buffer pool configuration ) used.

               

              For example,

              ( WICED  6.4 )

                      bt_memleak-CY8CKIT_062-FreeRTOS-LwIP => 186 byte

                      bt_memleak-CY8CKIT_062-ThreadX-NetX   => 56 byte

               

              Is it difficult to solve the memory leak problem ?

               

              Best Regards,

              Sakagami