Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > CyU3PDebugPreamble()

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



CyU3PDebugPreamble()
Moderator:
RSKV

Post Reply
Follow this topic



CyU3PDebugPreamble()

rdaley posted on 13 Jan 2012 3:37 PM PST
Top Contributor
39 Forum Posts

Just a thought, but could this function also set the preamble to ASCII so it could still be printed to a terminal without being decoded?




Re: CyU3PDebugPreamble()

Lumpi6 posted on 16 Jan 2012 11:39 PM PST
Top Contributor
183 Forum Posts

Hi,

that function outputs in ascii. Check your baudrate and protocol configuration that it is the same at the terminal and the fx3 uart.

Take care which configuration you are using of the configure io matrix. The 16- bit or the 32-bit depending on this the UART is at different output pins.

Regards

Lumpi



Re: CyU3PDebugPreamble()

rdaley posted on 17 Jan 2012 07:54 AM PST
Top Contributor
39 Forum Posts

CyU3PDebugPrint outputs a preamble and a message. The preamble is not in ASCII.



Re: CyU3PDebugPreamble()

Lumpi6 posted on 17 Jan 2012 08:12 AM PST
Top Contributor
183 Forum Posts

Yes, that is right. I do not think you can change the preamble, but I am not sure. You can switch the preamble off with the function call:

extern void
CyU3PDebugPreamble (
        CyBool_t sendPreamble    /* CyFalse : disable preamble data before actual message,
                                    CyTrue  : Send preamble data before actual message */
        );
 

regards



Re: CyU3PDebugPreamble()

rdaley posted on 17 Jan 2012 08:18 AM PST
Top Contributor
39 Forum Posts

I think we've gone full circle.  You can turn off the preamble with CyU3PDebugPreamble(). I was thinking a third option for the parameter for this function could be something like ASCII, so that the preamble would be output as text. 



Re: CyU3PDebugPreamble()

aasi posted on 19 Jan 2012 12:43 AM PST
Cypress Employee
1073 Forum Posts

Hi,

It is for tool to decode and if a visual mean other than tool is used then this is just overhead and printing it in ASCII is not going to serve a purpose. So why would you want an option like that? Please elaborate.

Regards,

Anand



Re: CyU3PDebugPreamble()

rdaley posted on 19 Jan 2012 12:11 PM PST
Top Contributor
39 Forum Posts

If the codes are in human readable form (ascii hex), I can write this to an ascii log file. If I need to decode the preamble, I can do this on ascii hex just as easy as hex and the ascii hex won't screw up the log file.






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.