Difference between revisions of "How to debug"
From ESS-WIKI
Yunjin.jiang (talk | contribs) |
Yunjin.jiang (talk | contribs) |
||
Line 12: | Line 12: | ||
= Hardware PIN define <!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tJZCI6IjcwMjQtMTU1MzQ5MTgyOTM0NyIsImJsb2NrVHlwZSI6InBhcmFncmFwaCIsInN0eWxlcyI6eyJhbGlnbiI6ImxlZnQiLCJpbmRlbnQiOjAsInRleHQtaW5kZW50IjowLCJsaW5lLWhlaWdodCI6MS43NSwiYmFjay1jb2xvciI6IiIsInBhZGRpbmciOiIifSwidHlwZSI6InBhcmFncmFwaCIsInJpY2hUZXh0Ijp7ImRhdGEiOlt7ImNoYXIiOiJVIn0seyJjaGFyIjoiUyJ9LHsiY2hhciI6IkIifSx7ImNoYXIiOiIgIn0seyJjaGFyIjoidCJ9LHsiY2hhciI6Im8ifSx7ImNoYXIiOiIgIn0seyJjaGFyIjoiVSJ9LHsiY2hhciI6IkEifSx7ImNoYXIiOiJSIn0seyJjaGFyIjoiVCJ9LHsiY2hhciI6IiAifSx7ImNoYXIiOiJhIn0seyJjaGFyIjoiZCJ9LHsiY2hhciI6ImEifSx7ImNoYXIiOiJwIn0seyJjaGFyIjoidCJ9LHsiY2hhciI6ImUifSx7ImNoYXIiOiJyIn1dLCJpc1JpY2hUZXh0Ijp0cnVlLCJrZWVwTGluZUJyZWFrIjp0cnVlfX0seyJibG9ja0lkIjoiNTAxMy0xNTUzNDkyMDU3MTkxIiwiYmxvY2tUeXBlIjoicGFyYWdyYXBoIiwic3R5bGVzIjp7ImFsaWduIjoibGVmdCIsImluZGVudCI6MCwidGV4dC1pbmRlbnQiOjAsImxpbmUtaGVpZ2h0IjoxLjc1LCJiYWNrLWNvbG9yIjoiIiwicGFkZGluZyI6IiJ9LCJ0eXBlIjoicGFyYWdyYXBoIiwicmljaFRleHQiOnsiZGF0YSI6W3siY2hhciI6IkgifSx7ImNoYXIiOiJhIn0seyJjaGFyIj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mxvY2tUeXBlIjoicGFyYWdyYXBoIiwic3R5bGVzIjp7ImFsaWduIjoibGVmdCIsImluZGVudCI6MCwidGV4dC1pbmRlbnQiOjAsImxpbmUtaGVpZ2h0IjoxLjc1LCJiYWNrLWNvbG9yIjoiIiwicGFkZGluZyI6IiJ9LCJ0eXBlIjoicGFyYWdyYXBoIiwicmljaFRleHQiOnsiZGF0YSI6W3siY2hhciI6IkgifSx7ImNoYXIiOiJhIn0seyJjaGFyIjoiciJ9LHsiY2hhciI6ImQifSx7ImNoYXIiOiJ3In0seyJjaGFyIjoiYSJ9LHsiY2hhciI6InIifSx7ImNoYXIiOiJlIn0seyJjaGFyIjoiICJ9LHsiY2hhciI6IlAifSx7ImNoYXIiOiJJIn0seyJjaGFyIjoiTiJ9LHsiY2hhciI6IiAifSx7ImNoYXIiOiJkIn0seyJjaGFyIjoiZSJ9LHsiY2hhciI6ImYifSx7ImNoYXIiOiJpIn0seyJjaGFyIjoibiJ9LHsiY2hhciI6ImUifV0sImlzUmljaFRleHQiOnRydWUsImtlZXBMaW5lQnJlYWsiOnRydWV9fV0=--> = | ||
− | + | RSB4680 debug port pin define : | |
+ | |||
+ | {| border="1" cellspacing="1" cellpadding="1" style="width: 229px;" | ||
+ | |- | ||
+ | | style="width: 109px;" | '''PIN''' | ||
+ | | style="width: 107px;" | '''PIN Name''' | ||
+ | |- | ||
+ | | style="width: 109px;" | 1 | ||
+ | | style="width: 107px;" | NC | ||
+ | |- | ||
+ | | style="width: 109px;" | 2 | ||
+ | | style="width: 107px;" | TX | ||
+ | |- | ||
+ | | style="width: 109px;" | 3 | ||
+ | | style="width: 107px;" | RX | ||
+ | |- | ||
+ | | style="width: 109px;" | 4 | ||
+ | | style="width: 107px;" | GND | ||
+ | |} | ||
+ | |||
+ | [[File:RSB4680 Debug port.jpg|885x675px]] | ||
+ | |||
+ | <span style="color:#FF0000;">'''Note : '''</span> | ||
+ | |||
+ | Please connect device's TX to usb2uart adapter's RX and device's RX to usb2uart adapter's TX . | ||
= UART parameter = | = UART parameter = |
Revision as of 08:55, 25 March 2019
USB2UART Bridge
There are plenty types of usb to uart bridge in the market . Most of them use the following chip :
- CP210X
- PL2303
Download driver for CP210X and PL2303 .
Hardware PIN define
RSB4680 debug port pin define :
PIN | PIN Name |
1 | NC |
2 | TX |
3 | RX |
4 | GND |
Note :
Please connect device's TX to usb2uart adapter's RX and device's RX to usb2uart adapter's TX .
UART parameter
- BaudRate:115200
- DataBits :8
- StopBits :1
- Parity :None
- FlowControl:None or XON/XOFF