Jump to content


Photo

energia-0101E0012 and msp430fr5969


  • Please log in to reply
26 replies to this topic

#1 thodmir

thodmir

    Member

  • Members
  • PipPip
  • 10 posts
  • LocationSwitzerland

Posted 25 July 2014 - 07:01 PM

Hello,

I am a complete beginner in controllers. I just got my first one (MSP430FR5969).

After I watched some tutorials I tried to start playing with it.

I downloaded and installed everything it was saying in TI site and three days later i have not been able to do absolutely nothing. When I am trying to upload an example sketch or update programmer i get the error:

 

tilib: MSP430_OpenDevice: Unknown device (error = 5).

tilib: device initialization failed
 

I was initially trying in Ubuntu 14.04 64 (2 days) and today I have been trying in win 7 64. In both operating systems i get stuck at this point.

I managed to make the device manager recognize it in win.

I have it connected to my laptop through a usb.

I do not know what to do and i would really appreciate some advice.

 

A probably stupid question: When I want to program it through energia, do i have to have a specific configuration for the jumpers?

I tried the first one shown on Figure 12 ( USB ez-FET Power configuration) among how it was when I got it and a couple of other configurations.

 

I hope I am giving enough information for my problem.

Thank you very much in advance and congratulations for the forum. 



#2 yosh

yosh

    Level 2

  • Members
  • 207 posts
  • LocationGermany

Posted 25 July 2014 - 07:21 PM

Hi ... Did you select the correct board in the boards menu in Energia? Did you get an error message?

#3 thodmir

thodmir

    Member

  • Members
  • PipPip
  • 10 posts
  • LocationSwitzerland

Posted 25 July 2014 - 07:28 PM

yes I did choose the correct device both in windows and in linux.

Errors, I came across several, but after searching I corrected them.

In both OS i got stuck in this error.

 

Thanks for the reply :)



#4 yosh

yosh

    Level 2

  • Members
  • 207 posts
  • LocationGermany

Posted 25 July 2014 - 07:47 PM

Could you post the output/error message you get in Energia when you try to upload a simple sketch (like 'bare minimum' or the blink sketch)

#5 thodmir

thodmir

    Member

  • Members
  • PipPip
  • 10 posts
  • LocationSwitzerland

Posted 25 July 2014 - 08:23 PM

[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-g++, -c, -g, -Os, -w, -ffunction-sections, -fdata-sections, -mmcu=msp430fr5969, -DF_CPU=8000000L, -MMD, -DARDUINO=101, -DENERGIA=12, -IC:\energia-0101E0012\hardware\msp430\cores\msp430, -IC:\energia-0101E0012\hardware\msp430\variants\launchpad_fr5969, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\Blink.cpp, -o, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\Blink.cpp.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\random.c.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\twi.c.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\usci_isr_handler.c.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\WInterrupts.c.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\wiring.c.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\wiring_analog.c.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\wiring_digital.c.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\wiring_pulse.c.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\wiring_shift.c.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\HardwareSerial.cpp.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\IPAddress.cpp.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\main.cpp.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\new.cpp.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\Print.cpp.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\Stream.cpp.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\TimerSerial.cpp.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\Tone.cpp.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\Wire.cpp.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\WMath.cpp.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\WString.cpp.o]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-gcc, -Os, -Wl,-gc-sections,-u,main, -mmcu=msp430fr5969, -o, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\Blink.cpp.elf, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\Blink.cpp.o, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\core.a, -LC:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp, -lm]
[C:\energia-0101E0012\hardware\tools\msp430\bin\msp430-objcopy, -O, ihex, -R, .eeprom, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\Blink.cpp.elf, C:\Users\ToDo\AppData\Local\Temp\build7409906515764344481.tmp\Blink.cpp.hex]
Binary sketch size: 809 bytes (of a 65.536 byte maximum)
 
tilib: MSP430_OpenDevice: Unknown device (error = 5)
tilib: device initialization failed
 
 
I think the error are in the last two lines which I posted in my first post. 


#6 thodmir

thodmir

    Member

  • Members
  • PipPip
  • 10 posts
  • LocationSwitzerland

Posted 25 July 2014 - 08:25 PM

and this is the message when trying to update programmer:

 

MSP430_GetNumberOfUsbIfs
MSP430_GetNameOfUsbIf
Found FET: COM3
MSP430_Initialize: COM3
Firmware version is 30301004
MSP430_VCC: 3000 mV
MSP430_OpenDevice
tilib: MSP430_OpenDevice: Unknown device (error = 5)
tilib: device initialization failed


