On Sun, Feb 12, 2012 at 04:10:12PM +0200, Andres Vahter wrote: > I am having some trouble with the latest tilib. > I got lib from: http://www-s.ti.com/sc/techzip/slac460.zip. Actually the file > is now called slac460a.zip. > > It seems like patches mentioned here are not required anymore > http://mspdebug.sourceforge.net/tilib.html. > However there seems to be still one patch needed: > http://sourceforge.net/projects/msp4linux/files/
That's correct, although the patch you've linked to may not work correctly for 64-bit systems. A better fix would be to change the argument type of getTiFileBytes from size_t * to uint32_t *. > There is something about it: > http://sourceforge.net/mailarchive/forum.php?thread_name=20120110173558.232840%40gmx.net&forum_name=mspgcc-users > > So I just added the patch: patch -p1 < slac460a.patch > And build the driver (Ubuntu 11.04 32 bit) > > Then I upgraded FET debbuger firmware with CCS (windows). > > After that I returned to Ubuntu and tried mspdebug: > >mspdebug tilib -d /dev/ttyACM0 > It also asked for software upgrade, which was successful. > Anyway it worked after that. > > Then I did some work in CCS and it also wanted again do to firmware upgrade. > > After that git version mspdebug upgrade did not work anymore. Actually it > worked one time. But now I get error: > > mspdebug tilib -d /dev/ttyACM0 --allow-fw-update > MSPDebug version 0.18 - debugging tool for MSP430 MCUs > Copyright (C) 2009-2011 Daniel Beer <dlb...@gmail.com> > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > MSP430_Initialize: /dev/ttyACM0 > FET firmware update is required. > Starting firmware update (this may take some time)... > Initializing bootloader... > Erasing firmware... > tilib: MSP430_FET_FwUpdate: MSP-FET430UIF Firmware erased - Bootloader active > (error = 56) > tilib: device initialization failed > > > It still works perfectly under CCS, after CCS upgrades its firmware. That's the one issue with the library -- the library only works with a matched version of firmware. I'm not sure what the problem is in this case, but it looks like a library issue. One thing you could try is running through the downgrade/upgrade cycle just using mspdebug (don't do anything in Windows): http://mspdebug.sourceforge.net/tilib.html#fet_firmware Note that in the document above, the upgrade procedure is given first. I've run through this procedure a few times with the FET I have here, and it seems to be fairly reliable. Let me know if it doesn't work for you. Cheers, Daniel -- D.L. Beer Engineering www.dlbeer.co.nz ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users