- update mspdebug to 0.17

This commit is contained in:
jasper 2011-08-24 12:05:55 +00:00
parent 96287588a2
commit 25dbe1beee
8 changed files with 25 additions and 124 deletions

View File

@ -1,9 +1,8 @@
# $OpenBSD: Makefile,v 1.6 2011/07/08 14:52:38 jasper Exp $
# $OpenBSD: Makefile,v 1.7 2011/08/24 12:05:55 jasper Exp $
COMMENT= debugger for use with MSP 430 MCUs
DISTNAME= mspdebug-0.16
REVISION= 0
DISTNAME= mspdebug-0.17
CATEGORIES= devel
HOMEPAGE= http://mspdebug.sourceforge.net/
@ -18,10 +17,9 @@ PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mspdebug/}
WANTLIB += c readline termcap elf usb
WANTLIB += c readline termcap usb
LIB_DEPENDS= devel/libelf \
devel/libusb
LIB_DEPENDS= devel/libusb
USE_GMAKE= Yes

View File

@ -1,5 +1,5 @@
MD5 (mspdebug-0.16.tar.gz) = KJtiW7Y5ddk1qW3KvubYvA==
RMD160 (mspdebug-0.16.tar.gz) = WPM46ZBL+E2Wrg2PY4E7TcdzKzY=
SHA1 (mspdebug-0.16.tar.gz) = jhYnxzixoQAaAKVJ2QpmzkyFrAI=
SHA256 (mspdebug-0.16.tar.gz) = Ciwl6IzQN+MV6/wi1rsufsiTIRXx91edif3eSOUdtRA=
SIZE (mspdebug-0.16.tar.gz) = 111742
MD5 (mspdebug-0.17.tar.gz) = bBEpOdN7sRSfYcWMeohr1g==
RMD160 (mspdebug-0.17.tar.gz) = e3vaOd+ZTR86+MIiBmZRveL0i+o=
SHA1 (mspdebug-0.17.tar.gz) = hPGDOAAi/GqvcJ8MqA5xRqmtu90=
SHA256 (mspdebug-0.17.tar.gz) = +cH/s5lprXcWNHES5mxuZ7n1e8R+16Q3lpfRFE7juKQ=
SIZE (mspdebug-0.17.tar.gz) = 144012

View File

@ -1,18 +0,0 @@
$OpenBSD: patch-AUTHORS,v 1.1 2011/07/08 14:52:38 jasper Exp $
From 1e21d9da8f923aa75aea01110b8cab81f5395ec0 Mon Sep 17 00:00:00 2001
From: Daniel Beer <dlbeer@gmail.com>
Date: Wed, 6 Jul 2011 09:32:36 +1200
Subject: [PATCH] Added support for MSP430FR5739.
Use "load" instead of "prog" for programming.
--- AUTHORS.orig Tue Jun 14 03:27:10 2011
+++ AUTHORS Fri Jul 8 16:50:32 2011
@@ -55,3 +55,6 @@ Ionut Nicu <ionut.nicu@mindbit.ro>:
Paul Fleischer <paul@xpg.dk>:
* Support for MSP430G2553.
+
+Kurt Snieckus <ksnieck@gmail.com>:
+ * Testing and analysis for MSP430FR5739.

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile,v 1.6 2011/08/24 12:05:55 jasper Exp $
--- Makefile.orig Wed Aug 24 13:57:52 2011
+++ Makefile Wed Aug 24 13:57:57 2011
@@ -16,7 +16,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-CC = gcc
+CC ?= gcc
INSTALL = /usr/bin/install
PREFIX ?= /usr/local
LDFLAGS ?= -s

View File

@ -1,24 +0,0 @@
$OpenBSD: patch-fet_c,v 1.1 2011/07/08 14:52:38 jasper Exp $
From 1e21d9da8f923aa75aea01110b8cab81f5395ec0 Mon Sep 17 00:00:00 2001
From: Daniel Beer <dlbeer@gmail.com>
Date: Wed, 6 Jul 2011 09:32:36 +1200
Subject: [PATCH] Added support for MSP430FR5739.
Use "load" instead of "prog" for programming.
--- fet.c.orig Tue Jun 14 03:27:10 2011
+++ fet.c Fri Jul 8 16:50:32 2011
@@ -568,6 +568,12 @@ static int identify_new(struct fet_device *dev, const
return -1;
}
+ /* This packet seems to be necessary in order to program on the
+ * MSP430FR5739 development board.
+ */
+ if (xfer(dev, 0x30, NULL, 0, 0) < 0)
+ printc_dbg("fet: warning: message 0x30 failed\n");
+
return 0;
}

