Few days ago I bought a DEMO9S12NE64 kit on eBay and soon realized that I need a BDM programmer. Whoa, times fly, it was yesterday (about 20 years ago) that I was playing with BDM programmer on Linux over parallel port. Then I just bought a USBDM and when I plugged it on Linux and ran dmesg:
[ 9304.940188] usb 1-2: new full-speed USB device number 8 using xhci_hcd
[ 9305.091381] usb 1-2: New USB device found, idVendor=16d0, idProduct=0567, bcdDevice= 4.10
[ 9305.091394] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9305.091401] usb 1-2: Product: USBDM RS08,HCS08,HCS12,CF-V1 BDM
[ 9305.091405] usb 1-2: Manufacturer: pgo
[ 9305.091409] usb 1-2: SerialNumber: USBDM-JMxx-0001
Then I downloaded a usbdm_4.12.1.262-1-x86_64.deb but it was using some only libraries that doesn’t exist currently Ubuntu Linux. The solution was compiling it from source code:
$ git clone https://github.com/podonoghue/usbdm-eclipse-makefiles-build
$ cd usbdm-eclipse-makefiles-build
$ ./LinuxPackages
$ ./MakeAll
$ ./CreateDebFile
$ sudo dpkg -i ../usbdm_4.12.1.270-1-x86_64.deb
This is the output log of the installation:
Selecting previously unselected package usbdm. (Reading database ... 338275 files and directories currently installed.) Preparing to unpack .../usbdm_4.12.1.270-1-x86_64.deb ... Unpacking usbdm (4.12-1) ... Setting up usbdm (4.12-1) ... Checking for Eclipse directories ================================================================== Looking for Eclipse in '/usr/local/eclipse*' - Not Found Looking for Eclipse in '/opt/eclipse*' - Not Found Looking for Eclipse in '/usr/lib/eclipse*' - Not Found Looking for Eclipse in '/opt/cpp-neon/eclipse*' - Not Found Looking for Eclipse in '/root/eclipse/cpp-2019-09/eclipse' - Not Found Looking for Eclipse in '/root/eclipse/cpp-2019-06/eclipse' - Not Found Looking for Eclipse in '/root/eclipse/cpp-2019-03/eclipse' - Not Found Checking for KDS directories ================================================================== Looking for Freescale KDS in '/usr/local/Freescale/KDS_*' - Not Found Looking for Freescale KDS in '/opt/Freescale/KDS_*' - Not Found Checking for Codewarrior directory ================================================================== Looking for Codewarrior in '/usr/local/Freescale/CodeWarrior_MCU_10.2' - Not Found Looking for Codewarrior in '/opt/Freescale/CodeWarrior_MCU_10.2' - Not Found Processing triggers for mailcap (3.69ubuntu1) ... Processing triggers for gnome-menus (3.36.0-1ubuntu1) ... Processing triggers for desktop-file-utils (0.26-1ubuntu2) ... Processing triggers for man-db (2.9.4-2) ...