3 Replies Latest reply on Jun 24, 2016 5:34 AM by user_1377889

    Resource limit error: PSoC4

    rkkumar

      Hi all

         

                  I am new to PSoC, i have used UART, SPI and one timer in my project(Project attached), i am getting resource error

         

      Error: mpr.M0014: Resource limit: Maximum number of UDB Macrocells exceeded (max=32, needed=42). (App=cydsfit)
      Error: mpr.M0014: Resource limit: Maximum number of UDB Unique Pterms exceeded (max=64, needed=86). (App=cydsfit)
      Error: mpr.M0014: Resource limit: Maximum number of UDB Datapath Cells exceeded (max=4, needed=5). (App=cydsfit)
      Error: mpr.M0014: Resource limit: Maximum number of UDB Status Cells exceeded (max=4, needed=7). (App=cydsfit)

         

      Note: PSoC creator3.2

         

      Kindly help me out.

         


      R.Kishore Kumar.

        • 1. Re: Resource limit error: PSoC4
          user_1377889

          Welcome in the forum, Kishore.

             

          Best is to use SCB-based communication interfaces first. The timer can use the TCPWM component and all wil fit.

             

          UDB based components are more flexible for routing and building own complex components. So best strategy would be to spare UDB based components as long as possible.

             

           

             

          Bob

          • 2. Re: Resource limit error: PSoC4
            rkkumar
                    Thanks bob. 1) I have used SCB based UART, it having one interrupt, how to check transmit and receive interrupts? 2) What is the difference between SCB based, UDB based component? Kishore.   
            • 3. Re: Resource limit error: PSoC4
              user_1377889

              "how to check transmit and receive interrupts"

                 

              As a beginner, do not use interrupts, the component can do that for you already:

                 

              Increase the Rx and Tx buffers to something like 100

                 

              Use SpiUartGetRxBufferSize() to determine how many bytes are already received, the Tx Bytes will be sent automatically using a component internal interrupt blocking when the Tx buffer is full.

                 

              "What is the difference between SCB based, UDB based component?"

                 

              SCB is a Serial Sontrol Block that is used to build an I2C, UART, SPI  interfaces.

                 

              UDB is a Universal Digital Block from which you can build nearly anything as long as it is digital.

                 

              A UDB contains a programmable ALU, 2 FIFOs, a PLD area a, handful of registers and a programming language "VeriLog" to handle all of that. Nearly all the components for the PSoC5 are built with UDBs

                 

               

                 

              Bob