#7 yosh

yosh

    Level 2

  • Members
  • 207 posts
  • LocationGermany

Posted 25 July 2014 - 08:46 PM

Do you have the launchpad bundle with the Sharp LCD booster pack? If so, is the sample application running?

#8 thodmir

thodmir

    Member

  • Members
  • PipPip
  • 10 posts
  • LocationSwitzerland

Posted 25 July 2014 - 09:21 PM

Nope, I only have the msp430fr5969. nothing else



#9 yosh

yosh

    Level 2

  • Members
  • 207 posts
  • LocationGermany

Posted 26 July 2014 - 06:12 AM

So what is your jumper configuration right now? I didn't change any of the jumpers on my launchpad to program it in Energia...

#10 thodmir

thodmir

    Member

  • Members
  • PipPip
  • 10 posts
  • LocationSwitzerland

Posted 26 July 2014 - 07:28 PM

The jumpers are shown in the photo in the link below. I think it is how it was when I got it (I hope i did not mess)

 

https://dl.dropboxus...0726_144401.jpg

 

Today while trying again to update the programmer something changed. I am posting the output below:

 

first time:

MSP430_GetNumberOfUsbIfs
MSP430_GetNameOfUsbIf
Found FET: HID_FET
MSP430_Initialize: HID_FET
FET firmware update is required.
Starting firmware update (this may take some time)...
Initializing bootloader...
Programming new firmware...
     0 percent done
    34 percent done
    67 percent done
   100 percent done
Update complete
Done, finishing...
tilib: MSP430_VCC: Internal error (error = 68)
MSP430_VCC: 3000 mV
tilib: device initialization failed
 
 
second time:
MSP430_GetNumberOfUsbIfs
MSP430_GetNameOfUsbIf
Found FET: COM3
MSP430_Initialize: COM3
FET firmware update is required.
Starting firmware update (this may take some time)...
Initializing bootloader...
Programming new firmware...
    20 percent done
    40 percent done
    60 percent done
    80 percent done
   100 percent done
   100 percent done
Update complete
Done, finishing...
MSP430_VCC: 3000 mV
MSP430_OpenDevice
tilib: MSP430_OpenDevice: Unknown device (error = 5)
tilib: device initialization failed.
 
It looks like it went a little further those times. The previous ones no percent was shown.
After that again the same error that I have posted in a previous post.


#11 yosh

yosh

    Level 2

  • Members
  • 207 posts
  • LocationGermany

Posted 26 July 2014 - 07:48 PM

I think jumpers look ok. Does the so called out-of-the-box-experience program run? Means that green and red LEDs toggle...
Did you check the voltage on the Vcc pin (header on bottom right)?

#12 thodmir

thodmir

    Member

  • Members
  • PipPip
  • 10 posts
  • LocationSwitzerland

Posted 27 July 2014 - 10:58 AM

Yes, the green and red leds do toggle for a while when I plug it in.

