Jump to content

Search the Community

Showing results for tags 'error'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 25 results

  1. I'm trying to connect the MSP432P401R and it keeps giving me this error when I try to verify: Energia: 1.6.10E18 (Mac OS X), Board: "RED LaunchPad w/ msp432 EMT (48MHz)" Exception in thread "main" java.lang.UnsupportedClassVersionError: processing/app/ino2cpp/Main : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) exit status 1 Error compiling for board RED LaunchPad w/ msp432 EMT (48MHz). I'm just running the blinking light demo code. I've tried all the sereal ports and keep getting the same error. ideas?
  2. I get the error "'SPISettings' does not name a type" when I compile my code for LoRaWAN. The codes are working in Arduino with the libraries LoRa.h and SPI.h. I have added the image to where the error is pointing at (In LoRa Library) and the Error message as well below. I tried changing the energia SPI library to the Arduino SPI library as well but this created more problems. Out of all the things I tried, the most simple error I get is here when it says "Does not name a type". How can I correct that bit of code to get rid of this error. I'm a relative beginner in Energia and not sure what to do. Appreciate any help. Thank you🙂
  3. Hey guys, I´m using TM4C123G but I can´t configure Energia. When I go in board management and try downloading Energai TivaC Boards it fails and an error messaging appears saying "error during download..." Anyone knows how can I sovle it? Regards!
  4. Hi! Im getting these errors: This is my main code, it just reproduces a tone: Reproductor.ino #include "Nota.h" #include "Imperial_March.h" using namespace std; #include <vector> #include <string> template class std::basic_string<char>; #define DO 261.626 #define RE 293.665 #define MIb 311.127 #define MI 329.628 #define FA 349.228 #define FAs 369.994 #define SOL 391.995 #define SOLs 415.305 #define LA 440.000 #define SIb 466.164 #define SI 493.883 #define DOM 523.251 #define DOMs 554.365 #define REM 587.330 #define MIMb 622.254 #define MIM 659.255 #define FAM 698.456 #define FAMs 739.989 #define SOLM 783.991 const int BUZZER1 = PA_7; const int BUZZER2 = PF_1; float duracion_negra = 1.0; const int NUMERO_NOTAS = 216; void setup() { // initialize the digital pin as an output. pinMode(BUZZER1, OUTPUT); pinMode(BUZZER2, OUTPUT); const float DURANCION_MINIMA = duracion_negra/4.0; Imperial_March cancion; } void loop() { float nota_a_tocar = MI; digitalWrite(BUZZER1, HIGH); // turn the signal to buzzer high digitalWrite(BUZZER2, HIGH); // turn the signal to buzzer high delayMicroseconds( 1/(2*nota_a_tocar) *1000000 ); // wait for half cycle digitalWrite(BUZZER1, LOW); // turn the signal to buzzer low digitalWrite(BUZZER2, LOW); // turn the signal to buzzer low delayMicroseconds( 1/(2*nota_a_tocar) *1000000 ); // wait for half cycle } And the class I created, is just a "song": Imperial_March.cpp #include "Imperial_March.h" #include <iostream> Imperial_March::Imperial_March() { std::string notas_aux[] = {"SOL","SOL","SOL","MIb","SIb","SOL","MIb","SIb","SOL","REM","REM","REM", //12 "MIMb","SIb","FAs","RE","SIb","SOL","SOLM","SOL","SOL","SOLM","FAMs","FAM", //24 "MIM","SOLs","DOMs","DOM","SI","SIb","MIb","FAs","MI","FA","SIb","SOL", //36 "SI","SI","SOLM","SOL","SOL","SOLM","FAMs","FAM","MIM","SOLs","DOMs","DOM", //48 "SI","SIb","MIb","FAs","MI","SI","SOL","MIb","SIb","SOL","SOL","SOL", //60 "SOL","MIb","SIb","SOL","MIb","SIb","SOL","RE","RE","RE","MIMb","SIb", //72 "FAs","RE","SIb","SOL"}; tamanio = sizeof(notas_aux)/sizeof(std::string); unsigned int i = 0; for(i=0; i<tamanio; i++) notas.push_back(notas_aux[i]); } Imperial_March::~Imperial_March(){} std::string Imperial_March::Get_nota(int pos){ return notas[pos]; } int Imperial_March::Get_tamanio(){ return tamanio; } namespace std { void __throw_length_error(char const*){} void __throw_logic_error(char const*){} //void ios_base::Init(){} } And its header Imperial_March.h #ifndef IMPERIAL_MARCH_H #define IMPERIAL_MARCH_H #include "Nota.h" #include <string> #include <vector> class Imperial_March { public: Imperial_March(); ~Imperial_March(); std::string Get_nota(int pos); int Get_tamanio(); private: std::vector<std::string> notas; int tamanio; }; #endif // IMPERIAL_MARCH_H
  5. ewparker

    MSP432 Won't Compile

    When I try to compile with my MSP432P401R I get the following error Energia: 1.6.10E18 (Windows 10), Board: "RED LaunchPad w/ msp432 EMT (48MHz)" arm-none-eabi-g++: error: CreateProcess: No such file or directory exit status 1 Error compiling for board RED LaunchPad w/ msp432 EMT (48MHz). Any ideas on a fix? Regards, Eli
  6. Hello, I'm trying to run a code I found for a water depth sensor MS5540C and I'm coming across a compilation error: "error: 'TCCR1B' was not declared in this scope" anyone know what is going on? code can be found here http://www.fut-electronics.com/wp-content/uploads/2015/10/water_depth_sensor_MS5540C_Arduino_tutorial.pdf thank you!
  7. I am trying to use Energia with the MSP-EXP432P401R, but I am unable to install the right LaunchPad board on Energia. I downloaded the proper driver using http://energia.nu/guide/guide_windows/ and downloaded Energia for Windows using http://energia.nu/download/. As a point of reference, my computer is Windows 64 bit. I then used http://energia.nu/guide/boards/ to install the right LaunchPad board, but I am receiving the following error message shown below. I tried all troubleshooting suggestions on the links provided, but I can’t seem to find a solution to my problem. I did see after I connected the USB to the LaunchPad, the green LED did come on. Can you help me determine the cause of this and help me resolve it?
  8. Hi, I have an MSP430G2553 board that I need to work with. However, when using Energia, the program usually freezes or becomes extremely slow to the point that I just have to terminate the process and close it. I really doubt it's a code problem, since the only codes I've used have been from the Examples (Blink and AnalogReadSerial). I've tried a couple of things: uninstalling and re-installing drivers, following all the steps in the Windows guide for Energia, re-downloading Energia. But nothing works. The problem is most certainly a communication problem with the board since, upon unplugging the board, the program starts working again with no freezes whatsoever. I really need to get this to work, so any suggestion is apreciated. Windows 10 by the way. Thanks. - Raimundo
  9. mnop

    error message not shown

    i have been trying to connect the server and client to communicate i am getting an error "Err" without any message how should i debug it ? many thanks
  10. I cant compile codes for tm4c123g anymore. My boards suddenly disappeared from board manager. Now when I want to open it, it shows the following error: Error downloading http://www.energia.nu/packages/package_index.json java.lang.RuntimeException: java.lang.Exception: Error downloading http://www.energia.nu/packages/package_index.json at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$0(ContributionManagerUI.java:151) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.Exception: Error downloading http://www.energia.nu/packages/package_index.json at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:113) at cc.arduino.contributions.packages.ContributionInstaller.download(ContributionInstaller.java:330) at cc.arduino.contributions.packages.ContributionInstaller.downloadIndexAndSignature(ContributionInstaller.java:305) at cc.arduino.contributions.packages.ContributionInstaller.updateIndex(ContributionInstaller.java:283) at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$0(ContributionManagerUI.java:147) ... 1 more Caused by: java.io.IOException: Received invalid http status code from server: 416 at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:194) at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128) at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111) ... 5 more
  11. SudHebbar

    Fatal error

    I'm using the latest version of Energia and I'm facing some problems with it. I'm a beginner and I tried running an example program on the MSP430G2553. I get this error which says: Energia: 1.6.10E18 (Windows 8.1), Board: "MSP_EXP430G2553LP" In file included from C:\energia-1.6.10E18\hardware\energia\msp430\cores\msp430/Arduino.h:3:0, from sketch\Blink.ino.cpp:1: C:\energia-1.6.10E18\hardware\energia\msp430\cores\msp430/Energia.h:339:26: fatal error: pins_energia.h: No such file or directory compilation terminated. exit status 1 Error compiling for board MSP_EXP430G2553LP. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. Please help me in getting rid of this error. Thank you!
  12. Khan0504

    Upload error

    I am not quite familiar with the energia software, and am getting this error message when I try to upload a sketch. The attached file is what I am trying to upload. java.io.IOException: Cannot run program "{runtime.tools.dslite-7.2.0.2096.path}/DebugServer/bin/DSLite": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(Unknown Source) at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26) at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:130) at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:209) at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78) at processing.app.Sketch.upload(Sketch.java:1187) at processing.app.Sketch.exportApplet(Sketch.java:1160) at processing.app.Sketch.exportApplet(Sketch.java:1132) at processing.app.Editor$DefaultExportHandler.run(Editor.java:2410) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 10 more An error occurred while uploading the sketch sketch_sep25a.ino
  13. electropapa

    CCS import of Energia sketch

    Imported Blink without delay energia(v1.6.10E18) sketch into cos (v 7.1.0.00016) and build. Get linker error of undefined reference to 'main'. Have not been able to determine why main is not defined. I am using MSP-EXP432P401R Launchpad kit. Blink without delay works fine from Energia ide.
  14. Information to Provide When Asking for Help: Model of LaunchPad used and revision number : MSP 430 launchpad v 1.5 Model of the MCU used : MSP 430 G 2553 Model of BoosterPack used or model of the sensor or actuator or screen : SD card directly via wires to pins of MSP Lp Optionally, links to the sensor or actuator or screen data sheet : NA Name and version of the IDE used : Energia IDE : 1.6.10 E 18 OS the IDE is running on : Linux Mint 18 Whenever possible, minimal code to replicate the issue /* SD card datalogger This example shows how to log data from three analog sensors to an SD card using the SD library. The circuit: * analog sensors on analog ins 0, 1, and 2 * SD card attached to SPI bus as follows: ** MOSI - pin 11 ** MISO - pin 12 ** CLK - pin 13 ** CS - pin 4 created 24 Nov 2010 modified 9 Apr 2012 by Tom Igoe This example code is in the public domain. */ #include <SPI.h> #include <SD.h> // On the Ethernet Shield, CS is pin 4. Note that even if it's not // used as the CS pin, the hardware CS pin (10 on most Arduino boards, // 53 on the Mega) must be left as an output or the SD library // functions will not work. const int chipSelect = 4; void setup() { // Open serial communications and wait for port to open: Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only } Serial.print("Initializing SD card..."); // make sure that the default chip select pin is set to // output, even if you don't use it: pinMode(10, OUTPUT); // see if the card is present and can be initialized: if (!SD.begin(chipSelect)) { Serial.println("Card failed, or not present"); // don't do anything more: return; } Serial.println("card initialized."); } void loop() { // make a string for assembling the data to log: String dataString = ""; // read three sensors and append to the string: for (int analogPin = 0; analogPin < 3; analogPin++) { int sensor = analogRead(analogPin); dataString += String(sensor); if (analogPin < 2) { dataString += ","; } } // open the file. note that only one file can be open at a time, // so you have to close this one before opening another. File dataFile = SD.open("datalog.txt", FILE_WRITE); // if the file is available, write to it: if (dataFile) { dataFile.println(dataString); dataFile.close(); // print to the serial port too: Serial.println(dataString); } // if the file isn't open, pop up an error: else { Serial.println("error opening datalog.txt"); } } Optionally, all kinds of measures that may be useful, like logic analyser trace, oscilloscope screen-shots : Attached
  15. Can some explain what the following error messages are all about and why I am getting them when trying to compile the standard Blink example please? Plus, how to fix this. Thanks. C:\Users\Mike\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\energia\msp430\cores\msp430\atof.c: In function 'atof': C:\Users\Mike\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\energia\msp430\cores\msp430\atof.c:71:9: warning: floating constant exceeds range of 'double' [-Woverflow] C:\Users\Mike\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\energia\msp430\cores\msp430\wiring_analog.c:65:0: warning: "DEFAULT_READ_RESOLUTION" redefined [enabled by default] C:\Users\Mike\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\energia\msp430\cores\msp430\wiring_analog.c:35:0: note: this is the location of the previous definition C:\Users\Mike\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\energia\msp430\cores\msp430\avr\dtostrf.c: In function 'dtostrf': C:\Users\Mike\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\energia\msp430\cores\msp430\avr\dtostrf.c:36:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default] C:\Users\Mike\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\energia\msp430\cores\msp430\Stream.cpp: In member function 'bool Stream::find(char*)': C:\Users\Mike\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\energia\msp430\cores\msp430\Stream.cpp:78:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  16. crouzilles

    Program won't fit weirdness

    Hi all, I am new to the forum to MCUs and to energia. I have the TI Launchpad MSP430G2553 with a maximum of 16,384 bytes of available ram as far as I understand. The program below compiles at 3,061 bytes if I use the data type "byte" for my large array, but apparently I am missing 72 bytes of space if I use the data type "int" which if I understand things well is only twice the size of a byte. Can someone explain to me why I get this error? P.S: Some variables are not yet used I know, but they will be int dot = 0; int dash = 1; int empty = -1; int unit = 50; int dot_unit = 1; int dash_unit = 3; int letter_space = 1; int letters_space = 3; int words_space = 7; #define LED RED_LED /* Alphanumeric structure from A-Z and 0-9. Values in the last column correspond to decimal values for each ASCII character. */ byte alpha_num[36][6] = { {0,1,-1,-1,-1,65}, {1,0,0,0,-1,66}, {1,0,1,0,-1,67}, {1,0,0,-1,-1,68}, {0,-1,-1,-1,-1,69}, {0,0,1,0,-1,70}, {1,1,0,-1,-1,71}, {0,0,0,0,-1,72}, {0,0,-1,-1,-1,73}, {0,1,1,1,-1,74}, {1,0,1,-1,-1,75}, {0,1,0,0,-1,76}, {1,1,-1,-1,-1,77}, {1,0,-1,-1,-1,78}, {1,1,1,-1,-1,79}, {0,1,1,0,-1,80}, {1,1,0,1,-1,81}, {0,1,0,-1,-1,82}, {0,0,0,-1,-1,83}, {1,-1,-1,-1,-1,84}, {0,0,1,-1,-1,85}, {0,0,0,1,-1,86}, {0,1,1,-1,-1,87}, {1,0,0,1,-1,88}, {1,0,1,1,-1,89}, {1,1,0,0,-1,90}, {1,1,1,1,1,48}, {0,1,1,1,1,49}, {0,0,1,1,1,50}, {0,0,0,1,1,51}, {0,0,0,0,1,52}, {0,0,0,0,0,53}, {1,0,0,0,0,54}, {1,1,0,0,0,55}, {1,1,1,0,0,56}, {1,1,1,1,0,57} }; void setup() { pinMode(LED, OUTPUT); //Initialize serial and wait for port to open: Serial.begin(9600); // prints title with ending line break Serial.println("Alphanumeric ASCII table"); } void loop() { print_table_values(); } void print_table_values() { digitalWrite(LED, HIGH); for (int i = 0; i < 36; i++) { Serial.print(alpha_num[i][5]); Serial.print(" is: "); Serial.write(alpha_num[i][5]); Serial.println(""); } digitalWrite(LED, LOW); while(true) { continue; } } If I use "int" as the array's data type I get the following error [C:\energia\hardware\tools\msp430\bin\msp430-g++, -c, -Os, -w, -ffunction-sections, -fdata-sections, -mmcu=msp430g2553, -DF_CPU=16000000L, -MMD, -DARDUINO=101, -DENERGIA=17, -IC:\energia\hardware\msp430\cores\msp430, -IC:\energia\hardware\msp430\variants\launchpad, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\morse_ino.cpp, -o, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\morse_ino.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\atof.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\dtostrf.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\itoa.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\random.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\twi.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\twi_sw.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\usci_isr_handler.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\WInterrupts.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\wiring.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\wiring_analog.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\wiring_digital.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\wiring_pulse.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\wiring_shift.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\HardwareSerial.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\IPAddress.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\MACAddress.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\main.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\new.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\Print.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\Stream.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\TimerSerial.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\Tone.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\Wire.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\WMath.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\WString.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-gcc, -Os, -Wl,-gc-sections,-u,main, -mmcu=msp430g2553, -o, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\morse_ino.cpp.elf, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\morse_ino.cpp.o, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, -LC:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp, -lm] c:/energia/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: morse_ino.cpp.elf section `.bss' will not fit in region `ram' c:/energia/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: region `ram' overflowed by 72 bytes collect2: ld returned 1 exit status This does not make sense to me. Regards X
  17. So I'm working on a fingerprint scanner project with this repo written for arduino for the scanner I'm using. I am trying to make it work with an MSP430G2553 instead of the Arduino Uno. When I try using this library in Energia, it can't find the scanner despite being wired on the launchpad the same way that it is wired on the Arduino (External 5V source, Arduino pin 2 --> MSP430 pin 1.1, Arduino pin 3 --> MSP430 pin 1.2). The code compiles and the serial monitor outputs the test looking for the scanner, but it has yet to be able to find it. If anyone could give me any help with this, it would be greatly appreciated. Energia ino sketch is attached. EDIT: So after making myself more familiar with the code and the C++ imports, it seems the scanner works in 4 phases: 1) Take image 2) If image is a finger, convert it to digital features 3) Compare fingerprint features against features of enrolled fingerprints 4) Able to return result for the comparison and if its a match, return the ID# These lines: SoftwareSerial mySerial(5, 6); //Define serial communication on two pins Adafruit_Fingerprint finger = Adafruit_fingerprint(&mySerial); Seem to be whats handling all the fingerprint logic. So the issue isn't with the scanner, its with the communication between scanner and the MSP, most likely that I'm somehow defining output pins 5 and 6 (P1_3 and P1_4) incorrectly so they are not handling the scanner at all. fingerprint.ino
  18. I have installed Energia 0101E0016 in Windows 8.1, 64bit. I am unable to open Energia. When I double click on Energia.exe all I get is a window with the log for a second only. Then the logo disappears and nothing happens thereafter. Can anyone help?
  19. Hello everyone! I have just bought a C2000 Piccolo LaunchPad Evaluation Kit, de LAUNCHXL - F28027F. I have also just started learning to program in Energia, and I am following the tutorials in the guide section (they are very useful if someone is a beginer). While I was doing the first tutorial (Blinking LED), it appeared this error: "Put C2000 LaunchPad switches (S1) ON-OFF-OFF (UP-DOWN-DOWN), ensure the back channel serial connection is enabled, and press the reset button. If the download fails try a baud rate below 38400." I put the switches as it says, and I also decreased the baud rte to 10000, but the error does not disappear. Moreover, I only changed 1 line of code because I haven't got the same board as the example, so I can't understand what I am doing wrong. Anyone can help me? Thanks in advance! PS: I copy the main code I have in my sketch, and also upload it. void setup() { Serial.begin(10000); pinMode(LED0, OUTPUT); } void loop() { digitalWrite(LED0, HIGH); delay(1000); digitalWrite(LED0, LOW); delay(1000); } prova1.ino
  20. CristobalAlonsoMartinez

    Error CreateProcess: No such file or directory

    Hi, I have just install Energia in my computer, I'm learning to use it but I don't know why, when I want to verify a program appears this Error: [C:\Users\GATEWAY\Downloads\energia-0101E0016\hardware\tools\msp430\bin\msp430-g++, -c, -Os, -w, -ffunction-sections, -fdata-sections, -mmcu=msp430g2553, -DF_CPU=16000000L, -MMD, -DARDUINO=101, -DENERGIA=16, -IC:\Users\GATEWAY\Downloads\energia-0101E0016\hardware\msp430\cores\msp430, -IC:\Users\GATEWAY\Downloads\energia-0101E0016\hardware\msp430\variants\launchpad, C:\Users\GATEWAY\AppData\Local\Temp\build1369045033969488101.tmp\Blink.cpp, -o, C:\Users\GATEWAY\AppData\Local\Temp\build1369045033969488101.tmp\Blink.cpp.o] msp430-g++: error: CreateProcess: No such file or directory Does anyone know what could be the problem? I'll appreciate your help. Thanks.
  21. vanandt1vietnam

    msp 430 launchpad G2

    my msp 430 launhpad has problem. It can not debug program. It report " MSP430_OpenDevice: Could not find device in energia"
  22. Two problems with delayMicroseconds on Tiva (and I believe on CC3200) 1) The delay interval is erratic, appearently because delayMicroseconds does not handle rollovers of the systick counter correctly. 2) delayMicroseconds can not work for dealys longer that 10,000 microseconds. (Even though the documentation says that it works up to 16383, and even includes an example.) Details: Issue 1) Code to demonstrate problem: #define DELAY_FOR 5000 void setup() { Serial.begin(9600); Serial.print("Delay"); Serial.println(DELAY_FOR); Serial.print("elapsed tics should be: "); Serial.println(F_CPU/1000000); } void loop() { unsigned long i = micros(); unsigned long systicstart = HWREG(NVIC_ST_CURRENT); delayMicroseconds(DELAY_FOR); unsigned long systicstop = HWREG(NVIC_ST_CURRENT); unsigned long p = micros(); unsigned long o = p-i; Serial.print("Before: "); Serial.print(i); Serial.print(" Systic: "); Serial.println(systicstart, HEX); Serial.print("After: "); Serial.print(p); Serial.print(" Systic: "); Serial.println(systicstop, HEX); Serial.print("After-Before: "); Serial.print(o); Serial.print(" Systic: "); Serial.println(systicstart - systicstop, HEX); Serial.print("Error: "); Serial.print(((long int)DELAY_FOR) - ((long int)o)); Serial.print("\t Systic: "); Serial.println((long int)((systicstart - systicstop) & 0xFFFFFF)-((long int)(F_CPU/1000000))); Serial.println(); } Just loops forever doing a delay, then printing how long the delay took (prints both in micros(), and ticks of the systick counter. (Note that micros() does not use the systick timer.) Example output: Before: 8470600 Systic: B5751 After: 8475601 Systic: 53C94 After-Before: 5001 Systic: 61ABD Error: -1 Systic: 399981 Before: 8599763 Systic: 2735 After: 8599893 Systic: C33E4 After-Before: 130 Systic: FFF3F351 Error: 4870 Systic: 15987457 Before: 8734135 Systic: 7055D After: 8739137 Systic: EAA0 After-Before: 5002 Systic: 61ABD Error: -2 Systic: 399981 While usually the delay is about 5000 microseconds, often it isn't (in the middle reading above the delay is much too short). The code from wiring.c (this is for Tiva, the CC3200 code is somewhat similar). void delayMicroseconds(unsigned int us) { volatile unsigned long elapsedTime; unsigned long startTime = HWREG(NVIC_ST_CURRENT); do{ elapsedTime = startTime-(HWREG(NVIC_ST_CURRENT) & 0x00FFFFFF); } while(elapsedTime <= us * (F_CPU/1000000)); } There are a few suspect things about this code: Since it is subtracting unsigned values, it seems to be the intention to rely on modular arithmatic to get the comparisons right. (As in discussed in this page http://www.thetaeng.com/TimerWrap.htm ). However as I understand it, for that to work the timer needs to overflow at the full width of the values being stored. In this case the timer is at most a 24 bit timer, but the values are 32 bits. If the full timer was being used, it might be possible to fix that by masking off the top 8 bits. elapsedTime = (startTime-HWREG(NVIC_ST_CURRENT)) & 0x00FFFFFF; However in this case the full width of the timer is not being used, it wraps to F_CPU/SYSTICKHZ after reaching 0 (it is a count down timer). So it looks like every time the systick timer rolls over, any delayMicroseconds which is in progress will have an unexpected result. (In the above output, where the delay was short, not the starting the starting value of NVIC_ST_CURRENT is small, and the ending value is close to C3500, which is F_CPU/SYSTICKHZ on a Tiva launchpad, i.e. the counter rolled over). Small side issue: The code also seems to assume that the upper 8 bits of NVIC_ST_CURRENT will always be 0 (the manual warns against making assumptions about such bits). A fix for that would be to add & 0x00FFFFFF to where startTime is set. I do not have a particular suggestion of how to fix the code. I think this issue also applies to the CC3200 (just from looking at the source code, but I have not checked that out in detail, and I do not have one to test.) -- 2) Since the systick counter rolls over every 10000 microseconds, delayMicroseconds can not delay for longer than that. .../energia-0101E0013/reference/DelayMicroseconds.html The documentation says "Currently, the largest value that will produce an accurate delay is 16383." (There is also an example which uses delays of this length.) The documentation may be a holdover from Arduino, which says the same thing, even though it does not appear to apply to the Arduino Due, for instance. (I do not know if this was true of MSP430.) A possible fix for the delay duration issue would be to add something like the following to the beginning of delayMicroseconds if (us > 9000){ delay( us / 1000); us = us % 1000; }; (the 9000 was somewhat arbitrary, rather than a constant it should be calculated based on SYSTICKHZ ). Might also be well to clarify the documentation about which platform the 16383 relates to. This is all on Energia 13, but I believe was also present in Energia 12.
  23. In at least two places the Energia documentation claims that LaunchPad pins can source or sink up to 40 mA. Is that true of all (or any) of the launchpads supported by Energia? (i.e., Stellaris/Tiva, Tiva Connected, MSP430, Fraunchpad, C2000, CC3200) For the Stellaris launchpad, the documentation for the LM4F120 gives drive strength options of 2, 4, or 8 mA, and says up to 4 pins can sink 18 mA. So where does the 40mA come from (or go to)? Yet energia.nu says: "LaunchPad pins can source (provide positive current) or sink (provide negative current) up to 40 mA (milliamps) of current to other devices/circuits." http://energia.nu/guide/tutorial_digitalpins/ http://energia.nu/reference/constants/ I note that the Arduino documentation says the same 40mA, so suspect this specification may have accidentally been copied from the AVR. If so, seems like an invitation to release the magic smoke. Please someone either point me to where the documentation says that the various launchpads can source/sink that much, or fix the web site to either include the actual numbers for the various launchpads, or remove the misleading number. I previously posted this question on stellarisiti (where it failed to generate any action), but just noticed that the web site says to post documentation corrections on the 43oh Energia forums.
  24. 14Ohm

    CC110L example code error

    I am new to launchpad and I've been trying to use the booster pack CC110L with no results. I am using the follwing: LaunchPad MSP430G2 (1.5) MSP430G2553 Anaren CC110L BoosterPack Energia 11 Windows 7 64-bit I am trying to run the example WirelessControl but i keep getting a huge error wihich at the end says: \energia0101E0011windows\energia0101E0011\hardware\msp430\libraries\AIR430BoostEuropeETSI\utility\Platform.cpp:114:28: error: 'SPIMISO_SET_MODE' was not declared in this scope Any ideas of what the problem could be??
  25. Avinash

    Error while compiling, Help!

    HI, I am a first time user of MSP430G2553, I am trying to execute the example Blink but getting Comping error.Pls help to solve Error is: [C:\energia\hardware\tools\msp430\bin\msp430-g++, -c, -g, -Os, -w, -ffunction-sections, -fdata-sections, -mmcu=msp430g2553, -DF_CPU=16000000L, -MMD, -DARDUINO=101, -DENERGIA=11, -IC:\energia\hardware\msp430\cores\msp430, -IC:\energia\hardware\msp430\variants\launchpad, C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build3571949476556328385.tmp\Blink.cpp, -o, C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build3571949476556328385.tmp\Blink.cpp.o] msp430-g++: error: CreateProcess: No such file or directory I have extractes energia-0101E0011
×