Hi,

I got msp430f2234 working with mspdebug 0.1
It has less RAM and flash than f2234 so it has different start and stop 
adresses.
I made a new .name called MSP430F2234 to fet_db.c, so i can use --fet-force-id 
MSP430F2234:

{
                .name = "MSP430F2234",
                .msg28_data = {
                        0xf2, 0x27, 0x40, 0x40, 0x00, 0x00, 0x00, 0x00,
                        0x00, 0x00, 0x02, 0x01, 0x01, 0x04, 0xb1, 0x62,
                        0x80, 0x00
                },
                .msg29_params = {0x00, 0x39, 0x31},
                .msg29_data = {
                        0x00, 0xe0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x10,
//                      0x00, 0x80, 0xff, 0xff, 0x00, 0x00, 0x00, 0x10, // 2274
                        0xff, 0x10, 0x40, 0x00, 0x00, 0x02, 0xff, 0x03,
//                      0xff, 0x10, 0x40, 0x00, 0x00, 0x02, 0xff, 0x05, // 2274
                        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
                }
        },

On 26.07.2010, at 14:41, dan...@tortek.co.nz wrote:

> Andres Vahter writes:
>> Is it possible to program msp430f2234 MCU with EZ430-RF2500 board
>> and mspdebug.  EZ430-RF2500 board comes with msp430f2274 MCU and it
>> differs from f2234 only from RAM size as far as I know.
>> 
>> I made a led togglerer for f2234, i can upload it, but it doesn't
>> toggle pin.
>> 
>> #include    "msp430x22x4.h"
>> volatile unsigned int i;
>> 
>> int main(void) {
>>    WDTCTL = WDTPW + WDTHOLD;
>> 
>>    P2DIR |= 0x01;
>> 
>>    for(;;)
>>    {
>>        P2OUT ^= 0x01;
>>        i = 50000;
>>        while (i != 0) { i--; }
>>    }  
>> }
>> for( ; ; )
>> 
>> 
>> Daniel, could you confirm that msp430f2234 is supported by mspdebug.
> 
> I sent a reply to Andres earlier, but only just realised that I didn't
> copy the list.
> 
> The gist of it was that the 2234 isn't explicitly supported, but you
> might be able to make it work by applying the following patch and then
> using:
> 
>    mspdebug --fet-force-id msp430f2274 ...
> 
> This patch just alters the RAM size for the MSP430F2274, nothing else.
> 
> diff --git a/fet_db.c b/fet_db.c
> index 1b412fd..5f9e3b5 100644
> --- a/fet_db.c
> +++ b/fet_db.c
> @@ -370,7 +370,7 @@ static const struct fet_db_record fet_db[] = {
>                .msg29_params = {0x00, 0x39, 0x31},
>                .msg29_data = {
>                        0x00, 0x80, 0xff, 0xff, 0x00, 0x00, 0x00, 0x10,
> -                       0xff, 0x10, 0x40, 0x00, 0x00, 0x02, 0xff, 0x05,
> +                       0xff, 0x10, 0x40, 0x00, 0x00, 0x02, 0xff, 0x03,
>                        0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00,
>                        0x01, 0x00, 0xd7, 0x60, 0x00, 0x00, 0x00, 0x00,
>                        0x08, 0x07, 0x10, 0x0e, 0xc4, 0x09, 0x70, 0x17,
> 
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to