I just got my TI MSP430 Launchpad and saw that msp430-gcc and mspdebug got imported into ports. >From the commit message: "One will need an upcoming umodem.c commit by >jakemsr@, and an upcoming mspdebug port in order to actually program the devices though." Is this the mentioned umodem.c commit: http://marc.info/?l=openbsd-cvs&m=129125391912134&w=2 ?
Compiling works(?) as expected. But when I try to upload the binary to the chip, I get the following errors: $ mspdebug rf2500 MSPDebug version 0.13 - debugging tool for MSP430 MCUs Copyright (C) 2009, 2010 Daniel Beer <[email protected]> This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. usbutil: unable to find a device matching 0451:f432 $ mspdebug rf2500 -U 0451:f432 MSPDebug version 0.13 - debugging tool for MSP430 MCUs Copyright (C) 2009, 2010 Daniel Beer <[email protected]> This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. usbutil: unable to find 451:000 (might be unrelated, but why did it search for 451:000 ?) $ mspdebug rf2500 --usb-list Devices on bus 000: Devices on bus 000: Devices on bus 000: Devices on bus 000: Devices on bus 000: So it doesn't find it, but it is plugged in and recognized: $ usbdevs -v Controller /dev/usb0: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x8086), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered port 7 addr 3: high speed, power 100 mA, unconfigured, RTL8187B(0x8198), Realtek(0x0bda), rev 2.00, iSerialNumber 00e04c000001 port 8 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00 port 1 powered port 2 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00 port 1 addr 2: full speed, power 100 mA, config 1, Texas Instruments MSP-FET430UIF(0xf432), Texas Instruments(0x0451), rev 1.00, iSerialNumber A7FF41CE96103E46 port 2 powered Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00 port 1 powered port 2 powered Controller /dev/usb4: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00 port 1 powered port 2 powered In my dmesg it shows that the launchpad attaches as uhidev(4), does this mean that the kernel is to old and does not contain the usb_quirks.c commit from dec 1 to prevent this? (http://marc.info/?l=openbsd-cvs&m=129127220327339&w=2) (Just finished upgrading to this version a few hours ago, currently downloading another, newer snapshot. Might take some time though.) $ dmesg OpenBSD 4.8-current (GENERIC) #510: Sat Dec 4 12:03:30 MST 2010 [email protected]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Atom(TM) CPU N270 @ 1.60GHz ("GenuineIntel" 686-class) 1.60 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE real mem = 1060163584 (1011MB) avail mem = 1032769536 (984MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 05/09/08, SMBIOS rev. 2.4 @ 0xe8e70 (32 entries) bios0: vendor Acer version "v0.3114" date 05/09/2008 bios0: Acer AOA150 acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SSDT HPET APIC MCFG ASF! SLIC BOOT acpi0: wakeup devices P32_(S4) UHC1(S3) UHC2(S3) UHC3(S3) UHC4(S3) ECHI(S3) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) AZAL(S0) MODM(S0) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 133MHz cpu at mainbus0: not configured ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 4 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 4 (P32_) acpiprt2 at acpi0: bus 1 (EXP1) acpiprt3 at acpi0: bus 2 (EXP2) acpiprt4 at acpi0: bus -1 (EXP3) acpiprt5 at acpi0: bus 3 (EXP4) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1, PSS acpibtn0 at acpi0: PWRB acpibtn1 at acpi0: LID0 acpibtn2 at acpi0: SLPB acpibat0 at acpi0: BAT1 not present acpiac0 at acpi0: AC unit online acpivideo0 at acpi0: OVGA acpivout0 at acpivideo0: CRT1 acpivout1 at acpivideo0: DTV1 acpivout2 at acpivideo0: DFP1 acpivout3 at acpivideo0: LCD_ acpivout4 at acpivideo0: DTV2 acpivout5 at acpivideo0: DFP2 bios0: ROM list: 0xc0000/0xec00! 0xcf000/0x1000 cpu0: Enhanced SpeedStep 1597 MHz: speeds: 1600, 1333, 1066, 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82945GME Host" rev 0x03 vga1 at pci0 dev 2 function 0 "Intel 82945GME Video" rev 0x03 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0x40000000, size 0x10000000 inteldrm0 at vga1: apic 4 int 16 (irq 11) drm0 at inteldrm0 "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: apic 4 int 16 (irq 11) azalia0: codecs: Realtek ALC268 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 4 int 16 (irq 255) pci1 at ppb0 bus 1 ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 4 int 17 (irq 255) pci2 at ppb1 bus 2 re0 at pci2 dev 0 function 0 "Realtek 8101E" rev 0x02: RTL8102EL (0x2480), apic 4 int 17 (irq 11), address 00:1e:68:ab:b0:0b rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1 ppb2 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: apic 4 int 19 (irq 255) pci3 at ppb2 bus 3 "JMicron SD/MMC" rev 0x00 at pci3 dev 0 function 0 not configured sdhc0 at pci3 dev 0 function 2 "JMicron SD Host Controller" rev 0x00: apic 4 int 19 (irq 11) sdmmc0 at sdhc0 "JMicron Memory Stick" rev 0x00 at pci3 dev 0 function 3 not configured "JMicron xD" rev 0x00 at pci3 dev 0 function 4 not configured uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 4 int 16 (irq 11) uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 4 int 17 (irq 11) uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 4 int 18 (irq 11) uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 4 int 19 (irq 11) ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 4 int 16 (irq 11) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2 pci4 at ppb3 bus 4 ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02: PM disabled pciide0 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: <ST9120817AS> wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6 ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 4 int 17 (irq 11) iic0 at ichiic0 spdmem0 at iic0 addr 0x51: 512MB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM usb1 at uhci0: USB revision 1.0 uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb4 at uhci3: USB revision 1.0 uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support uvideo0 at uhub0 port 5 configuration 1 interface 0 "Sonix Technology Co., Ltd. USB 2.0 Camera" rev 2.00/1.00 addr 2 video0 at uvideo0 urtw0 at uhub0 port 7 "Realtek RTL8187B" rev 2.00/2.00 addr 3 urtw0: RTL8187B rev E, address 00:24:d2:2f:6d:1d vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root root on wd0a swap on wd0b dump on wd0b scsibus1 at softraid0: 1 targets sd0 at scsibus1 targ 0 lun 0: <OPENBSD, SR CRYPTO, 004> SCSI2 0/direct fixed sd0: 86811MB, 512 bytes/sec, 177790828 sec total umodem0 at uhub1 port 1 configuration 1 interface 0 "Texas Instruments Texas Instruments MSP-FET430UIF" rev 1.10/1.00 addr 2 umodem0: no pointer to data interface uhidev0 at uhub1 port 1 configuration 1 interface 1 "Texas Instruments Texas Instruments MSP-FET430UIF" rev 1.10/1.00 addr 2 uhidev0: iclass 3/0, 211 report ids uhid0 at uhidev0 reportid 1: input=1, output=1, feature=0 uhid1 at uhidev0 reportid 2: input=2, output=2, feature=0 uhid2 at uhidev0 reportid 3: input=3, output=3, feature=0 uhid3 at uhidev0 reportid 4: input=4, output=4, feature=0 uhid4 at uhidev0 reportid 5: input=5, output=5, feature=0 uhid5 at uhidev0 reportid 6: input=6, output=6, feature=0 uhid6 at uhidev0 reportid 7: input=7, output=7, feature=0 uhid7 at uhidev0 reportid 8: input=8, output=8, feature=0 uhid8 at uhidev0 reportid 9: input=9, output=9, feature=0 uhid9 at uhidev0 reportid 10: input=10, output=10, feature=0 uhid10 at uhidev0 reportid 11: input=11, output=11, feature=0 uhid11 at uhidev0 reportid 12: input=12, output=12, feature=0 uhid12 at uhidev0 reportid 13: input=13, output=13, feature=0 uhid13 at uhidev0 reportid 14: input=14, output=14, feature=0 uhid14 at uhidev0 reportid 15: input=15, output=15, feature=0 uhid15 at uhidev0 reportid 16: input=16, output=16, feature=0 uhid16 at uhidev0 reportid 17: input=17, output=17, feature=0 uhid17 at uhidev0 reportid 18: input=18, output=18, feature=0 uhid18 at uhidev0 reportid 32: input=32, output=32, feature=0 uhid19 at uhidev0 reportid 63: input=63, output=63, feature=0 uhid20 at uhidev0 reportid 200: input=0, output=0, feature=1 uhid21 at uhidev0 reportid 201: input=0, output=0, feature=2 uhid22 at uhidev0 reportid 202: input=0, output=0, feature=2 uhid23 at uhidev0 reportid 203: input=0, output=0, feature=1 uhid24 at uhidev0 reportid 204: input=0, output=0, feature=1 uhid25 at uhidev0 reportid 205: input=0, output=0, feature=1 uhid26 at uhidev0 reportid 210: input=0, output=0, feature=1 uhid27 at uhidev0 reportid 211: input=0, output=0, feature=1 $ pkg_info | grep msp msp430-binutils-2.20 GNU binutils for msp430 msp430-gcc-4.4.4 GNU Compiler Collection for msp430 msp430-gdb-7.1 GNU debugger for msp430 msp430-libc-20101113 GNU libc for msp430 mspdebug-0.13 debugger for use with MSP 430 MCUs

