<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Changing COM Port of USB2SER Driver in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-COM-Port-of-USB2SER-Driver/m-p/390691#M21267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have install the drive in ubuntu16.04 with&amp;nbsp;USB2SER_Driver_Linux, but failed. Pls help .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Log:&lt;/P&gt;&lt;P&gt;root@neusoft:/home/fuyongjie/Desktop/USB2SER# ./Install.sh ubuntu&lt;BR /&gt;Installing Freescale CDC driver on Ubuntu&lt;BR /&gt;Reading package lists... Done&lt;BR /&gt;Building dependency tree &lt;BR /&gt;Reading state information... Done&lt;BR /&gt;linux-headers-4.4.0-43-generic is already the newest version (4.4.0-43.63).&lt;BR /&gt;The following packages were automatically installed and are no longer required:&lt;BR /&gt; libstdc++-4.8-dev wx-common&lt;BR /&gt;Use 'apt autoremove' to remove them.&lt;BR /&gt;0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.&lt;BR /&gt;fixing code con old kernel versions&lt;BR /&gt;make -C /lib/modules/4.4.0-43-generic/build M=/home/fuyongjie/Desktop/USB2SER modules&lt;BR /&gt;make[1]: Entering directory '/usr/src/linux-headers-4.4.0-43-generic'&lt;BR /&gt; CC [M] /home/fuyongjie/Desktop/USB2SER/cdc-freescale.o&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: In function ‘acm_ctrl_msg’:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:140:2: error: implicit declaration of function ‘dbg’ [-Werror=implicit-function-declaration]&lt;BR /&gt; dbg("acm_control_msg: rq: 0x%02x val: %#x len: %#x result: %d",&lt;BR /&gt; ^&lt;BR /&gt;In file included from include/linux/mmdebug.h:4:0,&lt;BR /&gt; from include/linux/gfp.h:4,&lt;BR /&gt; from include/linux/slab.h:14,&lt;BR /&gt; from /home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:60:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: At top level:&lt;BR /&gt;include/linux/bug.h:33:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))&lt;BR /&gt; ^&lt;BR /&gt;include/linux/kernel.h:831:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:102:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:329:47: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; static struct kobj_attribute pid_attribute = __ATTR(val_pid,0666,show_pid,stor&lt;BR /&gt; ^&lt;BR /&gt;In file included from include/linux/kobject.h:21:0,&lt;BR /&gt; from include/linux/cdev.h:4,&lt;BR /&gt; from include/linux/tty_driver.h:244,&lt;BR /&gt; from include/linux/tty.h:8,&lt;BR /&gt; from /home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:61:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:329:67: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; static struct kobj_attribute pid_attribute = __ATTR(val_pid,0666,show_pid,stor&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:103:10: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .show = _show, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:329:67: note: (near initialization for ‘pid_attribute.show’)&lt;BR /&gt; static struct kobj_attribute pid_attribute = __ATTR(val_pid,0666,show_pid,stor&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:103:10: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .show = _show, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:329:76: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; struct kobj_attribute pid_attribute = __ATTR(val_pid,0666,show_pid,store_pid);&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:104:11: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .store = _store, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:329:76: note: (near initialization for ‘pid_attribute.store’)&lt;BR /&gt; struct kobj_attribute pid_attribute = __ATTR(val_pid,0666,show_pid,store_pid);&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:104:11: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .store = _store, \&lt;BR /&gt; ^&lt;BR /&gt;In file included from include/linux/mmdebug.h:4:0,&lt;BR /&gt; from include/linux/gfp.h:4,&lt;BR /&gt; from include/linux/slab.h:14,&lt;BR /&gt; from /home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:60:&lt;BR /&gt;include/linux/bug.h:33:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))&lt;BR /&gt; ^&lt;BR /&gt;include/linux/kernel.h:831:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:102:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:386:47: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; static struct kobj_attribute vid_attribute = __ATTR(val_vid,0666,show_vid,stor&lt;BR /&gt; ^&lt;BR /&gt;In file included from include/linux/kobject.h:21:0,&lt;BR /&gt; from include/linux/cdev.h:4,&lt;BR /&gt; from include/linux/tty_driver.h:244,&lt;BR /&gt; from include/linux/tty.h:8,&lt;BR /&gt; from /home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:61:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:386:67: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; static struct kobj_attribute vid_attribute = __ATTR(val_vid,0666,show_vid,stor&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:103:10: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .show = _show, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:386:67: note: (near initialization for ‘vid_attribute.show’)&lt;BR /&gt; static struct kobj_attribute vid_attribute = __ATTR(val_vid,0666,show_vid,stor&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:103:10: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .show = _show, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:386:76: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; struct kobj_attribute vid_attribute = __ATTR(val_vid,0666,show_vid,store_vid);&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:104:11: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .store = _store, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:386:76: note: (near initialization for ‘vid_attribute.store’)&lt;BR /&gt; struct kobj_attribute vid_attribute = __ATTR(val_vid,0666,show_vid,store_vid);&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:104:11: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .store = _store, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: In function ‘acm_rx_tasklet’:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:588:27: warning: passing argument 1 of ‘tty_insert_flip_string’ from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; tty_insert_flip_string(tty, buf-&amp;gt;base, buf-&amp;gt;size);&lt;BR /&gt; ^&lt;BR /&gt;In file included from /home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:64:0:&lt;BR /&gt;include/linux/tty_flip.h:32:19: note: expected ‘struct tty_port *’ but argument is of type ‘struct tty_struct *’&lt;BR /&gt; static inline int tty_insert_flip_string(struct tty_port *port,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:589:25: warning: passing argument 1 of ‘tty_flip_buffer_push’ from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; tty_flip_buffer_push(tty);&lt;BR /&gt; ^&lt;BR /&gt;In file included from /home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:64:0:&lt;BR /&gt;include/linux/tty_flip.h:13:13: note: expected ‘struct tty_port *’ but argument is of type ‘struct tty_struct *’&lt;BR /&gt; extern void tty_flip_buffer_push(struct tty_port *port);&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: In function ‘acm_tty_set_termios’:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1013:29: error: incompatible types when initializing type ‘struct ktermios *’ using type ‘struct ktermios’&lt;BR /&gt; struct ktermios *termios = tty-&amp;gt;termios;&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: In function ‘acm_write_buffers_free’:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1115:3: error: implicit declaration of function ‘usb_buffer_free’ [-Werror=implicit-function-declaration]&lt;BR /&gt; usb_buffer_free(usb_dev, acm-&amp;gt;writesize, wb-&amp;gt;buf, wb-&amp;gt;dmah);&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: In function ‘acm_write_buffers_alloc’:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1135:13: error: implicit declaration of function ‘usb_buffer_alloc’ [-Werror=implicit-function-declaration]&lt;BR /&gt; wb-&amp;gt;buf = usb_buffer_alloc(acm-&amp;gt;dev, acm-&amp;gt;writesize, GFP_KERNEL,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1135:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]&lt;BR /&gt; wb-&amp;gt;buf = usb_buffer_alloc(acm-&amp;gt;dev, acm-&amp;gt;writesize, GFP_KERNEL,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: In function ‘acm_probe’:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1401:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]&lt;BR /&gt; buf = usb_buffer_alloc(usb_dev, ctrlsize, GFP_KERNEL, &amp;amp;acm-&amp;gt;ctrl_dma);&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1434:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]&lt;BR /&gt; rb-&amp;gt;base = usb_buffer_alloc(acm-&amp;gt;dev, readsize,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: At top level:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1895:12: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; .ioctl = acm_tty_ioctl,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1895:12: note: (near initialization for ‘acm_ops.ioctl’)&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1901:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; .tiocmget = acm_tty_tiocmget,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1901:15: note: (near initialization for ‘acm_ops.tiocmget’)&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1902:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; .tiocmset = acm_tty_tiocmset,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1902:15: note: (near initialization for ‘acm_ops.tiocmset’)&lt;BR /&gt;cc1: some warnings being treated as errors&lt;BR /&gt;scripts/Makefile.build:264: recipe for target '/home/fuyongjie/Desktop/USB2SER/cdc-freescale.o' failed&lt;BR /&gt;make[2]: *** [/home/fuyongjie/Desktop/USB2SER/cdc-freescale.o] Error 1&lt;BR /&gt;Makefile:1403: recipe for target '_module_/home/fuyongjie/Desktop/USB2SER' failed&lt;BR /&gt;make[1]: *** [_module_/home/fuyongjie/Desktop/USB2SER] Error 2&lt;BR /&gt;make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-43-generic'&lt;BR /&gt;Makefile:4: recipe for target 'all' failed&lt;BR /&gt;make: *** [all] Error 2&lt;BR /&gt;ERROR: compiling Freescale CDC module&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Nov 2016 06:19:52 GMT</pubDate>
    <dc:creator>dylan_hu</dc:creator>
    <dc:date>2016-11-26T06:19:52Z</dc:date>
    <item>
      <title>Changing COM Port of USB2SER Driver</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-COM-Port-of-USB2SER-Driver/m-p/390689#M21265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following hardware and the driver installed on my computer. &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp&lt;/A&gt;&lt;SPAN&gt;? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;code=USB2SER&amp;amp;lang_cd= &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I can not change the COM port of the USB. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to change this COM port somehow to the number I like ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 15:18:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-COM-Port-of-USB2SER-Driver/m-p/390689#M21265</guid>
      <dc:creator>kamaljoshi</dc:creator>
      <dc:date>2015-01-07T15:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Changing COM Port of USB2SER Driver</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-COM-Port-of-USB2SER-Driver/m-p/390690#M21266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m afraid that the option for changing the COM port number is not supported by the USB2SER driver that includes flow control support; however, there is a workaround that consists in temporally changing the used driver for the standard CDC driver (without flow control) using the INF file purposed on Appendix C of USB2SER Datasheet (attached). The procedure is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;Go to “Device Manager” and expand “Ports (COM &amp;amp; LPT)” menu.&lt;/LI&gt;&lt;LI&gt;Right click on “Freescale CDC Device” and select “Update Driver Software”.&lt;/LI&gt;&lt;LI&gt;Select “Browse my computer for driver software”.&lt;/LI&gt;&lt;LI&gt;Select “Let me pick from a list of drivers on my computer”.&lt;/LI&gt;&lt;LI&gt;Click on the option “Have Disk”&lt;/LI&gt;&lt;LI&gt;Click on “Browse” button and locate the INF file that I have attached to this response.&lt;/LI&gt;&lt;LI&gt;Accept any Windows’ message.&lt;/LI&gt;&lt;LI&gt;Now you can change the port number by clicking on “Freescale CDC Device” --&amp;gt; “Proprieties” --&amp;gt; “Port Settings” --&amp;gt; “Advanced” --&amp;gt; “COM Port Number”.&lt;/LI&gt;&lt;LI&gt;Finally, accept changing the port number.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the USB2SER with this driver, but it doesn’t support Hardware Flow Control. If you want to have the USB2SER device with all of its features, you need to repeat all the procedure, but now, selecting the INF file included on USB2SER installation folder, located at the following path:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Program Files\Freescale\USB2SER\USB2SER_Drivers\FSL_USB_PID.inf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USB2SER developers are aware of this issue, and they are working on an updated driver for fixing it. Please let me know if you still having troubles or if you have further questions. Have a nice day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*** NOTE: Please change the extension of usb2ser.info file for usb2ser.inf ***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information will be useful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a good day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Diaz&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 21:03:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-COM-Port-of-USB2SER-Driver/m-p/390690#M21266</guid>
      <dc:creator>david_diaz</dc:creator>
      <dc:date>2015-01-07T21:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Changing COM Port of USB2SER Driver</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-COM-Port-of-USB2SER-Driver/m-p/390691#M21267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have install the drive in ubuntu16.04 with&amp;nbsp;USB2SER_Driver_Linux, but failed. Pls help .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Log:&lt;/P&gt;&lt;P&gt;root@neusoft:/home/fuyongjie/Desktop/USB2SER# ./Install.sh ubuntu&lt;BR /&gt;Installing Freescale CDC driver on Ubuntu&lt;BR /&gt;Reading package lists... Done&lt;BR /&gt;Building dependency tree &lt;BR /&gt;Reading state information... Done&lt;BR /&gt;linux-headers-4.4.0-43-generic is already the newest version (4.4.0-43.63).&lt;BR /&gt;The following packages were automatically installed and are no longer required:&lt;BR /&gt; libstdc++-4.8-dev wx-common&lt;BR /&gt;Use 'apt autoremove' to remove them.&lt;BR /&gt;0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.&lt;BR /&gt;fixing code con old kernel versions&lt;BR /&gt;make -C /lib/modules/4.4.0-43-generic/build M=/home/fuyongjie/Desktop/USB2SER modules&lt;BR /&gt;make[1]: Entering directory '/usr/src/linux-headers-4.4.0-43-generic'&lt;BR /&gt; CC [M] /home/fuyongjie/Desktop/USB2SER/cdc-freescale.o&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: In function ‘acm_ctrl_msg’:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:140:2: error: implicit declaration of function ‘dbg’ [-Werror=implicit-function-declaration]&lt;BR /&gt; dbg("acm_control_msg: rq: 0x%02x val: %#x len: %#x result: %d",&lt;BR /&gt; ^&lt;BR /&gt;In file included from include/linux/mmdebug.h:4:0,&lt;BR /&gt; from include/linux/gfp.h:4,&lt;BR /&gt; from include/linux/slab.h:14,&lt;BR /&gt; from /home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:60:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: At top level:&lt;BR /&gt;include/linux/bug.h:33:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))&lt;BR /&gt; ^&lt;BR /&gt;include/linux/kernel.h:831:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:102:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:329:47: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; static struct kobj_attribute pid_attribute = __ATTR(val_pid,0666,show_pid,stor&lt;BR /&gt; ^&lt;BR /&gt;In file included from include/linux/kobject.h:21:0,&lt;BR /&gt; from include/linux/cdev.h:4,&lt;BR /&gt; from include/linux/tty_driver.h:244,&lt;BR /&gt; from include/linux/tty.h:8,&lt;BR /&gt; from /home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:61:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:329:67: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; static struct kobj_attribute pid_attribute = __ATTR(val_pid,0666,show_pid,stor&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:103:10: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .show = _show, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:329:67: note: (near initialization for ‘pid_attribute.show’)&lt;BR /&gt; static struct kobj_attribute pid_attribute = __ATTR(val_pid,0666,show_pid,stor&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:103:10: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .show = _show, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:329:76: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; struct kobj_attribute pid_attribute = __ATTR(val_pid,0666,show_pid,store_pid);&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:104:11: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .store = _store, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:329:76: note: (near initialization for ‘pid_attribute.store’)&lt;BR /&gt; struct kobj_attribute pid_attribute = __ATTR(val_pid,0666,show_pid,store_pid);&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:104:11: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .store = _store, \&lt;BR /&gt; ^&lt;BR /&gt;In file included from include/linux/mmdebug.h:4:0,&lt;BR /&gt; from include/linux/gfp.h:4,&lt;BR /&gt; from include/linux/slab.h:14,&lt;BR /&gt; from /home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:60:&lt;BR /&gt;include/linux/bug.h:33:45: error: negative width in bit-field ‘&amp;lt;anonymous&amp;gt;’&lt;BR /&gt; #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))&lt;BR /&gt; ^&lt;BR /&gt;include/linux/kernel.h:831:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’&lt;BR /&gt; BUILD_BUG_ON_ZERO((perms) &amp;amp; 2) + \&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:102:12: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’&lt;BR /&gt; .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:386:47: note: in expansion of macro ‘__ATTR’&lt;BR /&gt; static struct kobj_attribute vid_attribute = __ATTR(val_vid,0666,show_vid,stor&lt;BR /&gt; ^&lt;BR /&gt;In file included from include/linux/kobject.h:21:0,&lt;BR /&gt; from include/linux/cdev.h:4,&lt;BR /&gt; from include/linux/tty_driver.h:244,&lt;BR /&gt; from include/linux/tty.h:8,&lt;BR /&gt; from /home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:61:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:386:67: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; static struct kobj_attribute vid_attribute = __ATTR(val_vid,0666,show_vid,stor&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:103:10: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .show = _show, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:386:67: note: (near initialization for ‘vid_attribute.show’)&lt;BR /&gt; static struct kobj_attribute vid_attribute = __ATTR(val_vid,0666,show_vid,stor&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:103:10: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .show = _show, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:386:76: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; struct kobj_attribute vid_attribute = __ATTR(val_vid,0666,show_vid,store_vid);&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:104:11: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .store = _store, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:386:76: note: (near initialization for ‘vid_attribute.store’)&lt;BR /&gt; struct kobj_attribute vid_attribute = __ATTR(val_vid,0666,show_vid,store_vid);&lt;BR /&gt; ^&lt;BR /&gt;include/linux/sysfs.h:104:11: note: in definition of macro ‘__ATTR’&lt;BR /&gt; .store = _store, \&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: In function ‘acm_rx_tasklet’:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:588:27: warning: passing argument 1 of ‘tty_insert_flip_string’ from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; tty_insert_flip_string(tty, buf-&amp;gt;base, buf-&amp;gt;size);&lt;BR /&gt; ^&lt;BR /&gt;In file included from /home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:64:0:&lt;BR /&gt;include/linux/tty_flip.h:32:19: note: expected ‘struct tty_port *’ but argument is of type ‘struct tty_struct *’&lt;BR /&gt; static inline int tty_insert_flip_string(struct tty_port *port,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:589:25: warning: passing argument 1 of ‘tty_flip_buffer_push’ from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; tty_flip_buffer_push(tty);&lt;BR /&gt; ^&lt;BR /&gt;In file included from /home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:64:0:&lt;BR /&gt;include/linux/tty_flip.h:13:13: note: expected ‘struct tty_port *’ but argument is of type ‘struct tty_struct *’&lt;BR /&gt; extern void tty_flip_buffer_push(struct tty_port *port);&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: In function ‘acm_tty_set_termios’:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1013:29: error: incompatible types when initializing type ‘struct ktermios *’ using type ‘struct ktermios’&lt;BR /&gt; struct ktermios *termios = tty-&amp;gt;termios;&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: In function ‘acm_write_buffers_free’:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1115:3: error: implicit declaration of function ‘usb_buffer_free’ [-Werror=implicit-function-declaration]&lt;BR /&gt; usb_buffer_free(usb_dev, acm-&amp;gt;writesize, wb-&amp;gt;buf, wb-&amp;gt;dmah);&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: In function ‘acm_write_buffers_alloc’:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1135:13: error: implicit declaration of function ‘usb_buffer_alloc’ [-Werror=implicit-function-declaration]&lt;BR /&gt; wb-&amp;gt;buf = usb_buffer_alloc(acm-&amp;gt;dev, acm-&amp;gt;writesize, GFP_KERNEL,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1135:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]&lt;BR /&gt; wb-&amp;gt;buf = usb_buffer_alloc(acm-&amp;gt;dev, acm-&amp;gt;writesize, GFP_KERNEL,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: In function ‘acm_probe’:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1401:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]&lt;BR /&gt; buf = usb_buffer_alloc(usb_dev, ctrlsize, GFP_KERNEL, &amp;amp;acm-&amp;gt;ctrl_dma);&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1434:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]&lt;BR /&gt; rb-&amp;gt;base = usb_buffer_alloc(acm-&amp;gt;dev, readsize,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c: At top level:&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1895:12: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; .ioctl = acm_tty_ioctl,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1895:12: note: (near initialization for ‘acm_ops.ioctl’)&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1901:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; .tiocmget = acm_tty_tiocmget,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1901:15: note: (near initialization for ‘acm_ops.tiocmget’)&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1902:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]&lt;BR /&gt; .tiocmset = acm_tty_tiocmset,&lt;BR /&gt; ^&lt;BR /&gt;/home/fuyongjie/Desktop/USB2SER/cdc-freescale.c:1902:15: note: (near initialization for ‘acm_ops.tiocmset’)&lt;BR /&gt;cc1: some warnings being treated as errors&lt;BR /&gt;scripts/Makefile.build:264: recipe for target '/home/fuyongjie/Desktop/USB2SER/cdc-freescale.o' failed&lt;BR /&gt;make[2]: *** [/home/fuyongjie/Desktop/USB2SER/cdc-freescale.o] Error 1&lt;BR /&gt;Makefile:1403: recipe for target '_module_/home/fuyongjie/Desktop/USB2SER' failed&lt;BR /&gt;make[1]: *** [_module_/home/fuyongjie/Desktop/USB2SER] Error 2&lt;BR /&gt;make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-43-generic'&lt;BR /&gt;Makefile:4: recipe for target 'all' failed&lt;BR /&gt;make: *** [all] Error 2&lt;BR /&gt;ERROR: compiling Freescale CDC module&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2016 06:19:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-COM-Port-of-USB2SER-Driver/m-p/390691#M21267</guid>
      <dc:creator>dylan_hu</dc:creator>
      <dc:date>2016-11-26T06:19:52Z</dc:date>
    </item>
  </channel>
</rss>

