Jump to content

Bubele

Members
  • Content Count

    6
  • Joined

  • Last visited

About Bubele

  • Rank
    Noob Class

Contact Methods

  • Website URL
    none

Profile Information

  • Location
    Germany
  • Interests
    electronic
  • Sparkfun
    none
  • Github
    none
  1. Bubele

    MSP430G2553 SERIAL PORT NOT WORKING

    Hello Medsimo, i would reduce it even more, remove all except Serial.begin() and Serial.println() in loop(), do some sort of int i; delay(500); Serial.println(i++); then figure out that is going wrong with your com ports. double-check the EXP-430G2 user manual, i mean the jumper settings for TX/RX! i am not a windows user (a hater), so may not able to help much on windows. however, i saw com port numbers changing similar to linux after flashing the EXP-MSP430G2. so flash a reduced sketch, close energia, open energia, select com port and try again with serial monitor or a terminal program. best regards Peter ;-)
  2. Bubele

    MSP430G2553 SERIAL PORT NOT WORKING

    Hello Medsimo, quick viewed into the attached Energia sketch, so far you forgot that Arduino/Energia do not want "int main()", they expect "void loop()" instead. a few more items which are suspect: > /*** Watchdog timer and clock Set-Up ***/ > WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer > BCSCTL1 = CALBC1_8MHZ; // Set range > DCOCTL = CALDCO_8MHZ; // Set DCO step + modulation the MSP-EXP430G2 board is defined and setup running at 16MHz, so if you go and change anything related to that 16Mhz down to 8Mhz, you may get garbage even if you changed main()->loop(). it may send with 4800 baud. your way to disable the WD may also cause problems. below my guesswork #### void setup() { Serial.begin (9600); delay(500); <==== some delay Serial.println("Setup done"); <==== quick check if setup() did finished. } void loop() { <=== you need "void loop()" instead of "int main()" /*** Watchdog timer and clock Set-Up ***/ //WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer <=== SUSPECT! So commented out. BCSCTL1 = CALBC1_8MHZ; // Set range <==== this and the one below, may cause 4800 baud!!! DCOCTL = CALDCO_8MHZ; // Set DCO step + modulation ### this should at least show you something on your terminal ~ 4800. best regards Peter ;-)
  3. Bubele

    MSP-FET Backchannel UART.

    Hello zborgerd, even this thread was never answered and is a bit old. I was close to give up on a MSP2553 on a bredboard and using the MSP-FET with uart backchannel @ 9600. It never worked for no reason, even connecting ping 14 and 12 directly. found your topic and indeed, switching to 115200, it magically works. not to bad switching the MCU to 115200, however, one may get some grey hairs not knowing about this "bug?". ps: i used ccs 7.0.0 on linux. best regards Peter ;-)
  4. Bubele

    Energia installation in ubuntu 16.04

    Hello Abhaya, i got your private mail about this topic. I have 4 different Ubuntu 16.04.x machines more or less up to date running with Energia 17 and 18, also with CCS 6.1x. that problem never showed up. however, i see it seems a java jar signing problem on your installation. i suggest to start a closer look the following steps: 1 - md5sums. never know if these jar files are really grounded healthy. $ for i in `find /opt/energia-1.6.10E18/ -name "*.jar" -print| grep bc`; do md5sum $i; done 873ac611cb0d7160c0a3d30eee964454 /opt/energia-1.6.10E18/lib/bcprov-jdk15on-152.jar f4e4aa7b3828d3f4ff448f2335a38ecc /opt/energia-1.6.10E18/lib/bcpg-jdk15on-152.jar 2 -record debug execution of the energia startup script - script energia-debug.script - sh -x /opt/energia-1.6.10E18/energia - if you see your problem, exit energia if it has not exited already - exit , to stop the typescript recording - now look to the energia-debug.script - watchout for CLASSPATH and JAVA things which are NOT located in the path of your energia install. ie: your CLASSPATH variable has already something in it. in my local attempt is see NO other JAVA or CLASSPATH items show up over than the ones from my energia installation PATH. 3 - if still no clue, remove the jar signing from the 2 jar files, even i do not recommend such or tested myself - find the two jar files for i in `find /opt/energia-1.6.10E18/ -name "*.jar" -print| grep bc and copy each into a own seperate temp directory. unpack each with ie - unzip bcpg-jdk15on-152.jar - ls META-INF/ # this should show the two key files BCKEY.SF and BCKEY.DSA - rm META-INF/BCKEY.* # remove them - mv bcpg-jdk15on-152.jar bcpg-jdk15on-152.jar.ORIG # keep the orig jar file - zip -r bcpg-jdk15on-152.jar META-INF/ org/ # create jar from it - put your changed ones into energia install path ie: cp bcpg-jdk15on-152.jar /opt/energia-1.6.10E18/lib/ - repeat with bcprov-jdk15on-152.jar - try it as said, i think your environment has some CLASSPATH|JAVA items popolated which may cause that a other java outside of energia is being involved. btw: i checked the two jar with jarsigner, indeed, they have some sort of violation (ie no date stamp), seems the energia java pieces do not complain on my installation about that. anyway, i am not a expert in that java signing area, so i may wrong here. maybe it helps. best regards Peter ;-)
  5. Hello Rick, pah, that was to easy ;-) I missed the little difference, i mean the missing "LP". Perfect, that worked. for others, i had to link it on both pathes, it first is jelling about the 1st path, on second try, it seems using the other path. c-20po:/opt/energia-1.6.10E18/hardware/tools/DSLite$ ln -s MSP-EXP430FR6989.ccxml MSP-EXP430FR6989LP.ccxml c-20po:~/.energia15/packages/energia/tools/dslite/6.2.1.1624$ ln -s MSP-EXP430FR6989.ccxml MSP-EXP430FR6989LP.ccxml thanks best regards Peter ;-)
  6. Hello, i installed Energia 16.10E18 on two different Ubuntu 16.04 machines, on both i get the same error message then trying to "flash" the EXP430FR6989LP Board. Sketch uses 3,148 bytes (2%) of program storage space. Maximum is 130,048 bytes. Global variables use 28 bytes (1%) of dynamic memory, leaving 2,020 bytes for local variables. Maximum is 2,048 bytes. DSLite version 6.2.1.1624 Failed: Cannot read System Setup data from XML file /home/MYUSERID/.energia15/packages/energia/tools/dslite/6.2.1.1624/MSP-EXP430FR6989LP.ccxml Configuring Debugger (may take a few minutes on first launch)... Error parsing file: Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=/home/MYUSERID/.energia15/packages/energia/tools/dslite/6.2.1.1624/MSP-EXP430FR6989LP.ccxml Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=/MYUSERID/.energia15/packages/energia/tools/dslite/6.2.1.1624/MSP-EXP430FR6989LP.ccxml pwd /home/MYUSERID/.energia15/packages/energia/tools/dslite/6.2.1.1624 MYUSERID@c-20po:~/.energia15/packages/energia/tools/dslite/6.2.1.1624$ ll total 84 drwxrwxr-x 7 MYUSERID MYUSERID 4096 Sep 5 14:45 ./ drwxrwxr-x 3 MYUSERID MYUSERID 4096 Aug 20 17:08 ../ drwxrwxr-x 4 MYUSERID MYUSERID 4096 Jun 2 21:20 c2000/ -rw-r--r-- 1 MYUSERID MYUSERID 1939 Jun 2 21:28 CC2650F128_TIXDS100v3_Dot7_Connection.ccxml -rw-r--r-- 1 MYUSERID MYUSERID 1231 Jun 2 21:28 CC2650F128_TIXDS110_Connection.ccxml -rw-r--r-- 1 MYUSERID MYUSERID 1215 Jun 2 21:28 cc3200.ccxml drwxrwxr-x 5 MYUSERID MYUSERID 4096 Jun 2 21:17 common/ drwxrwxr-x 8 MYUSERID MYUSERID 4096 Jun 2 21:18 DebugServer/ -rw-r--r-- 1 MYUSERID MYUSERID 1112 Jun 2 21:28 EK-TM4C123GXL.ccxml -rw-r--r-- 1 MYUSERID MYUSERID 1116 Jun 2 21:28 EK-TM4C1294XL.ccxml drwxrwxr-x 6 MYUSERID MYUSERID 4096 Jun 2 21:17 emulation/ drwxrwxr-x 3 MYUSERID MYUSERID 4096 Jun 29 00:24 hercules/ -rw-rw-r-- 1 MYUSERID MYUSERID 1466 Jun 29 00:22 LAUNCHXL_CC1310.ccxml -rw-r--r-- 1 MYUSERID MYUSERID 959 Jun 2 21:28 LAUNCHXL-F28027.ccxml -rw-r--r-- 1 MYUSERID MYUSERID 1094 Jun 2 21:28 LAUNCHXL-F28069M.ccxml -rw-r--r-- 1 MYUSERID MYUSERID 1396 Jun 2 21:28 LAUNCHXL-F28377S.ccxml -rw-r--r-- 1 MYUSERID MYUSERID 829 Jun 2 21:28 MSP-EXP430F5529LP.ccxml -rw-r--r-- 1 MYUSERID MYUSERID 837 Jun 2 21:28 MSP-EXP430FR4133.ccxml -rw-r--r-- 1 MYUSERID MYUSERID 833 Jun 2 21:28 MSP-EXP430FR5969.ccxml -rw-r--r-- 1 MYUSERID MYUSERID 837 Jun 2 21 21:28 MSP-EXP430FR6989.ccxml -rw-r--r-- 1 MYUSERID MYUSERID 1094 Jun 2 21:28 MSP_EXP432P401R.ccxml MYUSERID@c-20po:~/.energia15/packages/energia/tools/dslite/6.2.1.1624$ $ cat MSP-EXP430FR6989.ccxml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <configurations XML_version="1.2" id="configurations_0"> <configuration XML_version="1.2" id="TI MSP430 USB1_0"> <instance XML_version="1.2" desc="TI MSP430 USB1_0" href="connections/TIMSP430-USB.xml" id="TI MSP430 USB1_0" xml="TIMSP430-USB.xml" xmlpath="connections"/> <connection XML_version="1.2" id="TI MSP430 USB1_0"> <instance XML_version="1.2" href="drivers/msp430_emu.xml" id="drivers" xml="msp430_emu.xml" xmlpath="drivers"/> <platform XML_version="1.2" id="platform_0"> <instance XML_version="1.2" desc="MSP430FR6989_0" href="devices/MSP430FR6989.xml" id="MSP430FR6989_0" xml="MSP430FR6989.xml" xmlpath="devices"/> </platform> </connection> </configuration> </configurations> while hunting for the problem i found 2 dslite entries in the tools->Programmer menu, selecting the 2nd does not help, just the path of the suspect ccxml file changed to /opt/energia-1.6.10E18/hardware/tools/DSLite/MSP-EXP430FR6989LP.ccxml Energia: 1.6.10E18 (Linux), Board: "MSP-EXP430FR6989LP" <command-line>:0:12: warning: missing whitespace after the macro name [enabled by default] Sketch uses 3,148 bytes (2%) of program storage space. Maximum is 130,048 bytes. Global variables use 28 bytes (1%) of dynamic memory, leaving 2,020 bytes for local variables. Maximum is 2,048 bytes. DSLite version 6.2.1.1595 Failed: Cannot read System Setup data from XML file /opt/energia-1.6.10E18/hardware/tools/DSLite/MSP-EXP430FR6989LP.ccxml Configuring Debugger (may take a few minutes on first launch)... Error parsing file: Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=/opt/energia-1.6.10E18/hardware/tools/DSLite/MSP-EXP430FR6989LP.ccxml Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=/opt/energia-1.6.10E18/hardware/tools/DSLite/MSP-EXP430FR6989LP.ccxml This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. OS: Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-36-generic x86_64) any idea? thanks best regards Peter
×