thodmir 0 Posted July 25, 2014 Share Posted July 25, 2014 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. Quote Link to post Share on other sites
yosh 121 Posted July 25, 2014 Share Posted July 25, 2014 Hi ... Did you select the correct board in the boards menu in Energia? Did you get an error message? Quote Link to post Share on other sites
thodmir 0 Posted July 25, 2014 Author Share Posted July 25, 2014 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 Quote Link to post Share on other sites
yosh 121 Posted July 25, 2014 Share Posted July 25, 2014 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) Quote Link to post Share on other sites
thodmir 0 Posted July 25, 2014 Author Share Posted July 25, 2014 [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. Quote Link to post Share on other sites
thodmir 0 Posted July 25, 2014 Author Share Posted July 25, 2014 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 Quote Link to post Share on other sites
yosh 121 Posted July 25, 2014 Share Posted July 25, 2014 Do you have the launchpad bundle with the Sharp LCD booster pack? If so, is the sample application running? Quote Link to post Share on other sites
thodmir 0 Posted July 25, 2014 Author Share Posted July 25, 2014 Nope, I only have the msp430fr5969. nothing else Quote Link to post Share on other sites
yosh 121 Posted July 26, 2014 Share Posted July 26, 2014 So what is your jumper configuration right now? I didn't change any of the jumpers on my launchpad to program it in Energia... Quote Link to post Share on other sites
thodmir 0 Posted July 26, 2014 Author Share Posted July 26, 2014 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. Quote Link to post Share on other sites
yosh 121 Posted July 26, 2014 Share Posted July 26, 2014 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)? Quote Link to post Share on other sites
thodmir 0 Posted July 27, 2014 Author Share Posted July 27, 2014 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? Quote Link to post Share on other sites
dharik 1 Posted July 27, 2014 Share Posted July 27, 2014 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 1 Quote Link to post Share on other sites
thodmir 0 Posted July 27, 2014 Author Share Posted July 27, 2014 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! Quote Link to post Share on other sites
energia 485 Posted July 27, 2014 Share Posted July 27, 2014 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 7acdrivr 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.