about mspdebug failing to recognize the Launchpad the first time around 
but then succeeding, that is the way I have operated in the XO OLPC for 
a while now, I count that as "a bug I can live with". Sometimes it does 
recognize it right away, but seldom.
The rest of the issue you have, I don't know. I mention the above just 
as "as seen here also",



On 10/31/2012 02:19 PM, Daniel Beer wrote:
> On Tue, Oct 30, 2012 at 11:04:02PM -0400, Alex Burka wrote:
>> I apologize if this is a common issue, but I can't seem to find anything. 
>> I'm using mspgcc (LTS) and mspdebug 0.20 on Mountain Lion with the Launchpad 
>> (MSP-EXP430G2). The board is fresh out of the box, and it did start to blink 
>> the LEDs when I plugged it in. I wrote my own little blinking program and … 
>> it doesn't work. It appears to program to the device, but then it won't run. 
>> mspdebug says "FET returned error code 17 (Could not run device (to 
>> breakpoint))".
>>
>> Output and code are here (https://gist.github.com/3984520). As you can see, 
>> at first mspdebug fails to find the device, which is sort of worrying (this 
>> does not happen every time), but then it succeeds and claims to write the 
>> program. However, "run" fails, and nothing happens when I quit mspdebug 
>> either, or hit the reset button on the Launchpad.
>>
>> The only thing I've found is that perhaps I need to update my firmware 
>> (http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_Firmware_Update)? 
>> But some comments on that page say that it bricks the Launchpad.
> It's possible that there's a problem with mspdebug's chip database. If
> you fetch the latest git version of mspdebug and apply the patch below,
> does it work? Note that you might have to replug the Launchpad before
> trying the patched version:
>
>
>
> diff --git a/drivers/fet_db.c b/drivers/fet_db.c
> index 3bcd2fe..c88cb6c 100644
> --- a/drivers/fet_db.c
> +++ b/drivers/fet_db.c
> @@ -1467,7 +1467,7 @@ static const struct fet_db_record fet_db[] = {
>                       /* extra: 89 00 00 00 00 00 00 00 */
>               },
>               .msg29_params = {0x00, 0x39, 0x31},
> -             .msg29_data = { /* Copied from MSP430G2452, with changes */
> +             .msg29_data = {
>                       0x00, 0xc0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x10,
>                       0xff, 0x10, 0x40, 0x00, 0x00, 0x02, 0xff, 0x03,
>                       0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00,
> @@ -1475,14 +1475,14 @@ static const struct fet_db_record fet_db[] = {
>                       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,
> +                     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> +                     0x00, 0x00, 0x00, 0x00, 0x33, 0xff, 0x1f, 0xff,
>                       0xff, 0xff
>               },
>               .msg2b_len = 0x4a,
>               .msg2b_data = { /* Copied from MSP430G2452 */
> -                     0x00, 0x0c, 0xff, 0x0f, 0x00, 0x02, 0x02, 0x00,
> -                     0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> +                     0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00,
> +                     0x02, 0x00, 0x40, 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,
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to