Jump to content
43oh

energia-0101E0012 and msp430fr5969


Recommended Posts

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. 

Link to post
Share on other sites
[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. 

Link to post
Share on other sites

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
Link to post
Share on other sites

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.dropboxusercontent.com/u/109738768/20140726_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.
Link to post
Share on other sites

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...

Link to post
Share on other sites

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!

Link to post
Share on other sites

 

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.dropboxusercontent.com/u/109738768/20140726_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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...