{"id":1438,"date":"2023-02-06T19:05:03","date_gmt":"2023-02-06T10:05:03","guid":{"rendered":"https:\/\/twarelab.com\/?p=1438"},"modified":"2023-02-06T19:05:03","modified_gmt":"2023-02-06T10:05:03","slug":"4ch-s2e-how-to-check-tw100xx-debug-message","status":"publish","type":"post","link":"https:\/\/twarelab.com\/en\/blog\/4ch-s2e-how-to-check-tw100xx-debug-message\/","title":{"rendered":"[4CH S2E] How to check TW100xx Debug Message"},"content":{"rendered":"<p>When the expected operation is not performed during the operation of TW100MJ (the same for TW100XR\/TW100PC), checking the debug messages is the best way to determine where the problem occurred.<\/p>\n\n\n\n<p>TW100MJ provides the capability to output messages via the serial debug port for each operation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Debug Port<\/h2>\n\n\n\n<p>The debug port of TW100MJ is a UART port.<\/p>\n\n\n\n<p>The default setting of the UART port is as follows and cannot be changed.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Item<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">Value<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Baud Rate<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">2Mbps<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Parity<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">None<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Flow Ctrl<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">None<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Debug port default setting<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Connecting to Debug Port<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Using the on-board port<\/h3>\n\n\n\n<p>The TW100xx Series modules provide a 4-Pin Hole debug port to allow checking of debug messages in case the system does not provide a connection to the TW100xx module&#8217;s debug port after the module has been installed in a separate system.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-2-1024x448.png\" alt=\"\" class=\"wp-image-1432\" width=\"768\" height=\"336\" srcset=\"https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-2-1024x448.png 1024w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-2-600x262.png 600w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-2-300x131.png 300w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-2-768x336.png 768w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-2-1536x671.png 1536w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-2-18x8.png 18w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-2.png 1542w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><figcaption class=\"wp-element-caption\">Pinout of the TW100xx Debug port<\/figcaption><\/figure>\n<\/div>\n\n\n<p>By connecting the 4 Pin Hole to a TTL-to-USB module as shown in the image below, you can view debug messages.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-4-1024x767.png\" alt=\"\" class=\"wp-image-1434\" width=\"512\" height=\"384\" srcset=\"https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-4-1024x767.png 1024w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-4-600x450.png 600w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-4-300x225.png 300w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-4-768x575.png 768w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-4-16x12.png 16w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-4.png 1125w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Note that the TTL-to-USB module must support a baud rate of 2Mbps in order to monitor the debug messages.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">In case of using Header pin<\/h2>\n\n\n\n<p>The Header pins (MiniPCI Connector pins in case of TW100PC) provided can also be used for the Debug Port in order to connect to external systems.<\/p>\n\n\n\n<p>For TW100MJ\/TW100XR, the pins for the Debug Port are J6 Pin3 (Console_TX) and J6 Pin4 (Console_RX), and for TW100PC, the pins are Pin25 (Console_TX) and Pin26 (Console_RX).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">In EVB(Evalution Board)<\/h3>\n\n\n\n<p>The TW100xx EVB has the Debug port connected to the USB Connector (J7) which is also used for power supply.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-3-1024x866.png\" alt=\"\" class=\"wp-image-1433\" width=\"512\" height=\"433\" srcset=\"https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-3-1024x866.png 1024w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-3-600x507.png 600w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-3-300x254.png 300w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-3-768x649.png 768w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-3-14x12.png 14w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-3.png 1144w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n<\/div>\n\n\n<p>By connecting the USB cable connected to the PC to J7, the serial port will be recognized on the PC, and you can check the Debug messages through this serial port.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure for checking debug messages<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Using a terminal program<\/h3>\n\n\n\n<p>Run any serial terminal program. In this case, PuTTY is used.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-5.png\" alt=\"\" class=\"wp-image-1435\" width=\"452\" height=\"407\" srcset=\"https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-5.png 602w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-5-600x540.png 600w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-5-300x270.png 300w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-5-13x12.png 13w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Power-on or Reset Pin Triggering<\/h3>\n\n\n\n<p>Apply power to the module or trigger a reset. Then, you can see the debug messages being outputted.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-6.png\" alt=\"\" class=\"wp-image-1436\" width=\"724\" height=\"765\" srcset=\"https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-6.png 965w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-6-600x634.png 600w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-6-284x300.png 284w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-6-768x812.png 768w, https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-6-11x12.png 11w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>This explains various methods and procedures for checking debug messages in TW100xx series products.<\/p>","protected":false},"author":3,"featured_media":1432,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,13],"tags":[36,33,35,34,30,31],"class_list":["post-1438","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-en","tag-4ch","tag-debug","tag-s2e","tag-serial-to-ethernet","tag-tw100mj","tag-tw100xr"],"jetpack_featured_media_url":"https:\/\/twarelab.com\/wp-content\/uploads\/2023\/02\/image-2.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twarelab.com\/en\/wp-json\/wp\/v2\/posts\/1438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twarelab.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/twarelab.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/twarelab.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/twarelab.com\/en\/wp-json\/wp\/v2\/comments?post=1438"}],"version-history":[{"count":2,"href":"https:\/\/twarelab.com\/en\/wp-json\/wp\/v2\/posts\/1438\/revisions"}],"predecessor-version":[{"id":1443,"href":"https:\/\/twarelab.com\/en\/wp-json\/wp\/v2\/posts\/1438\/revisions\/1443"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/twarelab.com\/en\/wp-json\/wp\/v2\/media\/1432"}],"wp:attachment":[{"href":"https:\/\/twarelab.com\/en\/wp-json\/wp\/v2\/media?parent=1438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/twarelab.com\/en\/wp-json\/wp\/v2\/categories?post=1438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/twarelab.com\/en\/wp-json\/wp\/v2\/tags?post=1438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}