Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > CyU3PDmaChannelGetBuffer() return 68 problem

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



CyU3PDmaChannelGetBuffer() return 68 problem
Moderator:
RSKV

Post Reply
Follow this topic



CyU3PDmaChannelGetBuffer() return 68 problem

comy posted on 24 Dec 2012 6:40 PM PST
Senior Member
17 Forum Posts

Hi!

I want to write a wave to be transmited .The program is following

for (;;)

{
             for(i=0;i<256;i++)
               {  result =128*(sin(p*i/255)+1);
               y=(uint16_t)result;
               x[i]=y;
               }
         status=CyU3PDmaChannelGetBuffer(&glChHandleBulkLp,&buffer_p,CYU3P_NO_WAIT);
         for(j=0;j<256;j++)
            {
                buffer_p.buffer[j]=(uint8_t)x[j];
             }
         if (status == CY_U3P_SUCCESS)
                 {
                    
                     status = CyU3PDmaChannelCommitBuffer (&glChHandleBulkLp, buffer_p.count, 0);
                     if (status != CY_U3P_SUCCESS)
                     {
                         CyU3PDebugPrint (4, "CyU3PDmaChannelCommitBuffer failed, Error code = %d\n", status);}
                 }

}

When I run by steping, CyU3PDmaChannelGetBuffer() return 68. I don't know where is my problem

I do hope you can help me. Thank you!




Re: CyU3PDmaChannelGetBuffer() return 68 problem

Subha posted on 01 Jan 2013 11:57 PM PST
Cypress Employee
5 Forum Posts

 Hi,

Error code 68 refers to CY_U3P_ERROR_NOT_CONFIGURED.This happens when the DMA channel has not been configured properly.Please post the code for DMA channel creation so that we can have a look at it.

Regards,

Subha

 

 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.