On Tue, Nov 09, 2010 at 09:57:20AM +0100, Michiel Konstapel wrote:
> It works if I use --fet-force-id MSP430F2274 (which has the same memory
> layout), but I figured you might be able to correct the identification.
> Here's the msg28 bytes:
> 
> $ ./mspdebug uif -j -d /dev/ttyUSB0 --fet-force-id foo 'prog blink.hex'
> 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.
> 
> Trying to open UIF on /dev/ttyUSB0...
> Initializing FET...
> FET protocol version is 20401004
> Configured for JTAG (2)
> Set Vcc: 3000 mV
> Device ID: 0xf227
> fet: unknown device
> msg28_data: [0x1a bytes]
>     f2 27 50 40 00 00 00 00 00 00 02 02 01 04 a1 61 
>     84 00 89 00 00 00 00 00 00 00 

Hi Michiel,

Does this patch get it working properly?

Cheers,
Daniel

diff --git a/fet_db.c b/fet_db.c
index 490d82f..7dc2546 100644
--- a/fet_db.c
+++ b/fet_db.c
@@ -640,6 +640,41 @@ static const struct fet_db_record fet_db[] = {
                        0x00, 0x00
                }
        },
+       { /* Copied from MSP430F2274, with changes to ID info */
+               .name = "MSP430F2272",
+               .msg28_data = {
+                       0xf2, 0x27, 0x50, 0x40, 0x00, 0x00, 0x00, 0x00,
+                       0x00, 0x00, 0x02, 0x02, 0x01, 0x04, 0xa1, 0x61,
+                       0x84, 0x00
+                       /* extra: 89 00 00 00 00 00 00 00 */
+               },
+               .msg29_params = {0x00, 0x39, 0x31},
+               .msg29_data = {
+                       0x00, 0x80, 0xff, 0xff, 0x00, 0x00, 0x00, 0x10,
+                       0xff, 0x10, 0x40, 0x00, 0x00, 0x02, 0xff, 0x05,
+                       0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00,
+                       0x01, 0x00, 0xd7, 0x60, 0x00, 0x00, 0x00, 0x00,
+                       0x08, 0x07, 0x10, 0x0e, 0xc4, 0x09, 0x70, 0x17,
+                       0x58, 0x1b, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00,
+                       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
+                       0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+                       0x00, 0x00, 0x00, 0x00, 0x33, 0x0f, 0x1f, 0x0f,
+                       0xff, 0xff
+               },
+               .msg2b_len = 0x4a,
+               .msg2b_data = { /* Copied from MSP430F2616 */
+                       0x00, 0x0c, 0xff, 0x0f, 0x00, 0x02, 0x02, 0x00,
+                       0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+                       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+                       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+                       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+                       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+                       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+                       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+                       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+                       0x00, 0x00
+               }
+       },
        { /* Copied from MSP430F2274, with changes */
                .name = "MSP430F2370",
                .msg28_data = {

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to