View File

@ -1,53 +0,0 @@
$OpenBSD: patch-fet_db_c,v 1.1 2011/07/08 14:52:38 jasper Exp $
From 1e21d9da8f923aa75aea01110b8cab81f5395ec0 Mon Sep 17 00:00:00 2001
From: Daniel Beer <dlbeer@gmail.com>
Date: Wed, 6 Jul 2011 09:32:36 +1200
Subject: [PATCH] Added support for MSP430FR5739.
Use "load" instead of "prog" for programming.
--- fet_db.c.orig Tue Jun 14 03:27:10 2011
+++ fet_db.c Fri Jul 8 16:50:32 2011
@@ -1493,6 +1493,41 @@ static const struct fet_db_record fet_db[] = {
0x00, 0x00
}
},
+ { /* From captured data */
+ .name = "MSP430FR5739",
+ .msg28_data = {
+ 0x03, 0x81, 0x20, 0x20, 0x08, 0x0a, 0xff, 0xff,
+ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+ 0xbf, 0x4c
+ /* extra: 91 06 11 00 1a 00 04 05 */
+ },
+ .msg29_params = {0x00, 0xab, 0xa3},
+ .msg29_data = {
+ 0x00, 0xc2, 0xff, 0xff, 0x00, 0x00, 0x00, 0x18,
+ 0xff, 0x18, 0x00, 0x00, 0x00, 0x1c, 0xff, 0x1f,
+ 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x05, 0x00,
+ 0x02, 0x00, 0x0f, 0x04, 0x00, 0x00, 0x00, 0x00,
+ 0x08, 0x07, 0x10, 0x0e, 0xc4, 0x09, 0x70, 0x17,
+ 0x58, 0x1b, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00,
+ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff,
+ 0xff, 0xff
+ },
+ .msg2b_len = 0x4a,
+ .msg2b_data = {
+ 0x00, 0x10, 0xff, 0x17, 0x00, 0x00, 0x01, 0x00,
+ 0x04, 0x00, 0x00, 0x00, 0x0a, 0x8f, 0x8e, 0x99,
+ 0x98, 0x97, 0x2d, 0x2c, 0x30, 0x00, 0x8a, 0xd6,
+ 0xa8, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x01,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
+ 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00,
+ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00
+ }
+ }
};
const struct fet_db_record *fet_db_find_by_msg28(uint8_t *data, int len)

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-gdb_proto_c,v 1.1 2011/06/16 08:51:07 jasper Exp $
Fix implicit declaration of memset().
--- gdb_proto.c.orig Thu Jun 16 10:48:43 2011
+++ gdb_proto.c Thu Jun 16 10:48:58 2011
@@ -23,6 +23,7 @@
#include <sys/socket.h>
#include <unistd.h>
#include <errno.h>
+#include <string.h>
#include "gdb_proto.h"
#include "output.h"

View File

@ -1,10 +1,10 @@
$OpenBSD: patch-rf2500_c,v 1.4 2011/04/02 08:22:28 jasper Exp $
$OpenBSD: patch-rf2500_c,v 1.5 2011/08/24 12:05:55 jasper Exp $
- usb_bulk_read() returns 0 on timeout, not -1
--- rf2500.c.orig Sun Feb 6 23:55:37 2011
+++ rf2500.c Sat Apr 2 10:03:14 2011
@@ -221,8 +221,12 @@ transport_t rf2500_open(const char *devpath)
--- rf2500.c.orig Wed Aug 24 06:24:16 2011
+++ rf2500.c Wed Aug 24 13:54:24 2011
@@ -231,8 +231,12 @@ transport_t rf2500_open(const char *devpath, const cha
#ifndef __APPLE__
while (usb_bulk_read(tr->handle, USB_FET_IN_EP,
buf, sizeof(buf),