Jump to content

Search the Community

Showing results for tags 'Energia'.



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 574 results

  1. Has anyone else experienced something like this? I have been using Energia on Windows for years on various LaunchPads, including 430, 432, and Stellaris (now Tiva). The Windows 10 PCs are a Surface Pro 3, a Toshiba Satellite, and an HP Pavilion. Over the last few months, builds and uploads fail in multiple ways unpredictably. The Serial Monitor often doesn't work, even when the TX pin has the correct signal (verified with an oscilloscope decoder). Often the fix is simply to click the Upload button over and over until it works. I've changed to shorter USB cables and switched from USB 3 to USB 2. Sometimes the problem is fixed by restarting Energia or rebooting the PC. It never stays fixed. I've had the same kinds of issues on older versions of Energia, but the code I'm currently developing won't compile if I go back too far. So I'm sticking with the latest version, 1.8.7E21. I've searched the forum for this, but haven't found anything like it. It is possible I just don't know what to search for, so I would be grateful for pointers. I don't want to go down the rabbit hole chasing one of these specific error messages just yet. I suspect the problem is caused by Windows and Java updates, but I have had no problems with Arduinos (UNO, Mega2600). BTW, I have no problems with Energia 1.8.7E21 on an older desktop running Windows 7.
  2. Hello, I am having the issue that I do not see anything printed on the serial monitor in energia. I upload the code successfully and the port seems to recognize the board and did necessary updates, but there should be words printed on my serial port since I have my MSP430FR5994 connected to a sensor. Any idea why there is nothing there? I set the serial monitor to 115200 baud. I am trying to watch the sensor readings in real time. Maybe I just do not have a good understanding of how to read data from a serial monitor. Here is a copy of the code I am using which is for the Sparkfun heartrate and pulse oxygen sensor. #include "SparkFun_Bio_Sensor_Hub_Library.h" #include "Wire.h" // No other Address options. #define DEF_ADDR 0x55 // Reset pin, MFIO pin const int resPin = 16; const int mfioPin = 17; // Takes address, reset pin, and MFIO pin. SparkFun_Bio_Sensor_Hub bioHub(resPin, mfioPin); bioData body; //2 void setup(){ Serial.begin(115200); Wire.begin(); int result = bioHub.begin(); if (!result) Serial.println("Sensor started!"); else Serial.println("Could not communicate with the sensor!!!"); Serial.println("Configuring Sensor...."); int error = bioHub.configBpm(MODE_ONE); // Configuring just the BPM settings. if(!error){ Serial.println("Sensor configured."); } else { Serial.println("Error configuring sensor."); Serial.print("Error: "); Serial.println(error); } // Data lags a bit behind the sensor, if you're finger is on the sensor when // it's being configured this delay will give some time for the data to catch // up. delay(4000); } //3 void loop(){ // Information from the readBpm function will be saved to our "body" // variable. body =bioHub.readBpm(); Serial.print("Heartrate: "); Serial.println(body.heartRate); Serial.print("Confidence: "); Serial.println(body.confidence); Serial.print("Oxygen: "); Serial.println(body.oxygen); Serial.print("Status: "); Serial.println(body.status); delay(250); // Slowing it down, we don't need to break our necks here. } -Katie
  3. Hi all, As can be seen in the picture, p64 is repeated twice. one is on P3 and connected and the other one is on P4 and not connected. lets say I want to use PWM on this pin, using the example provided by Energia I can successfully dim an LED connected to the p64 on P3 (yellow highlight) but for my application, I need to have access to the p64 on p4 but no matter if I refer to it as pin 37 or 29 using Energia, only the p64 on P3 will light up the LED. is there any way to have access to pin 37 (pin 64 on P4)? Also any one knows why this design is adapted where a few pins are duplicated(connected and not connected version)? Thanks this is the code: #define ledPinG 37 // PWMTimerCC32XX_PIN_64, /* 37 - GPIO_09 T2B */ ---> if I put #define ledPinG 29, I get the same result void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: // fade in from min to max in increments of 5 points: for(int fadeValue = 0 ; fadeValue <= 255; fadeValue +=5) { // sets the value (range from 0 to 255): analogWrite(ledPinG, fadeValue); // wait for 30 milliseconds to see the dimming effect delay(30); } // fade out from max to min in increments of 5 points: for(int fadeValue = 255 ; fadeValue >= 0; fadeValue -=5) { // sets the value (range from 0 to 255): analogWrite(ledPinG, fadeValue); // wait for 30 milliseconds to see the dimming effect delay(30); } }
  4. Nick Gammon published an interesting post on using SPI on 16 MHz Arduinos to run WS2812 LEDs (aka neopixels) at: http://gammon.com.au/forum/?id=13357. He also provides a link with a lot of information about the NRZ protocol used by the WS2812 and tolerances: https://wp.josh.com/2014/05/13/ws2812-neopixels-are-not-so-finicky-once-you-get-to-know-them/. The tolerances are actually quite a bit looser than what I previously believed. So, I set out to do something similar with Energia and LaunchPads running at different speeds. Spoiler alert: It works. The previously linked articles provide all the background so minimal information is repeated here. NRZ is a one wire protocol that transfers information to the LEDs by varying the length of the signal when high. A longer pulse is used for a 1, and a shorter one for a 0. The timing, with tolerances, is shown in the figure below. The length between pulses cannot exceed about 5 us and most everything else is pretty loose. The protocol is implemented using SPI which I find pretty clever. A byte is sent out with the SPI module with the proper length to represent the desired bit for the protocol. The following must be determined and set to do this: Set proper SPI clock speed using SPI.setClockDivider() in Energia Determine the proper byte to send by SPI.transfer() in Energia to represent a 0 or 1 bit For example, using the MSP430F5529: Clock speed is 25.6 MHz Setting the SPI clock divider to 4 gives a SPI clock of 6.4 MHz and since the SPI block executes in one cycle (Arduino executes in 2), each bit in the byte is equivalent to 156.25 ns. Therefore, to send a pulse indicating a "1", a byte equal to 0b1111000 could be used which gives 4x156.25 = 625 ns. This is in the acceptable range of 550 to 850 ns. Similarly, for a 0 an acceptable byte would be 0b11000000 or 312.5 ns. A similar process can be used to determine acceptable values for the MSP430G2553. The sketch below is a simplification of the library presented by Nick which and includes the modifications described above to run on both the G2553 and F5529. The preprocessor is used to set appropriate values for the clock divider and long and short bytes. The functions are very nearly the same as posted by Nick. Note that interrupts must be disabled before sending data and then reenabled manually after. /* * WS2812 display using SPI on various TI LaunchPads with Energia * * Connections: * LaunchPad LED Strip * --------- --------- * 3V3 5VDC * Pin 15 (MOSI) DIN * GND GND * * How to use: * ledsetup (); - Get ready to send. * Call once at the beginning of the program. * sendPixel (r, g, ; - Send a single pixel to the string. * Call this once for each pixel in a frame. * Each colour is in the range 0 to 255. Turn off * interrupts before use and turn on after all pixels * have been programmed. * show (); - Latch the recently sent pixels onto the LEDs . * Call once per frame. * showColor (count, r, g, ; - Set the entire string of count Neopixels * to this one colour. Turn off interrupts before use * and remember to turn on afterwards. * * Derived from NeoPixel display library by Nick Gammon * https://github.com/nickgammon/NeoPixels_SPI * With ideas from: * http://wp.josh.com/2014/05/13/ws2812-neopixels-are-not-so-finicky-once-you-get-to-know-them/ * Released for public use under the Creative Commons Attribution 3.0 Australia License * http://creativecommons.org/licenses/by/3.0/au/ * * F Milburn November 2016 * Tested with Energia V17 and WS2812 8 pixel strip on launchpads shown below. */ #include <SPI.h> #if defined(__MSP430G2553) #define SPIDIV SPI_CLOCK_DIV2 // 16 MHz/2 gives 125 ns for each on bit in byte #define SPILONG 0b11111100 // 750 ns (acceptable "on" range 550 to 850 ns) #define SPISHORT 0b11100000 // 375 ns (acceptable "on" range 200 to 500 ns) #elif defined(__MSP430F5529) #define SPIDIV SPI_CLOCK_DIV4 // 25.6 MHz/4 gives 156.25 ns for each on bit in byte #define SPILONG 0b11110000 // 625 ns (acceptable "on" range 550 to 850 ns) #define SPISHORT 0b11000000 // 312.5 ns (acceptable "on" range 200 to 500 ns) #else #error This microcontroller is not supported #endif const unsigned int PIXELS = 8; // Pixels in the strip void setup (){ ledsetup(); } void loop (){ // Show a solid color across the strip noInterrupts(); // no interrupts while sending data showColor (PIXELS, 0xBB, 0x22, 0x22); // single color on entire strip interrupts(); // interrupts are OK now delay(1000); // hold it for a second // Show a different color on every pixel noInterrupts(); // no interrupts while sending data sendPixel(0xBB, 0x00, 0x00); // red sendPixel(0x00, 0xBB, 0x00); // green sendPixel(0x00, 0x00, 0xBB); // blue sendPixel(0xBB, 0xBB, 0xBB); // white sendPixel(0xBB, 0x22, 0x22); // pinkish sendPixel(0x22, 0xBB, 0x22); // light green sendPixel(0x22, 0x22, 0xBB); // purplish blue sendPixel(0x00, 0x00, 0x00); // pixel off interrupts(); // interrupts are OK now delay(1000); // hold it for a second } // Sends one byte to the LED strip by SPI. void sendByte (unsigned char { for (unsigned char bit = 0; bit < 8; bit++){ if (b & 0x80) // is high-order bit set? SPI.transfer (SPILONG); // long on bit (~700 ns) defined for each clock speed else SPI.transfer (SPISHORT); // short on bit (~350 ns) defined for each clock speed b <<= 1; // shift next bit into high-order position } // end of for each bit } // end of sendByte // Set up SPI void ledsetup(){ SPI.begin (); SPI.setClockDivider (SPIDIV); // defined for each clock speed SPI.setBitOrder (MSBFIRST); SPI.setDataMode (SPI_MODE1); // MOSI normally low. show (); // in case MOSI went high, latch in whatever-we-sent sendPixel (0, 0, 0); // now change back to black show (); // and latch that } // end of ledsetup // Send a single pixel worth of information. Turn interrupts off while using. void sendPixel (unsigned char r, unsigned char g, unsigned char { sendByte (g); // NeoPixel wants colors in green-then-red-then-blue order sendByte (r); sendByte (; } // end of sendPixel // Wait long enough without sending any bits to allow the pixels to latch and // display the last sent frame void show(){ delayMicroseconds (9); } // end of show // Display a single color on the whole string. Turn interrupts off while using. void showColor (unsigned int count, unsigned char r , unsigned char g , unsigned char { noInterrupts (); for (unsigned int pixel = 0; pixel < count; pixel++) sendPixel (r, g, ; interrupts (); show (); // latch the colours } // end of showColor The timing, when checked on a logic analyzer, checks out with the calculations above (hooray for math). The "gaps" between pulses are within tolerance and largely set by code overhead as well as the byte being sent. And here it is showing the strip lit up in one color. I tried this on several other LaunchPads I had handy and here is a summary: FR6989 - I had never noticed, but Energia defaults to 8 MHz. Doing the math, there isn't a good match to the WS2812 requirements without changing processor speed (which I did not try). MSP432 - there was behavior I couldn't explain, probably due to RTOS and I didn't pursue this for long. In summary, the method works although I did limited experimentation. It would be even easier to implement outside of Energia with full access to clocks. It was an interesting exercise but alternative methods have been posted here on 43oh with tuned assembler and having used those successfully in the past, I will probably continue to preferentially use them in the future.
  5. Hi, I'm making a project using msp432p4111 launchpad (red) and cc3100 booster pack for internet connectivity. I using Energia to code. I am using the beta version of the msp431p4111 board which i got from here http://s3.amazonaws.com/energiaUS/packages/package_msp432p_index.json. Plug this URL into the Energia preferences for downloading the msp432p4111 from boards manager. But I am not able to use the wifi library for it. I have to make multiple SSL HTTP requests. I have done it using Arduino and esp8266 but I am stuck when using msp432p4111 launchpad and cc3100 booster pack. Please help on how to go about using the wifi library. Also can I create wifi client for the SSL HTTP requests using the wifi library?
  6. Hi, I am not familiar with CCS and a novice in TI Launchpads. I have written an Energia code and would like to burn it into CC3220SF launchpad Flash memory so I could execute the code while disconnected from PC USB. I looked at e2e.ti.com/.../2495478, but did not work for me. Could you please guide me achieve this? Thanks, Sam
  7. Hello all, I am working to CC3200 launchpad and i want to interface bme680 sensor with CC3200 using Energia IDE. I am searching for library of this sensor but couldn't fine one. Can anyone help me regarding this? I tested this sensor with arduino uno and esp32 and adafruit_bm680 library works fine. but i tried to run it on energia and it didn't worked. Please guide me regarding this thanks.
  8. Hi All, I was trying to follow Jan's solution here but I accidentally deleted the dummy-root-ca-cert-key that was already there. Is it unique for the mac address of my Cc3220Sf or can I download somewhere? Also, I am new to this and although Jan kindly guide to do this: " file boot-energia.bin need to be uploaded by Uniflash as MCU image (including all certificates, keys, etc. - see http://www.ti.com/lit/pdf/swru469 )" I couldn't figure out the certificate part. Should it be dummy-root-ca-cert or a new one that I shoul make or both? Thanks, cat
  9. I got an MSP-EXP430G2ET yesterday, and after installing drivers and Energia (Debian unstable) I plugged it in and opened up the blink example. Energia spat out some messages about the firmware needing updating, and started the process. I don't have the log (it's fallen off my console's buffer) but it did not appear to complete successfully. Now, when I try to use Energia to flash the blink example, I get this: Sketch uses 386 bytes (2%) of program storage space. Maximum is 16384 bytes. Global variables use 20 bytes (3%) of dynamic memory, leaving 492 bytes for local variables. Maximum is 512 bytes. DSLite version 9.3.0.1863 Configuring Debugger (may take a few minutes on first launch)... Initializing Register Database... Initializing: MSP430 error: MSP430: Error initializing emulator: One of the connected MSP-FETs / eZ-FETs debuggers needs recovery. Select 'Recover' to start the recovery process. Note: Only one MSP-FET / eZ-FET debugger can be connected to your system during recovery. Updating Firmware error: MSP430: Error: MSP-FET / eZ-FET recovery failed Failed: MSP430: Error initializing emulator: MSP-FET / eZ-FET recovery failed the selected serial port does not exist or your board is not connected It's interesting that it says DSLite even though I selected mspdebug through the tools menu. So I figured I'd try just compiling a trivial C program and flashing it manually. $ mspdebug tilib appears to work, as long as I have the appropriate .so file in my dynamic loader's search path. However, this happens when I try to flash anything. $ LD_LIBRARY_PATH=energia-1.8.10E23/hardware/tools/DSLite/DebugServer/drivers/ mspdebug tilib MSPDebug version 0.22 - debugging tool for MSP430 MCUs Copyright (C) 2009-2013 Daniel Beer <dlbeer@gmail.com> This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. MSP430_GetNumberOfUsbIfs MSP430_GetNameOfUsbIf Found FET: HID_FET MSP430_Initialize: HID_FET Firmware version is 4294967294 MSP430_VCC: 3000 mV MSP430_OpenDevice MSP430_GetFoundDevice Device: (id = 0x0000) 0 breakpoints available MSP430_EEM_Init Chip ID data: 02 00 Available commands: = erase isearch power save_raw simio alias exit load prog set step break fill load_raw read setbreak sym cgraph gdb md regs setwatch verify delbreak help mw reset setwatch_r verify_raw dis hexout opt run setwatch_w Available options: color gdb_loop enable_bsl_access gdbc_xfer_size enable_locked_flash_access iradix fet_block_size quiet gdb_default_port Type "help <topic>" for more information. Use the "opt" command ("help opt") to set options. Press Ctrl+D to quit. (mspdebug) prog minimal.elf Erasing... Programming... Writing 80 bytes at c000 [section: .text]... Writing 32 bytes at ffe0 [section: .vectors]... Done, 112 bytes total (mspdebug) verify minimal.elf Verifying 80 bytes at c000 [section: .text]... ERROR: mismatch at c000 (read 00, expected 55) (mspdebug) I suspect this is a problem with the on-board debugger. Any information on how to fix this would be appreciated.
  10. I'm trying to use the UCA0 for SPI on MSP430FR2433 by using the SPI.setmodule(10); before SPI.begin(), but I'm not getting any data on the SPI lines. The default SPI on this launchpad is UCA1 and it works. After the above thing didn't work, I tried changing the core files: /home/username/.energia15/packages/energia/hardware/msp430/1.0.5/variants/MSP-EXP430FR2433LP/pins_energia.h In this file I changed: (from line 47 to 50) static const uint8_t SS11 = 8; /* P2.1 */ static const uint8_t SCK11 = 7; /* P2.3 */ static const uint8_t MOSI11 = 15; /* P2.4 aka SIMO */ static const uint8_t MISO11 = 14; /* P2.5 aka SOMI */ to: static const uint8_t SS11 = 8; /* P2.1 */ static const uint8_t SCK11 = 5; //P1_6 static const uint8_t MOSI11 = 4; //P1_4 aka SIMO static const uint8_t MISO11 = 3; //P1_5 aka SOMI And changed: #define DEFAULT_SPI 11 to: #define DEFAULT_SPI 10 But this also didn't work.pins_energia.h I have attached the changed file.
  11. Hi Everyone! I've just received a Tiva C launchpad and was wondering if you are able to write C code in Energia or if you have to use their Processing-based language? And if not, is there a way to use just write C code on Mac OS X (with or without an IDE) and upload it to the device? After a quick search of this forum and Google, most C compilers are meant for a Windows environment and I haven't been able to find much information for OS X other than Energia or possibly embedXCode. Thanks, Miles
  12. Hi! I have used the Easylink examples for Energia and I was able to send data from a Launchpad CC1310 to another at 50kbps. But I need to increase the baud rate to 200kbps or 500kbps. I have replaced EasyLink_Phy_50kbps2gfsk to EasyLink_Phy_200kbps2gfsk in the following files: Easylink/src/Easylink.h line 42 Easylink/src/easylink/Easylink.h line 223 and 232 Easylink/src/easylink/Easylink.c line 159 and 614 In Example EasylinkRX and EasylinkTx line 22 I have also replaced the configuration in smart_settings.c and smart_settings.h with the configuration generate by smartRF Studio (see configuration below). It compiles. But the communication does not work. What else must be changed? Can you provide a project or a library that is already working at this baud rate? I send you attached my project. That way you might find easily the error. I have spent hours at this and have no clue what's wrong. I hope you can help me. //********************************************************************************* // Parameter summary // Address: 0 // Address0: 0xAA // Address1: 0xBB // Frequency: 868.00000 MHz // Data Format: Serial mode disable // Deviation: 70.000 kHz // pktLen: 30 // 802.15.4g Mode: 0 // Select bit order to transmit PSDU octets:: 1 // Packet Length Config: Variable // Max Packet Length: 128 // Packet Length: 20 // Packet Data: 255 // RX Filter BW: 311 kHz // Symbol Rate: 200.00000 kBaud // Sync Word Length: 32 Bits // TX Power: 14 dBm (requires define CCFG_FORCE_VDDR_HH = 1 in ccfg.c, see CC13xx/CC26xx Technical Reference Manual) // Whitening: No whitening CodeComposer.zip
  13. model of LaunchPad used - CC3200 LAUNCHXL name and version of the IDE : Energia E1.8.11E23 OS the IDE is running on : Windows 10 How to install the ethernet library in Energia for CC3200 LaunchXL Board? I have downloaded the library from energia github but it does not seem to work and gives error multiple libraries for Ethernet . The code is not compiling for Ethernet Board TM4C1294 which has the ethernet library installed. Could someone help me out with the proper installation of Ethernet Library? Thanks in Advance
  14. Hello everyone, i was exporting a library from arduino when i realized i needed a sleepMicroseconds alternative for delayMicroseconds. is there one? Thank you.
  15. Hi, I am new to CC3200. Actually I want to use the Uart of cc3200. My application is to read data from a serial transmitter of another device using CC3200 and print the data on the serial monitor of Energia. I saw that there are two kinds:- Serial and Serial1. Can I use serial1 to read the data and then print data on serial monitor of Energia using Serial. Do I need to shift the J6,J7 from flash mode to BP mode?? I have seen the pinmapping. In that I found that Serial 1 is connected on UART1_Rx on GPIO11 i.e. P1-10 of CC3200 launchpad. Do I need to connect the peripheral devices' Tx pin on P1-10 and then print the data on Serial monitor using Serial.write(); ??
  16. Hi Fellow Energians, I am developing a product using Energia connected to a CC3200 Launchpad. The ultimate product will not use a launchpad, but will use a CC3200 processor. How does one download from Energia to a custom board? Thanks, Paul
  17. Hello Group. Is there any way to change the color of comments in a sketch? The default grey color is very light and hard to read on my Acer computer and I would like to make it darker and maybe a different color. I tried changing to a different font and that helped a bit. Thanks for your help, Paul
  18. Hello! I've got a problem when I want to show the output on serial monitor of a GPS. When I put a basic example (fade example) and the TX of the GPS on the TX of MSP430 (P1_2 pin) the output shows good, without any problem. The baud rate was the stock one (9600). When I try to make the same thing on other pins (I've choosed RX of GPS to P1_3 and TX of GPS to P1_4) a scrambled output takes place on the serial monitor and I don't really know what to do. I'll attach the code, maybe it's a code issue. Thanks in advance! I'm new in this so take me easy please //THE CODE https://pastebin.com/cjFyjHns #include <SoftwareSerial.h> static const int RXPin = P1_4, TXPin = P1_3; static const uint32_t GPSBaud = 9600; // The serial connection to the GPS device SoftwareSerial ss(RXPin, TXPin); void setup() { Serial.begin(115200); ss.begin(GPSBaud); } void loop() { // Output raw GPS data to the serial monitor while (ss.available() > 0){ Serial.write(ss.read()); // delay(10); } }
  19. I have found a very simple LCD display "DfRobot LCD for Arduino with rgb backlight". It seems like a good way to have a display with projects but the problem is that for some reason Energia cannot process the code. No matter how I try, i just get an error message: Error compiling for board MSP-EXP430G2ET w/ MSP430G2553. Is there any way to use such displays with Energia? the code is very simple #include <Wire.h> #include "DFRobot_RGBLCD.h" const int colorR = 255; const int colorG = 0; const int colorB = 0; DFRobot_RGBLCD lcd(16,2); //16 characters and 2 lines of show void setup() { // initialize lcd.init(); lcd.setRGB(colorR, colorG, colorB); // Print a message to the LCD. lcd.print("hello, world!"); delay(1000); } void loop() { // set the cursor to column 0, line 1 // (note: line 1 is the second row, since counting begins with 0): lcd.setCursor(0, 1); // print the number of seconds since reset: lcd.print(millis()/1000); delay(100); }
  20. Can someone provide a code for implementing a watchdog timer to autoreset in TIVA TM4C1294ncpdt using energia?
  21. Just installed in the latest Energia and then used the board manager to update my msp432r stuff to the latest 5.29.0. However, in: AppData\Local\Energia15\packages\energia\hardware\msp432r\5.29.0 the platform.txt file says: version=5.25.2 version.string=5252 Is 5.29.0 the same as 5.25.2?
  22. Part Number: TM4C123GH6PM Tool/software: Energia 1.6.10E18 LaunchPad board name and version: TIVA TM4C123GH6PM IDE version: Energia 1.6.10E18 or CCS7.0 OS name and version: Windows7 While uploading a simple LED Blink code on Tiva TM4C123GH6PMevaluation board, I get an error "Failed: Unable to find an entry in the TPI ini file for "TMS470REX"", failing to upload to the device. Please help!
  23. hi,frnds i would like to work with cc3200 and nfcboosterpack trf7970a in energia IDE .Does any one have energia library for TRF7970A boosterpack. i have attached a pdf which helps to make a library for iso1443a and iso5693 i tried this code for msp430g2553 but its not working please any one can help me TestTRF7970A_with_BPV3 (1).pdf nfcpin.pdf #include<SPI.h> #define enable P2_2 #define CS P2_1 #define interrupt P2_0 #define CS_ENABLED digitalWrite(CS,LOW) #define CS_DISABLED digitalWrite(CS,HIGH) void setup() { // put your setup code here, to run once: pinMode(CS,OUTPUT); pinMode(enable,OUTPUT); digitalWrite(enable,LOW); pinMode(interrupt,INPUT); SPI.setDataMode(SPI_MODE1); SPI.setClockDivider(SPI_CLOCK_DIV8); SPI.setBitOrder(MSBFIRST); SPI.begin(); Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: let(); } void let(void) { CS_ENABLED; Write(0x83); CS_DISABLED; CS_ENABLED; Write(0x09); Write(0x31); CS_DISABLED; CS_ENABLED; Read(0x49); CS_DISABLED; CS_ENABLED; Write(0x01); Write(0x88); CS_DISABLED; CS_ENABLED; Read(0x41); CS_DISABLED; CS_ENABLED; Write(0x00); Write(0x20); CS_DISABLED; CS_ENABLED; Read(0x40); CS_DISABLED; CS_ENABLED; Write(0x01); Write(0x88); CS_DISABLED; CS_ENABLED; Write(0x8F); Write(0x90); Write(0x3D); Write(0x00); Write(0x0F); Write(0x26); CS_DISABLED; delay(100); CS_ENABLED; Write(0x6C); Read(0xC0); Read(0x3E); CS_DISABLED; CS_ENABLED; Write(0x5C); Read(0x02); CS_DISABLED; CS_ENABLED; Write(0x7F); Read(0x04); Read(0x00); CS_DISABLED; CS_ENABLED; Write(0x8F); CS_DISABLED; CS_ENABLED; SPI.transfer(0x4F); Read(0x7F); CS_DISABLED; delay(20); CS_ENABLED; Write(0x8F); Write(0x90); Write(0x3D); Write(0x00); Write(0x20); Write(0x93); Write(0x20); CS_DISABLED; delay(5); CS_ENABLED; Write(0x6C); Read(0xC0); Read(0x3E); CS_DISABLED; CS_ENABLED; Write(0x5C); Read(0x05); CS_DISABLED; CS_ENABLED; Write(0x7F); Read(0xCD); Read(0x88); Read(0x77); Read(0x66); Read(0x00); delay(10); CS_DISABLED; CS_ENABLED; Write(0x6C); Read(0x00); Read(0x3E); CS_DISABLED; CS_ENABLED; Write(0x8F); CS_DISABLED; CS_ENABLED; Write(0x4F); Read(0x7F); CS_DISABLED; } void Read(byte data ) { Serial.print(SPI.transfer(data)); } void Write(byte data) { SPI.transfer( data); }
  24. Hello I need help. I have to get it with an Energia programming that you have to press a button 5 seconds before the led tackles. Are there any programs or commands on how to get this?. Thank you for your help
  25. Hello, I am storing a sensor value in the Flash Memory in a Segment of MSP430F5529 board. Since the data from the sensor keeps changing i want the data to be overwritten so that not much of space in flash memory is used. Is there a simple way to achieve the overwrite feature in flash memory ? Also i have another doubt, i wanted to know if i keep writing continuously a data to flash memory, does the microcontroller gets caught in writing to the flash and slows the running program ? thank you for taking time to review my questions.
×
×
  • Create New...