<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>USB CDC ACM example and ‘TX_PIN_NUMBER’ error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50524/usb-cdc-acm-example-and-tx_pin_number-error</link><description>Hello all 
 I was just following the thread launched by Alex concerning nrf 52 dongle driven from serial port, which is also very important to me, and now that thread is already closed. 
 I was just trying to compile the usbd_cdc_acm example... I updated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Aug 2019 15:02:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50524/usb-cdc-acm-example-and-tx_pin_number-error" /><item><title>RE: USB CDC ACM example and ‘TX_PIN_NUMBER’ error</title><link>https://devzone.nordicsemi.com/thread/201948?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 15:02:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a128874f-ed68-44eb-8620-ba8cead3fd1d</guid><dc:creator>awneil</dc:creator><description>[quote userid="81164" url="~/f/nordic-q-a/50524/usb-cdc-acm-example-and-tx_pin_number-error/201944"]is just need to change[/quote]
&lt;p&gt;No, that is &lt;em&gt;&lt;strong&gt;not&lt;/strong&gt; &lt;/em&gt;what&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;&amp;nbsp;said!&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/50515/any-sample-to-drive-nrf-52-dongle-like-a-serial-port/201858"]&lt;b&gt;&lt;i&gt;in short&lt;/i&gt;&lt;/b&gt;, you need to ...[/quote]
&lt;p&gt;So that was just a quick summary - not the full details!&lt;/p&gt;
&lt;p&gt;That&amp;#39;s why I said earlier that you also need to follow his link for the &lt;em&gt;&lt;strong&gt;full&lt;/strong&gt; &lt;/em&gt;details!&lt;/p&gt;
[quote userid="81164" url="~/f/nordic-q-a/50524/usb-cdc-acm-example-and-tx_pin_number-error/201944"]After declaring them :-)&amp;nbsp; it works[/quote]
&lt;p&gt;Of course!&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f603.svg" title="Smiley"&gt;&amp;#x1f603;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now you can verify the answer&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6747._5F00_Verify_2D00_answer_2D00_nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM example and ‘TX_PIN_NUMBER’ error</title><link>https://devzone.nordicsemi.com/thread/201944?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 14:54:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab89c029-8f64-4e9d-acae-8c28778dad29</guid><dc:creator>Ubbi</dc:creator><description>&lt;p&gt;I was confused about that:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;is just need to change&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;Update the Preprocessor Definitions by removing&amp;nbsp;&lt;/span&gt;&lt;code&gt;BOARD_PCA10056&lt;/code&gt;&lt;span&gt;&amp;nbsp;and inserting&amp;nbsp;&lt;/span&gt;&lt;code&gt;BOARD_PCA10059&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;But it is not!!&amp;nbsp; :-)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;I have checked the dongle pin numbers and realize that&amp;nbsp;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;RX pin is 8&lt;br /&gt;TX&amp;nbsp;pin is 6&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;After declaring them :-)&amp;nbsp; it works&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Thank you&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM example and ‘TX_PIN_NUMBER’ error</title><link>https://devzone.nordicsemi.com/thread/201940?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 14:38:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7581b68-e7f8-49b6-a7ad-1f13888d63ba</guid><dc:creator>awneil</dc:creator><description>[quote userid="81164" url="~/f/nordic-q-a/50524/usb-cdc-acm-example-and-tx_pin_number-error/201935"]But not declared[/quote]
&lt;p&gt;That&amp;#39;s why you get the error - you &lt;em&gt;&lt;strong&gt;need&lt;/strong&gt; &lt;/em&gt;to declare them before you can use them!&lt;/p&gt;
&lt;p&gt;That&amp;#39;s basic &amp;#39;C&amp;#39; programming!&lt;/p&gt;
&lt;p&gt;So, again, look at how &amp;amp; where they are declared in the unmodified example.&lt;/p&gt;
&lt;p&gt;Then do the same in your modified example.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8713._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM example and ‘TX_PIN_NUMBER’ error</title><link>https://devzone.nordicsemi.com/thread/201935?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 14:33:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c10398e-fae2-4285-b96a-51077924648a</guid><dc:creator>Ubbi</dc:creator><description>&lt;p&gt;They are solely used in this function:&lt;/p&gt;
&lt;p&gt;static void init_cli(void)&lt;br /&gt;{&lt;br /&gt; ret_code_t ret;&lt;br /&gt; ret = bsp_cli_init(bsp_event_callback);&lt;br /&gt; APP_ERROR_CHECK(ret);&lt;br /&gt; nrf_drv_uart_config_t uart_config = NRF_DRV_UART_DEFAULT_CONFIG;&lt;br /&gt; uart_config.pseltxd = TX_PIN_NUMBER;&lt;br /&gt; uart_config.pselrxd = RX_PIN_NUMBER;&lt;br /&gt; uart_config.hwfc = NRF_UART_HWFC_DISABLED;&lt;br /&gt; ret = nrf_cli_init(&amp;amp;m_cli_uart, &amp;amp;uart_config, true, true, NRF_LOG_SEVERITY_INFO);&lt;br /&gt; APP_ERROR_CHECK(ret);&lt;br /&gt; ret = nrf_cli_start(&amp;amp;m_cli_uart);&lt;br /&gt; APP_ERROR_CHECK(ret);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But not declared...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM example and ‘TX_PIN_NUMBER’ error</title><link>https://devzone.nordicsemi.com/thread/201932?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 14:30:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b2de964-bdb5-40f3-afc5-dabe47556261</guid><dc:creator>awneil</dc:creator><description>[quote userid="81164" url="~/f/nordic-q-a/50524/usb-cdc-acm-example-and-tx_pin_number-error/201930"]The original project compilation goes well[/quote]
&lt;p&gt;Good, so ...&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/50524/usb-cdc-acm-example-and-tx_pin_number-error/201926"]then look at how &amp;amp; where they are declared in that[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM example and ‘TX_PIN_NUMBER’ error</title><link>https://devzone.nordicsemi.com/thread/201930?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 14:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d37a54ea-6076-4bfc-a946-78bb8cc4cb38</guid><dc:creator>Ubbi</dc:creator><description>&lt;p&gt;The original project compilation goes well.&lt;/p&gt;
&lt;p&gt;When I apply&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;Update the Preprocessor Definitions by removing&amp;nbsp;&lt;/span&gt;&lt;code&gt;BOARD_PCA10056&lt;/code&gt;&lt;span&gt;&amp;nbsp;and inserting&amp;nbsp;&lt;/span&gt;&lt;code&gt;BOARD_PCA10059&amp;quot; &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;and then compile it again the errors&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lsquo;TX_PIN_NUMBER&amp;rsquo; undeclared (first use in this function); did you mean &amp;lsquo;P0_PIN_NUM&amp;rsquo;?&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;lsquo;RX_PIN_NUMBER&amp;rsquo; undeclared (first use in this function); did you mean &amp;lsquo;P0_PIN_NUM&amp;rsquo;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;appear&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM example and ‘TX_PIN_NUMBER’ error</title><link>https://devzone.nordicsemi.com/thread/201926?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 14:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3ea1105-4c7f-4ef4-95ce-7d71a50b1762</guid><dc:creator>awneil</dc:creator><description>[quote userid="81164" url="~/f/nordic-q-a/50524/usb-cdc-acm-example-and-tx_pin_number-error"]the thread launched by Alex concerning nrf 52 dongle driven from serial port[/quote]
&lt;p&gt;You mean this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50515/any-sample-to-drive-nrf-52-dongle-like-a-serial-port"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/50515/any-sample-to-drive-nrf-52-dongle-like-a-serial-port&lt;/a&gt;&lt;/p&gt;
[quote userid="81164" url="~/f/nordic-q-a/50524/usb-cdc-acm-example-and-tx_pin_number-error"] I updated it for donge hardware (changed project properties) [/quote]
&lt;p&gt;Did you follow the link which &lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt; posted&amp;nbsp;for the &lt;em&gt;&lt;strong&gt;full&lt;/strong&gt; &lt;/em&gt;details of the modifications required:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50515/any-sample-to-drive-nrf-52-dongle-like-a-serial-port/201858#201858"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/50515/any-sample-to-drive-nrf-52-dongle-like-a-serial-port/201858#201858&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="81164" url="~/f/nordic-q-a/50524/usb-cdc-acm-example-and-tx_pin_number-error"]Please, could you guide me to solve these compiler errors[/quote]
&lt;p&gt;The error tells you that those names are &lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;&lt;em&gt;un&lt;/em&gt;&lt;/span&gt;-&lt;/strong&gt;declared.&lt;/p&gt;
&lt;p&gt;So the solution is to &lt;strong&gt;&lt;em&gt;declare&lt;/em&gt; them!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I would suggest that you start by building the unmodified example, and then look at how &amp;amp; where they are declared in that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>