Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » MSPGCC
  • » [Mspgcc-users] MSP430F2618 and msp430-jtag [RSS Feed]

#1 March 13, 2008 13:38:40

Robert D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] MSP430F2618 and msp430-jtag


Helo,

I'm using the patch for the new device F2618, thanks for the great work
to Gunther, Mat, Steve and everyone else...

BUT, I can't program the device with msp430-jtag... There are errors in
writing the funclets correct into the RAM, but the verify process is
in most cases not successfull:-(
If it is once successfull, then the correct flash-programming frequency of the
DCO can't
be found.

Had anybody similar problems or knows a solution?

Thanks in advance,
Robert

--
------------------------------------------------------------------------
Dipl.-Ing. Robert Diemerhttp://www.rcs.ei.tum.deInstitute for Real-Time Computer Systems (RCS) fon +49-89-289-23731
Technische Universitaet Muenchen, D-80290 Muenchen fax +49-89-289-23555

Offline

#2 March 13, 2008 14:06:48

Mathias K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] MSP430F2618 and msp430-jtag


Hello,works for me except i have to use the msp430x2418 switch with gcc. Elsei have no int table.I have the verify error also but the application is burned into theflash ad works.Regards,

Mathias


---

./msp430-jtag.py -D -e -p -v leds.elf
MSP430 JTAG programmer Version: 2.3
Debug is level set to 1
Python version: 2.4.4 (#1, Mar 12 2008, 19:26:19)

ELF section .text at 0x3100 210 bytes
ELF section .vectors at 0xffc0 64 bytes
TOINIT list:
actionMassErase
TODO list:
actionProgram
actionVerify
MSP430_Secure not found in library. Not supported.
JTAG backend: ctypes/mspgcc (/opt/mmmmmmm/msp430/python/libMSP430mspgcc.so)
MSP430mspgcc: Debug level set to 2
MSP430mspgcc: MSP430_Initialize...
backend library version: 6
MSP430mspgcc: MSP430_VCC...
MSP430mspgcc: MSP430_Open...
MSP430mspgcc: MSP430_Reset(0x6, 0, 0)...
JTAGfunc: JTAG fuse ok
JTAGfunc: Sync OK, device: 0xf26f
MSP430mspgcc: MSP430_Open: RAM size autodetected: 2048 Bytes
MSP430mspgcc: MSP430_Configure(0x0, 0x1)
Preparing device ...
Mass Erase...
MSP430mspgcc: MSP430_Erase(2, 0xfffe, 0x0002)...
setDCO: adjusting 1410000 < MCLK < 2140000
funclets: executeCode: verify error (word 1 0x0000 != 0x020a)MSP430mspgcc: failed to set DCO frequency. Flash programming may beunreliable!Program...
MSP430mspgcc: MSP430_MemoryWrite(0x3100, 210)...
setDCO: adjusting 1410000 < MCLK < 2140000
funclets: executeCode: verify error (word 3 0x06e0 != 0x06c0)MSP430mspgcc: failed to set DCO frequency. Flash programming may beunreliable!MSP430mspgcc: MSP430_MemoryWrite(0xffc0, 64)...
setDCO: adjusting 1410000 < MCLK < 2140000
funclets: executeCode: verify error (word 1 0x0000 != 0x020a)MSP430mspgcc: failed to set DCO frequency. Flash programming may beunreliable!274 bytes programmed.
Verify...
MSP430mspgcc: MSP430_MemoryRead(0x3100, 210)...
Cleaning up after error...
Reset and release device...
MSP430mspgcc: MSP430_Reset(0x7, 1, 1)...
MSP430mspgcc: MSP430_Close...
Traceback (most recent call last):
File "./msp430-jtag.py", line 608, in ?
main()
File "./msp430-jtag.py", line 545, in main
for f in todo: f() #work through todo list
File "/tmp/msp430/python/mspgcc/jtag.py", line 626, in actionVerify
mspgcc.jtag.JTAGException: Verify failed

---

Robert Diemer wrote:Helo,

I'm using the patch for the new device F2618, thanks for the great work
to Gunther, Mat, Steve and everyone else...

BUT, I can't program the device with msp430-jtag... There are errors in
writing the funclets correct into the RAM, but the verify process is
in most cases not successfull:-(
If it is once successfull, then the correct flash-programming frequency of the
DCO can't
be found.

Had anybody similar problems or knows a solution?

Thanks in advance,
Robert

Offline

#3 March 13, 2008 14:37:26

Gunther L.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] MSP430F2618 and msp430-jtag


Robert Diemer wrote:BUT, I can't program the device with msp430-jtag... There are errors in
writing the funclets correct into the RAM, but the verify process is
in most cases not successfull:-(
If it is once successfull, then the correct flash-programming frequency of the
DCO can't
be found.I don't think I've ever used msp430-jtag. As you're talking about DCOfrequencies, does msp430-jtag support 16MHz devices? They use 4 bits fortheir DCO settings (instead of 3 bits in the old 8MHz devices). Maybethat's one of the reasons for you programming problems.Gunther

Offline

#4 March 13, 2008 17:07:55

Grant E.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] MSP430F2618 and msp430-jtag


On 2008-03-13, Robert Diemer <robert.die***@*pr.e-technik.tu-muenchen.de> wrote:

> I'm using the patch for the new device F2618, thanks for the great work
> to Gunther, Mat, Steve and everyone else...
>
> BUT, I can't program the device with msp430-jtag... There are errors in
> writing the funclets correct into the RAM, but the verify process is
> in most cases not successfull:-(

It sounds very similar to the problems I had with the F23x0.
msp430-jtag reports no errors during the setup, erase or write
phases, but there are always a few bits that are wrong when the
flash is verified.

I was unable to find a solution and had to resort to using the
free programming software from elprotronic (windows-only,
unfortunately).

--
Grant

Offline

#5 March 14, 2008 11:34:08

Robert D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] MSP430F2618 and msp430-jtag


Hi,
thanks for your answers. In the meantime we tryed the programmer from
eprotronic and it works, so the (self-made) PCB is working.

We also had the same error messages like below, but the flash wasn't correct
written and
the application didn't work:-(

We also tryed to use an external resistor, because in the User Guide is
a hint, that if you use an external resistor for Rosc and set the DCOR-bit, the
behavour is like the older 1xx-devices... But that didn't work:-(

Gunther, what program do you use to flash the MSP430? msp430-gdbproxy?

Regards,
Robert

On Thu, Mar 13, 2008 at 02:06:25PM +0100, Mathias Kuester wrote:
> Hello,
>
> works for me except i have to use the msp430x2418 switch with gcc. Else
> i have no int table.
>
> I have the verify error also but the application is burned into the
> flash ad works.
>
>
> Regards,
>
> Mathias
>
>
> ---
>
> ./msp430-jtag.py -D -e -p -v leds.elf
> MSP430 JTAG programmer Version: 2.3
> Debug is level set to 1
> Python version: 2.4.4 (#1, Mar 12 2008, 19:26:19)
>
> ELF section .text at 0x3100 210 bytes
> ELF section .vectors at 0xffc0 64 bytes
> TOINIT list:
> actionMassErase
> TODO list:
> actionProgram
> actionVerify
> MSP430_Secure not found in library. Not supported.
> JTAG backend: ctypes/mspgcc (/opt/mmmmmmm/msp430/python/libMSP430mspgcc.so)
> MSP430mspgcc: Debug level set to 2
> MSP430mspgcc: MSP430_Initialize...
> backend library version: 6
> MSP430mspgcc: MSP430_VCC...
> MSP430mspgcc: MSP430_Open...
> MSP430mspgcc: MSP430_Reset(0x6, 0, 0)...
> JTAGfunc: JTAG fuse ok
> JTAGfunc: Sync OK, device: 0xf26f
> MSP430mspgcc: MSP430_Open: RAM size autodetected: 2048 Bytes
> MSP430mspgcc: MSP430_Configure(0x0, 0x1)
> Preparing device ...
> Mass Erase...
> MSP430mspgcc: MSP430_Erase(2, 0xfffe, 0x0002)...
> setDCO: adjusting 1410000 < MCLK < 2140000
> funclets: executeCode: verify error (word 1 0x0000 != 0x020a)
> MSP430mspgcc: failed to set DCO frequency. Flash programming may be
> unreliable!
> Program...
> MSP430mspgcc: MSP430_MemoryWrite(0x3100, 210)...
> setDCO: adjusting 1410000 < MCLK < 2140000
> funclets: executeCode: verify error (word 3 0x06e0 != 0x06c0)
> MSP430mspgcc: failed to set DCO frequency. Flash programming may be
> unreliable!
> MSP430mspgcc: MSP430_MemoryWrite(0xffc0, 64)...
> setDCO: adjusting 1410000 < MCLK < 2140000
> funclets: executeCode: verify error (word 1 0x0000 != 0x020a)
> MSP430mspgcc: failed to set DCO frequency. Flash programming may be
> unreliable!
> 274 bytes programmed.
> Verify...
> MSP430mspgcc: MSP430_MemoryRead(0x3100, 210)...
> Cleaning up after error...
> Reset and release device...
> MSP430mspgcc: MSP430_Reset(0x7, 1, 1)...
> MSP430mspgcc: MSP430_Close...
> Traceback (most recent call last):
> File "./msp430-jtag.py", line 608, in ?
> main()
> File "./msp430-jtag.py", line 545, in main
> for f in todo: f() #work through todo list
> File "/tmp/msp430/python/mspgcc/jtag.py", line 626, in actionVerify
> mspgcc.jtag.JTAGException: Verify failed
>
> ---
>
> Robert Diemer wrote:
> > Helo,
> >
> > I'm using the patch for the new device F2618, thanks for the great work
> > to Gunther, Mat, Steve and everyone else...
> >
> > BUT, I can't program the device with msp430-jtag... There are errors in
> > writing the funclets correct into the RAM, but the verify process is
> > in most cases not successfull:-(
> > If it is once successfull, then the correct flash-programming frequency of
> > the DCO can't
> > be found.
> >
> > Had anybody similar problems or knows a solution?
> >
> > Thanks in advance,
> > Robert
> >
>

Offline

#6 March 14, 2008 13:07:44

Robert D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] MSP430F2618 and msp430-jtag


Hello,

we tried to use an external resistor for Rosc and set the DCOR bit as it is
described in the
Users Guide to get the same behavour as the old 1xx-devices, but it
didn't work:-(
So, what program do you use for programming the flash? msp430-gdbproxy?

Regards,
Robert

Gunther Lemm wrote:
> Robert Diemer wrote:
> > BUT, I can't program the device with msp430-jtag... There are errors in
> > writing the funclets correct into the RAM, but the verify process is
> > in most cases not successfull:-(
> > If it is once successfull, then the correct flash-programming frequency of
> > the DCO can't
> > be found.
>
> I don't think I've ever used msp430-jtag. As you're talking about DCO
> frequencies, does msp430-jtag support 16MHz devices? They use 4 bits for
> their DCO settings (instead of 3 bits in the old 8MHz devices). Maybe
> that's one of the reasons for you programming problems.
>
> Gunther
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-us***@*ists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/mspgcc-users>

--
------------------------------------------------------------------------
Dipl.-Ing. Robert Diemerhttp://www.rcs.ei.tum.deInstitute for Real-Time Computer Systems (RCS) fon +49-89-289-23731
Technische Universitaet Muenchen, D-80290 Muenchen fax +49-89-289-23555

Offline

#7 March 14, 2008 13:11:09

Robert D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] MSP430F2618 and msp430-jtag


Thanks for the hint, we found the programming software from elprotronic
and it works, therefore we know, that our self-made pcb is correct. But
the software is windows-only and everything else we use is running under
linux:-(

Regards,
Robert

Grant Edwards wrote:
> On 2008-03-13, Robert Diemer <robert.die***@*pr.e-technik.tu-muenchen.de>
> wrote:
>
> > I'm using the patch for the new device F2618, thanks for the great work
> > to Gunther, Mat, Steve and everyone else...
> >
> > BUT, I can't program the device with msp430-jtag... There are errors in
> > writing the funclets correct into the RAM, but the verify process is
> > in most cases not successfull:-(
>
> It sounds very similar to the problems I had with the F23x0.
> msp430-jtag reports no errors during the setup, erase or write
> phases, but there are always a few bits that are wrong when the
> flash is verified.
>
> I was unable to find a solution and had to resort to using the
> free programming software from elprotronic (windows-only,
> unfortunately).
>
> --
> Grant

Offline

#8 March 14, 2008 16:55:53

Grant E.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] MSP430F2618 and msp430-jtag


On 2008-03-14, Robert Diemer <robert.die***@*pr.e-technik.tu-muenchen.de> wrote:

> Thanks for the hint, we found the programming software from elprotronic
> and it works, therefore we know, that our self-made pcb is correct. But
> the software is windows-only and everything else we use is running under
> linux:-(

Same here. It's sort of a pain that the Linux based tools
don't support some of the MSP430 families (msp430-gdbproxy
doesn't support the F23x0 parts either). I've offered to help
do whatever needs to be done to get them supported, but haven't
ever gotten any response from anybody.

--
Grant

Offline

#9 March 14, 2008 17:17:15

Gunther L.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] MSP430F2618 and msp430-jtag


Hi Robertwe tried to use an external resistor for Rosc and set the DCOR bit as it is
described in the
Users Guide to get the same behavour as the old 1xx-devices, but it
didn't work:-(
So, what program do you use for programming the flash? msp430-gdbproxy?I'm using msp430-gdbproxy and it works fine with an msp430f248.Unfortunately, only the windows version of msp430-gdbproxy knows aboutthe new MCU types. As I usually work with linux I need to run anadditional windoze machine for that msp430-gdbproxy.Maybe someone can bribe Steve Underwood to do some work on the linuxversion of the gdbproxy ...Gunther

Offline

  • Root
  • » MSPGCC
  • » [Mspgcc-users] MSP430F2618 and msp430-jtag [RSS Feed]

Board footer

Moderator control

Enjoy the 16th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support