About checking the voltage on the VCC pin, no I have not done that and i don`t know how. I will search on that now  but can you also please inform me?



#13 dharik

dharik

    Noob Class

  • Members
  • 1 posts

Posted 27 July 2014 - 02:42 PM

I had the same problem with my 5969. For me, I was able use CCS v6 to update programmer and it worked fine. But I think Energia had a different programmer firmware. So I had to copy some MSP430.dll from the CCS install to some energia subfolder and it ended up working. 

 

Edit: 

ccs6/ccs_base/DebugServer/drivers/MSP430.dll -> energia/hardware/tools/msp430/mspdebug/MSP430.dll

 

 

I really hope there's a different fix to this though...


  • edwardfcy likes this

#14 thodmir

thodmir

    Member

  • Members
  • PipPip
  • 10 posts
  • LocationSwitzerland

Posted 27 July 2014 - 05:10 PM

Thanks a lot. I will try this.

For me it also updated in ccs.

Since I am a newbie what do you guys suggest, try to use energia or ccs?

I think energia is easy to use, especially for beginners and you can have some results fast and effortlessly, but ccs is actually offering a lot more deep understanding of how things work. Maybe very hard at first (I uloaded blink and I did not understand the code completely) but after you learn you have better knowledge which can be used for other devices as well.

 

Any tutorials for beginners for me to start working in ccs? I am refering to the programming part, not the use of ccs (I have not searched yet. I will, but any link will be appreciated).

 

cheers!



#15 energia

energia

    Level 4

  • Members
  • 931 posts


Posted 27 July 2014 - 08:57 PM

 

The jumpers are shown in the photo in the link below. I think it is how it was when I got it (I hope i did not mess)

 

https://dl.dropboxus...0726_144401.jpg

 

Today while trying again to update the programmer something changed. I am posting the output below:

 

first time:

MSP430_GetNumberOfUsbIfs
MSP430_GetNameOfUsbIf
Found FET: HID_FET
MSP430_Initialize: HID_FET
FET firmware update is required.
Starting firmware update (this may take some time)...
Initializing bootloader...
Programming new firmware...
     0 percent done
    34 percent done
    67 percent done
   100 percent done
Update complete
Done, finishing...
tilib: MSP430_VCC: Internal error (error = 68)
MSP430_VCC: 3000 mV
tilib: device initialization failed
 
 
second time:
MSP430_GetNumberOfUsbIfs
MSP430_GetNameOfUsbIf
Found FET: COM3
MSP430_Initialize: COM3
FET firmware update is required.
Starting firmware update (this may take some time)...
Initializing bootloader...
Programming new firmware...
    20 percent done
    40 percent done
    60 percent done
    80 percent done
   100 percent done
   100 percent done
Update complete
Done, finishing...
MSP430_VCC: 3000 mV
MSP430_OpenDevice
tilib: MSP430_OpenDevice: Unknown device (error = 5)
tilib: device initialization failed.
 
It looks like it went a little further those times. The previous ones no percent was shown.
After that again the same error that I have posted in a previous post.

 

 

I will spare you the technical details but the first time you update a fresh out of the box LaunchPad it will go update 3 different parts of the programmer. Unfortunately the the DLL (or .so under linux) that takes care of the programmer times out to quickly and results in an error. The way to work around it is to, as you did, do multiple upgrades. In each upgrade one part of the programmer will be updated. Hence if you do this 3 times it should give you a success with the last attempt. Since you already did 2 attempts, one more should do it.

 

Robert


  • 7acdrivr likes this

#16 energia

energia

    Level 4

  • Members
  • 931 posts


Posted 27 July 2014 - 09:01 PM

@thodmir I only noticed now that you mentioned that you have a MSP430FR5969 board. When did you get this board and what is the revision of this board?

The newer boards a Energy Trace and unfortunately the DLL/.so file that takes care of the programmer does not support this newer revision of the board. There will be a release at the end of this month which will add support for this newer revision of the board.

If the board has "Energy Trace" on it then it is for sure not yet supported by Energia :-(



#17 thodmir

thodmir

    Member

  • Members
  • PipPip
  • 10 posts
  • LocationSwitzerland

Posted 28 July 2014 - 08:11 PM

@energia. Thank you very much. It does indeed say energy trace, so I yes I will wait for a little longer. (I tried sooo many times to get the third update of the programmer :P).

 

Thank you all for your replies. I will start with energia to get some general idea and then when I will have more time I think I will try to manage through ccs.

 

Cheers!!



#18 edwardfcy

edwardfcy

    Noob Class

  • Members
  • 1 posts
  • LocationHONGKONG

Posted 02 August 2014 - 10:52 AM

I had the same problem with my 5969. For me, I was able use CCS v6 to update programmer and it worked fine. But I think Energia had a different programmer firmware. So I had to copy some MSP430.dll from the CCS install to some energia subfolder and it ended up working. 

 

Edit: 

ccs6/ccs_base/DebugServer/drivers/MSP430.dll -> energia/hardware/tools/msp430/mspdebug/MSP430.dll

 

 

I really hope there's a different fix to this though...

 

Thank you! It can work for me also!


  • 7acdrivr likes this

#19 zborgerd

zborgerd

    Level 2

  • Members
  • 336 posts

Posted 08 August 2014 - 02:41 AM

You can also find the DLL included in the Flasher utility ( http://processors.wi...Line_Programmer ), or build it from the source code, which is what I did on Linux.  http://processors.wiki.ti.com/index.php/MSPDS_Open_Source_Package



#20 bobnova

bobnova

    Level 1

  • Members
  • 149 posts

Posted 08 August 2014 - 03:53 AM

I have one of the Energy Trace FR5969 boards coming, has the updater been updated, or do I need to get the flasher utility linked in the post above this?

The board isn't here yet, I just want to be prepared.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users