41 Replies Latest reply: Nov 8, 2012 9:48 AM by John Cottier RSS

CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)

Pierre Grondin Level 1

I am looking to find a way to get the USB P&E Multilink drivers working with CodeWarrior 10 for Linux

 

I looked for some procedures on the beta site but did not find anything. I saw that RedHat Enterprice 5.2 is supported somewhere in the CW10 documentation but I guess the real answer is that CW is not that limited regarding Linux distribution.

 

I tried with Ubuntu 9.10 x64 and Ubuntu 9.10 x86 without success. In both cases CW10 ran fine but when I tried to debug the code with the P&E Multilink for a HCS08, the Multilink is not found (GDI not found error)

 

Looking at the installation, there is a P&E folder is /usr/local so I tried to recompile et reinstall the driver but it did not work. On x64, it simply does not compile while on x86, it compiles but does not install complaining about a missing usbfs.

 

I am willing to switch Linux distribution if needed.

 

Thanks for the help.

 

Pierre

  • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
    David Cortes Level 1

    I have the same problem.

    I tried Ubuntu 10.04 x64 and failed because of a libusbxxx file.  but i did not  try to solve it because there is no expressed support in the documentation files.

     

    Then i tried then with suse 11.3, and face the same problem plus a few kernel compilation  issues. This time i got rid of them all, until i got  this message :

     

    configure: error: You are trying to install WinDriver for i386 on x86_64.

     

    I also tried folowing the jungo instructions at this page 

    http://www.jungo.com/st/support/installation_instructions.html

    but i get the same error.

     

    here is the output from the installation attemp.

     

    ============================================================================================

     

     

    dcgasca@linux-5tug:/usr/local/Freescale/CodeWarrior_MCU_10.0/Drivers/pemicro> sudo ./setup.sh 
    cleaned old version install
    USE_KBUILD = yes
    loading cache ./config.cache
    configure: error: You are trying to install WinDriver for i386 on x86_64.
    loading cache ./config.cache
    configure: error: You are trying to install WinDriver for i386 on x86_64.
    make -f makefile.usb.kbuild clean
    make[1]: se ingresa al directorio `/usr/local/PEMicrocomputerSystems/windriver/redist'
    make[1]: makefile.usb.kbuild: No existe el fichero o el directorio
    make[1]: *** No hay ninguna regla para construir el objetivo `makefile.usb.kbuild'.  Alto.
    make[1]: se sale del directorio `/usr/local/PEMicrocomputerSystems/windriver/redist'
    make: *** [clean] Error 2
    make -f makefile.usb.kbuild
    make[1]: se ingresa al directorio `/usr/local/PEMicrocomputerSystems/windriver/redist'
    make[1]: makefile.usb.kbuild: No existe el fichero o el directorio
    make[1]: *** No hay ninguna regla para construir el objetivo `makefile.usb.kbuild'.  Alto.
    make[1]: se sale del directorio `/usr/local/PEMicrocomputerSystems/windriver/redist'
    make: *** [all] Error 2
    make -f makefile.usb.kbuild
    make[1]: se ingresa al directorio `/usr/local/PEMicrocomputerSystems/windriver/redist'
    make[1]: makefile.usb.kbuild: No existe el fichero o el directorio
    make[1]: *** No hay ninguna regla para construir el objetivo `makefile.usb.kbuild'.  Alto.
    make[1]: se sale del directorio `/usr/local/PEMicrocomputerSystems/windriver/redist'
    make: *** [all] Error 2
    Waiting 15 seconds for windriver's kernel module to load...
    ********* ********** ********** ******** *********
    ********* ********** ********** ******** *********
    ********* ********** ********** ******** *********
    ********* P&E Install has failed******** *********
    ********* ********** ********** ******** *********
    ********* ********** ********** ******** *********
    ********* ********** ********** ******** *********

     

    ============================================================================================

     

    The documentation from windriver says the driver has support for x64, but may be another file not supplied by the codewarrior instalation package.  so i may ask :

     

    have anyone used succesfully the p&e multilink in any linux  x64  distribution ? 

     

    have anyone used succesfully in ANY LINUX distribution  ?

     

     

     

     

  • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
    HCatalin Employee

    Hi Pierre,

    The official Linux distribution supported by MCU10.0 is Linux Red Hat Enterprise Edition 5.2 32-bit. Please use exactly this version in order avoid any issues with the P&E drivers and runtime libraries.

    Note that in order to install the P&E driver you have to use a SU user.

     

    If this doesn't work for you please enable the logger from the Launch config dialog \ Connection tab and attach it.

     

     

  • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
    David Cortes Level 1

     

    I think there is no hope for our P&E multilink in linux x64. 

     

    I looked allover the windriver webpage (the programmers of our multilink drivers) but i could not find support for 64 bit.

    but there is hope, the osbdm should work  on x64 but i have not tried yet.

     

    I could install CW 10 without much problem  

     

    To use MQX, i had to uncompress the files (run the installation .exe file with wine or windows) , copy the files to the workspace and manually link the libraries to my project.

    I could compile successfully my project, but sadly, i cannot use the MQX wizzard. It would be necesary to modify some of the plugin files. 

     

    THIS IS TRUE FOR ANY LINUX FLAVOR /  32-64 BITS

     

     

     

     

     

    • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
      Karl Schmidt Level 1
      The question is if multi-link at least works under i86? I'm setting up a box next week to find out.
      • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
        Karl Schmidt Level 1

        It appears that you need to setup a command in /etc/rc.local

        I'm still getting :

        Error initializing Debug Database.
        Could not load debug database. This is indicative of an installation or configuration problem. Please contact customer support.


        Can someone confirm if this is due to the failure of PEsrv ?

        • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
          Karl Schmidt Level 1

           

          It appears that PE multilink isn't working on Linux even on i386 ?

           

          The PEmicro tab is dimmed - I've confirmed that the module is loaded

           

          $ lsmod |grep wind
          windrvr6              161735  0

           

          Any other clues - or perhaps I've wasted enough time on this?

           

           

           

           

           

          • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
            Moises De La Cruz Level 1

            WORKAROUND THAT WORKS FOR ME!

             

            Ok, as I posted earlier, I could not get Codewarrior 10 Eclipse to recognize the USB P&E Multilink before.

            Now it is working for me after doing the following steps once every time I reboot my linux box.

             

            /PATH/TO/CODEWARRIOR_MCU_10.0/Drivers/pemicro$ sudo sh setup.sh  (reinstall drivers)

            /PATH/TO/CODEWARRIOR_MCU_10.0/eclipse sudo ./cwide  (execute CW10 with root privilages)

             

            I know that this is not the final solution, but when I do this, I am able to flash, debug my HCS08 hardware using the P&E USB Multilink and CW10.   

             

            I hope this works for everyone else.

            Does this work for anyone else?

             

             

             

             

            ###########################################################################

            MORE INFO:

            MY SYSTEM:  Ubuntu 10.04, 32 bit machine, 32 bit OS.

             

            I get the following output when I run the sh setup.sh command to re-install driver:

            (I just pasted the last part of it)

            ...

             

            Installing the WinDriver kernel module(s)
            -----------------------------------------
            WinDriver's kernel modules (windrvr6.ko and windrvr6_usb.ko)
            can be reloaded upon every boot.
            The kernel module will be loaded after running the wdreg script upon boot
            in the following manner:
                <path to the wdreg script>/wdreg windrvr6 auto
            Alternatively you can manually load the kernel module as explained
            in WinDriver's User's Manual.
            It is recommended to add this call in your rc.local file.
            NOTE: Due to security reasons, by default, /dev/windrvr6 is created with
            permissions only for the root user. To enable other user access,
            change the permissions of /dev/windrvr6
            mount: unknown filesystem type 'usbfs'
            WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
            WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
            make[1]: Leaving directory `/usr/local/PEMicrocomputerSystems/windriver/redist'
            setup.sh: 57: Bad substitution

             

            Installing the WinDriver kernel module(s)-----------------------------------------WinDriver's kernel modules (windrvr6.ko and windrvr6_usb.ko)can be reloaded upon every boot.The kernel module will be loaded after running the wdreg script upon bootin the following manner:    <path to the wdreg script>/wdreg windrvr6 autoAlternatively you can manually load the kernel module as explainedin WinDriver's User's Manual.It is recommended to add this call in your rc.local file.

            NOTE: Due to security reasons, by default, /dev/windrvr6 is created withpermissions only for the root user. To enable other user access,change the permissions of /dev/windrvr6
            mount: unknown filesystem type 'usbfs'

            WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.make[1]: Leaving directory `/usr/local/PEMicrocomputerSystems/windriver/redist'setup.sh: 57: Bad substitution

             

             

            • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
              sledge hammer Level 1

              Hello mdelac01 and community!

               

              Been trying to get it up and running, to no success. My case:

               

              Freescale MC9S08QG8 on the DEMO9S08QG8 board

              connected via USB cable to host: Ubuntu 10.10 32-bit on the 32-bit acer laptop with custom 2.6.35 kernel compiled with CONFIG_USB_DEVICEFS (to avoid error in pemicro setup.sh)

               

               

               

              Ran

              ./Drivers/pemicro$ sudo ./setup.sh

              ./eclipse$ sudo ./cwide

               

              In cwide upon executing Debug->hello-world_MC9S08QG8_PnE USB BDM I get:

               

              Info: Notice - Cyclone Pro/Max USB driver did not initialize. (2000000A)Info:        - Library=libwdapi1002.soInfo: Error opening selected communication interfaceError: Error - Port not found.Info: Could not contact P&E Hardware Interface. Check Power and Connections.Info: Could not contact P&E Hardware Interface. Check Power and Connections.

              and this in dmesg:

              [10987.064602] OS_register_devices: Not supported on this platform[10987.064760] OS_register_devices: Not supported on this platform[10987.064851] OS_register_devices: Not supported on this platform

              2000000A means WD_NOT_IMPLEMENTED (from http://read.pudn.com/downloads66/sourcecode/windows/vxd/238062/p9054/windrvr.h__.htm)

               

              This might be the clue, but could not find anything on this one in the net..

               

              Earlier had fixed the "mount: unknown filesystem type 'usbfs'" error during ...pemicro$ sudo ./setup.sh , but did not solve the problem.

              Had this problem (2000000A) months ago, too, on EasyPeasy Ubuntu-8.10-based netbook distro, so I do not think that testing it on 10.04 would be worth the time.

               

              Where could be the problem in my case?.. (see more listings under the signature)

               

              I realy much hope that at least it works for most of you Linux fellows out there!

               

              -- 

              sledge

               

              lsmod | head:

               

              Module                  Size  Used bywindrvr6              169024  0parport_pc             25956  0ppdev                   5368  0dm_crypt               11110  0arc4                    1165  2joydev                  8551  0snd_hda_codec_realtek   216741  1snd_hda_intel          21789  2pcmcia                 35682  0...

               dmesg of windrv6 load and USB cable connect:

              [10820.986092] windrvr6: module license 'Proprietary' taints kernel.[10820.986099] Disabling lock debugging due to kernel taint[10820.990889] WinDriver v10.02 Jungo (c) 1997 - 2009 Build Date: Jul 14 2009 X86 32bit loaded[10884.969064] usb 1-3: new high speed USB device using ehci_hcd and address 3[10885.101501] usb 1-3: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 256[10885.101507] usb 1-3: config 1 interface 0 altsetting 0 bulk endpoint 0x2 has invalid maxpacket 256

               

               

               

              tail of the ./Drivers/pemicro$ sudo ./setup.sh output:

              <...>./setup_inst_dir /usr/local/PEMicrocomputerSystems/windriver /lib/modules/2.6.35.4embeneric/kernel/drivers/misc LINUX.2.6.35.4embeneric.i386/windrvr6.ko no "change the permissions of /dev/windrvr6"Installing the WinDriver kernel module(s)-----------------------------------------WinDriver's kernel module (windrvr6.ko)can be reloaded upon every boot.The kernel module will be loaded after running the wdreg script upon bootin the following manner:    <path to the wdreg script>/wdreg windrvr6 autoAlternatively you can manually load the kernel module as explainedin WinDriver's User's Manual.It is recommended to add this call in your rc.local file.NOTE: Due to security reasons, by default, /dev/windrvr6 is created withpermissions only for the root user. To enable other user access,change the permissions of /dev/windrvr6WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.make[1]: Leaving directory `/usr/local/PEMicrocomputerSystems/windriver/redist'Waiting 15 seconds for windriver's kernel module to load...********* ********** ********** ******** ****************** ********** ********** ******** ****************** ********** ********** ******** ****************** P&E Install has been a success ****************** ********** ********** ******** ****************** ********** ********** ******** ****************** ********** ********** ******** *********

               

               

            • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
              Karl Schmidt Level 1

              mdelac01 - do you have this line in /etc/rc.local ?

              /usr/local/Freescale/CodeWarrior_MCU_10.0/Drivers/pemicro/windriver/redist/wdreg windrvr6 auto
              chown user.user /dev/windrvr6
              chmod 777 /dev/windrvr6

               

              ,.,.,.,.,.,.,.,.

               

              sledge -

              Which version are you running - the isn't that special version for Linux MCU I found is different than the evaluation version.

              (Who knows why).

               

              The problem you are having is different - I'm running Debian squeeze - i386 2.6.32-5-686

              ,.,.,.

               

              The PE effect I now see is the menu is there at startup - but dims after a couple of seconds. 

               

              Does the BDM device have to be powered up (yellow LED lit) for the menu item to stay un-dimmed ?

               

               

               

               

               

              • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                sledge hammer Level 1

                 


                xtronics wrote:

                ,.,.,.,.,.,.,.,.

                 

                sledge -

                Which version are you running - the isn't that special version for Linux MCU I found is different than the evaluation version.

                (Who knows why).

                 

                The problem you are having is different - I'm running Debian squeeze - i386 2.6.32-5-686


                 

                xtronics, I am running a Special Edition. Eval version did not install, because of the corrupted install file. I might try to re-download and re-try the eval version.

                But as far as I remember my first attempts with 8.10 EasyPeasy distro ended up with the same USB Debug error even whilst trying the Eval version (had a non-corrupted one).

                 

                Many thanks;

                 

                --&nbsp:

                sledge

                • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                  sledge hammer Level 1

                  It works, having booted back to Ubuntu 10.04, mounted the Special Edition installation from the 10.10 partition, ran pemicro setup.sh, and the only difference was that the windrv6_usb driver was built, too, and insmodded correctly.

                   

                  This resulted in a successful debug session, having the board flashed with the hello world binary.

                   

                  Great success!

                  Now for the curious investigators it is time to find out, why windvr6_usb does is not insmodded and/or built (only windrv6.ko is)

                   

                  -- 

                  sledge

                  • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                    Karl Schmidt Level 1

                    sledge -

                    I would stay away from the eval version - I found it unusable.

                     

                    I don't know which is the latest - they seem to have borrowed a page from M$ play book with silent revs - it should be something like CW-for-Linux-10.0.xxx so forum users can compare apples with apples.

                     

                    Can you tell me if the P&E menu dimms if the target board is not powered up? Or disconnected?

                     

                     

                     

                    • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                      sledge hammer Level 1

                      xtronics,

                      PE Menu lights up upon connect, and stays lit. When I disconnect (and/or plug the USB cable out), it dimms.

                      I could test the PEMenu when the board is not powered up (i.e., it powers up via USB voltage supply anyhow automatically). To change the jumpers to get the supply from an external source, I do not want to try (since I do not yet have an external supply here with me)

                       

                      executing ./Drivers/pemicro/windriver/wdreg windrvr6 auto is needed every time after restart; thanks for this, xtronics!

                       

                      -- 

                      sledge

                      • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                        Karl Schmidt Level 1

                        I'm still getting P&E menu for just a second and it dims - nothing I can do to get it to be seen. 

                         

                         

                        ll /dev/ |grep windcrwxrwxrwx  1 karl karl    250,   0 Oct 18 20:10 windrvr6

                         

                         

                         

                         

                        Plugging in the P&E provides this in syslog - note the invalid maxpacket:

                        Oct 18 22:04:41 england-86 kernel: [ 7088.599697] usb 2-3: USB disconnect, address 4Oct 18 22:04:43 england-86 kernel: [ 7090.692525] usb 2-3: new high speed USB device using ehci_hcd and address 5Oct 18 22:04:43 england-86 kernel: [ 7090.824473] usb 2-3: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 256Oct 18 22:04:43 england-86 kernel: [ 7090.824479] usb 2-3: config 1 interface 0 altsetting 0 bulk endpoint 0x2 has invalid maxpacket 256Oct 18 22:04:48 england-86 kernel: [ 7095.825083] usb 2-3: New USB device found, idVendor=1357, idProduct=0503Oct 18 22:04:48 england-86 kernel: [ 7095.825091] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3Oct 18 22:04:48 england-86 kernel: [ 7095.825096] usb 2-3: Product: USB-ML-12 Rev COct 18 22:04:48 england-86 kernel: [ 7095.825099] usb 2-3: Manufacturer: P&E Microcomputer Systems, Inc.Oct 18 22:04:48 england-86 kernel: [ 7095.825102] usb 2-3: SerialNumber: PE5515440Oct 18 22:04:48 england-86 kernel: [ 7095.825341] usb 2-3: configuration #1 chosen from 1 choice

                         

                         

                         

                         

                         

                        My output  - if someone could please send me their output ( karl@xtronics.com)

                         

                         

                        $ ./cwidePlugin com.processorexpert.core.socketclient ProcessorExpertServiceProvidercom.processorexpert.core: Plugin com.processorexpert.core.socketclient ProcessorExpertServiceProvidercom.processorexpert.core: System directory = /usr/local/Freescale/CodeWarrior_MCU_10.0/MCU/ProcessorExpertCannot get env. variable ALLUSERSPROFILEcom.processorexpert.core: User working directory = /home/karl/workspace/.metadata/.plugins/com.processorexpert.core/CWMCU_PE1_00Plugin com.processorexpert.ui.cdtlayout ExpertPerspectiveManaged Build system manifest file error: Duplicate identifier cdt.managedbuild.tool.gnu.c.compiler.input for element type InputType.Managed Build system manifest file error: Duplicate identifier cdt.managedbuild.tool.gnu.cpp.compiler.input for element type InputType.Managed Build system manifest file error: Duplicate identifier cdt.managedbuild.tool.gnu.c.compiler.input for element type InputType.Managed Build system manifest file error: Duplicate identifier cdt.managedbuild.tool.gnu.cpp.compiler.input for element type InputType.Managed Build system manifest file error: Duplicate identifier hc08.toolchain.compiler.base.opt.o0 for element type Option

                         

                         

                         

                  • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                    Chris de Villiers Level 1

                    Hi sledge

                     

                    I am somewhat confused. Having tried everything you and the other guys suggest, I still cannot get my P&E USB Multilink BDM to work on either 9.10 or 10.04 (two different computers). I eventually contacted the local Freescale distributor in South Africa, who took up the matter with P&E Microcomputer Systems. Someone from P&E contacted me and suggested that I download some drivers from their website. I tried, but it turned out that the file was a Windows executable. When I mentioned this to P&E, I received this reply:

                     

                    "We don't currently support Ubuntu 10.04 (or 9.10 for that matter) as all of our tests were done with 9.04 and 8.10."

                     

                    You said that you managed to get it working on 10.04? I wonder why I can't. The BDM works, because I frequently use it with CodeWarrior 6.3 on a Windows installation. This is the only thing standing in my way to move over totally to Ubuntu.

                     

                    namaquaguy

                    • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                      sledge hammer Level 1

                      namaquaguy,

                       

                      What errors do you get? Is windrvr6 and windrvr6_usb both insmodded? (check with lsmod)

                       

                      PS to all: I found out, that usbfs is not needed for this to function. I still get mount: usbfs filesystem type not supported; during ./setup.sh installation, but BDM works fine (10.04)

                      • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                        Karl Schmidt Level 1

                        namaquaguy -

                         

                        Here is a big clue.. Out of frustration, I took my wifes netbook that had xp on it loaded up CW-4-up-windoze-special and the first thing it did was update the firmware in the P&E pod (not the target ) - not once -  but three times! (probably had to go from v1 => v2 => v3  This was on a brand new P&E multilink.

                         

                        So reading inbetween the lines  - it appears that the driver in the Linux version lacks this ability - seems to be a software artifact from the bronze age  before 64 bit systems - and lacking the standard features of the windoze version.

                         

                        I'm still testing, but I will note what happens on my wiki page on CW..  Hoping it will stop dropping crash logs etc..

                         

                        I've also ordered a pod from http://www.flashgenie.net/USBDM.html - this has opensource drivers so one should be able to compile a 64bit version..  Not sure what if any differences in the feature set.

                         

                        Sledge -

                         

                        Did you ever have your multilink attached to a windoze box?

                         

                         

                         

                         

                        • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                          sledge hammer Level 1

                           


                          xtronics wrote:

                          ...

                          Sledge -

                           

                          Did you ever have your multilink attached to a windoze box?


                           

                          Yes, that was the first thing I did the dualboot2windoze when I bumped onto the linux-no-go wall, to make sure the thing works at all.

                           

                          Most prolly that's where your mentioned firmware upgrade took place.

                          • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                            Karl Schmidt Level 1

                            xulioc -

                             

                            Can you send me a copy of those three configure files .. karl -at- xtronics.com  I think I know what you did  - but testing did not fix things.

                             

                            Is the error only a test to set things to build?

                             

                            Which kernel are you using?

                             

                            Were there any config settings you had to change?

                             

                            Are you using the 'special' version 10.0 ?

                             

                            • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                              Karl Schmidt Level 1

                              I finally have it working  - (thanks  xulioc for pointing the way )  this is on Debian squeeze :

                               

                              Find the line that says :


                                           echo "#include <linux/autoconf.h>" >> hello.c

                               

                              I changed it  to after trying other approaches..

                               

                                           echo "#include </usr/src/linux/include/linux/autoconf.h>" >> hello.c

                               

                              ,.,.,.,.

                               

                              Things are working - yet:

                               

                              My output of ./configure is sayin:

                               

                               checking for udev support... no

                               

                              But I know there is udev..

                               

                              The part of  configure that is doing the check is:

                               

                               

                              if test $VER_BASE = "2.6" ; then                                                                                                                                  
                                      echo $ac_n "checking for udev support""... $ac_c" 1>&6                                                                                                   
                              echo "configure:867: checking for udev support" >&5                                                                                                              
                                      if test $VER_SUBMINOR -lt 13 ; then                                                                                                                      
                              #kps            UDEV=`ps -ef | grep -w udevd | grep -vc grep`                                                                                                    
                                              UDEV=`ps -ef | grep -w udevd | grep -vc grep`                                                                                                    
                                              if test $UDEV != 0; then                                                                                                                         
                                                      USE_UDEV="yes"                                                                                                                           
                                                      EXTRA_CFLAGS="$EXTRA_CFLAGS -DUDEV_SUPPORT"                                                                                              
                                                      DEV_CHANGE_PERMISSION_MSG="add the line \"windrvr6_usb:root:root:0666\" to /etc/udev/permissions.d/50-udev.permissions"                  
                                              fi                                                                                                                                               
                                      fi                                                                                                                                                       
                                      echo "$ac_t""$USE_UDEV" 1>&6                                                                                                                             
                              fi                                       

                               

                               

                              The older udev used /etc/udev/permissions.d   - but that has gone away with newer kernels.

                               

                              I will also have the OSBDM and will see if I can get things to work in the 64 bit world next week..

                               

                               

                               

                        • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                          Chris de Villiers Level 1

                          Hi all, thanks for the advice, but I seem to be getting nowhere fast.

                           

                          P&E Micro sent me another file with drivers, which I installed with sudo sh setup.sh. This seems to have solved the previously encountered errors, but it would appear that the BDM is not actually communicating with the target board.

                           

                          I have programmed the target to flash a LED - I did this on Windows running CodeWarrior 6.3. On Linux, I followed the instructions in the documentation on how to import a program flash task for HCS08. When I start the task, all the commands and results are displayed in the console, and I get messages such as 'Erase Command Succeeded', 'Status Checking Succeeded. MC9S08QG8_FLASH  Blank' etc. Then it starts to 'program', but hangs up at 46% as shown in the status bar. In the meantime the LED on the target keeps flashing happily, telling me that the BDM didn't actually do the erasing, blank checking and programming.

                           

                          Has anyone experienced this?

                          • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                            Karl Schmidt Level 1

                            namaquaguy

                             

                            Those are the same symptoms I had before setting up the configure file to say KERNEL_DIR="/usr/src/linux"

                             

                            (of course you have the have your linux-headers installed..)

                             

                            I would be interested in seeing the files they sent you -  karl (at) xtronics.com

                             

                            Please also send me the output of your

                            $ uname -a 

                            $ lsmod |grep wind

                            $ ll /dev |grep wind

                             

                            If you are working with a 64 bit system - I don't think it will work - the build files have hooks for compiling to 64 bits, but the supplied lib is just for 32 bit machines - so to use that pod it seems a minimum of installing as 32bit is needed (it could be they sent you the 64 bit libs in those files? )

                             

                            Some of the things mentioned above are not correct - it I have it working without runnng as root. The fix that xulioc mentioned didn't work for me - it did help me find the real problem..

                             

                            Things are still a bit of a mess - the version of Java they include with CW contains known security vulnerabilities - not sure if it is used in any way that puts a machine at risk ( "As of November 3, 2009 version 5 of Java was declared End of Life by Sun" - best I can tell this version is from 2005  - I did some tests that suggest that it should run fine under a current java release - build 1.6.0_22-b04)

                             

                            I'm still waiting for the OSBDM pod to arrive to test for use on a 64bit machine.

                             

                            There is also a problem that Codewarrior driver drops some hidden files in /etc   .windriver.rc and .java/  that shouldn't be there and didn't get cleaned on uninstall.

                             

                             

                             

                            • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
                              Chris de Villiers Level 1

                              xtronics

                               

                              Thanks for your help. The guy from P&E Micro has since admitted that he has been sending me old drivers!

                               

                              Anyway, I re-installed the drivers that came with CW 10.0, so I am at least back to that point. Next, I want to try your other suggestions, but first I'd like to remove CW from my Ubuntu 9.10 machine, because I now have two installations on the same machine. Also, I want to upgrade to 10.04.1 today. Then I can start from scratch again.

                               

                              Any suggestions as to how I should go about to remove CW? Obviously Synaptic Package Manager and apt-get won't work.

            • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
              Xulio Coira Level 1

              Thanks for your tips!

               

              I had to tweak some files in order to make it work.

               

              configure:    echo “#include <generated/autoconf.h>” >> hello.c
              configure.usb:            echo “#include <generated/utsrelease.h>” > hello.c
              configure.wd:            echo “#include <generated/utsrelease.h>” > hello.c

               

              http://xulioc.wordpress.com/2010/10/25/codewarrior-10-eclipse-usb-pe-multilink-and-ubuntu-10-10/

               

              Regards.

  • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
    Claudinei Donato Level 1

    Has anyone successfully used the WinDriver 11.10 32-bit Ubuntu?
    The CodeWarrior works, but the driver of thePEmicro Multilink does not work. I tried in various ways, but I could not install windrvr6. During installation the message "This kernel is too recent: not supported by this file."

  • Re: CodeWarrior 10 Eclipse Linux : Getting USB P&E Multilink drivers to work (HCS08)
    John Cottier Level 1

    I used CW10.1 and 10.2 on Ubuntu 10.04, which worked well except for have to manually load the windriver module after each reboot. Plus the PE Micro driver had to reinstalled on every kernel update.

     

    However when I updated to Ubuntu 12.04, the driver would not install at all and the PE Micro installer script generated errors indicating it could find various kernel related files.

     

    I contacted PE Micro via their support, and they recommended to use the libusb driver which is now their recommended driver:- sudo "setup.sh" in ../Drivers/pemicro/libusb_64_32. The lastest PE micro driver is currently avaliable at http://www.pemicro.com/downloads/user_downloads_temp/201211020440131152306316306/PemicroLinuxDrivers_2012_09_06.tar.gz

    But I dont know how long that link will be active.

     

    This driver does not work terribly well. It usually fails on the first attempt by the CW IDE to invoke the "3rd party tools". But when you terminate the launch and relaunch debug then it seems to download and work fine. Maybe this is a CW fault and not PE Micro's. But on the plus side, it works from boot without having to install the driver module, and no lock ups yet. The old driver regularly used to lock up the cwde process. But again, maybe this is a Freescale CW issue.