Jump to content
43oh

energia

Members
  • Content Count

    1,252
  • Joined

  • Last visited

  • Days Won

    63

Reputation Activity

  1. Like
    energia reacted to Rei Vilo in Boostxl-Senshub   
    Check whether any interference occurs with the BoosterPack Checker.

     
  2. Like
    energia got a reaction from bluehash in Delayed start MSP430FR5969   
    Are you using Energia? If yes, then there is indeed a delay. This is due to the startup code figuring out what clock source to use for low power modes.
    Details can be found in enableXtal() in wiring.c.
    Robert
  3. Like
    energia got a reaction from bluehash in Where do I find the Script that runs after clicking Upload   
    What you could do is build Energia from source. You can then change the upload command in https://github.com/energia/Energia/blob/master/app/src/processing/app/debug/MSP430Uploader.java.
  4. Like
    energia got a reaction from bluehash in VBUS detect OR USB disconnection detection   
    There is no connection from VBUS to any of the pins on the chip. What I would recommend is to tap ICDI_VBUS through a resistor divider to end up with 3.3V and then connect that to one of the pins. You might also be able to just directly connect ICDI_VBUS to the switching regulator control pin either through a resistor divider or directly if it is 5 Volt tolerant.
  5. Like
    energia got a reaction from Medsimo in ERROR COMPILING ...   
    It seems that there is a data type mismatch between whatever code is calling the SPI API's and the SPI library. Where did the ZBooster library come from?
  6. Like
    energia reacted to NurseBob in MSP432P401R and Adafruit 2.2" TFT w/ILI9340C   
    @@amc,
     
    I've used the Adafruit 2.8 TFT Cap-Touch LCD with an MSP430F529 - All I remember having to change were the pin assignment from the arduino sketch to match pin assignments on the '430 for SPI, and since the LCD I'm using was a cap-touch device, the I2C pins. HTH
     
    Bob
  7. Like
    energia reacted to Rei Vilo in CC3200 + analogRead. Only reads half of the range   
    The analog inputs on the CC3200 are limited to 1,6 V. Higher voltage may damage
  8. Like
    energia reacted to Rei Vilo in CC3200 + analogRead. Only reads half of the range   
    No problem, that's how one learns.
     
    Similarly, it is a good opportunity to read the data-sheet, http://www.ti.com/lit/ds/swas032f/swas032f.pdf'>CC3200 SimpleLink
  9. Like
    energia reacted to Fmilburn in Trouble Energia 17 Windows 10 msp430g2   
    Hi @@osmanfish and welcome to 43oh,
     
    Irritating isn't it?  It can be caused by several things.  It can happen with the MSP430G2 and Energia if you are using serial print and close the serial monitor down while the sketch is printing.  This does not seem to happen with other LaunchPads.  Try unplugging the LaunchPad at the computer and then plug it back in.  You may have to try uploading one or more times to get it working again.  Also, avoid shutting down the serial window.  Flash (upload) the target chip without shutting the serial monitor.
     
    If this does not seem to be your problem then google "Could not find MSP-FET430UIF on specified COM port (error = 57)" and you will find a number of other possible causes.  Look on the TI e2e site.
  10. Like
    energia reacted to Rei Vilo in MSP430F5529 JSON Code   
    You need to dig into the aJSON library. 
     
    Basically, the library only manages the { } and structure for formatting the message.
     
    You can prepare a JSON-compliant message with plain string functions instead of using that library.
    { "LED" : 1 } Find more at http://www.json.org.
  11. Like
    energia reacted to StrangerM in FR6989 - internal RTS & Temperature sensor   
    In low-power mode. CPU is stopped & runs only in interrupt subroutine.
    FR6989 - RTC & Temperature sensor by RTC interrupt 1 per sec
    #include "LCD_Launchpad.h" int n ; int s ; int m ; int h ; int d ; int M ; int y ; LCD_LAUNCHPAD myLCD ; void setup() { pinMode(P1_0, OUTPUT); digitalWrite(P1_0,LOW) ; Serial.begin(9600) ; myLCD.init(); WDTCTL = WDTPW | WDTHOLD; // Stop Watchdog Timer PJSEL0 = BIT4 | BIT5; // Initialize LFXT pins // Configure LFXT 32kHz crystal CSCTL0_H = CSKEY >> 8; // Unlock CS registers CSCTL4 &= ~LFXTOFF; // Enable LFXT do { CSCTL5 &= ~LFXTOFFG; // Clear LFXT fault flag SFRIFG1 &= ~OFIFG; } while (SFRIFG1 & OFIFG); // Test oscillator fault flag CSCTL0_H = 0; // Lock CS registers // Configure RTC_C RTCCTL0_H = RTCKEY_H; // Unlock RTC // RTCCTL0_L = RTCTEVIE | RTCRDYIE; // enable RTC read ready interrupt // enable RTC time event interrupt RTCCTL1 = RTCBCD | RTCHOLD | RTCMODE; // RTC enable, BCD mode, RTC hold /* RTCYEAR = 0x2017; // Year = 0x2017 RTCMON = 0x2; // Month = 0x02 = Feb RTCDAY = 0x18; // Day = 0x18 = 18 RTCDOW = 0x07; // Day of week = 0x07 = Sun RTCHOUR = 0x21; // Hour = 0x21 RTCMIN = 0x46; // Minute = 0x46 RTCSEC = 0x45; // Seconds = 0x45 RTCADOWDAY = 0x2; // RTC Day of week alarm = 0x2 RTCADAY = 0x20; // RTC Day Alarm = 0x20 RTCAHOUR = 0x10; // RTC Hour Alarm RTCAMIN = 0x23; //*/ RTCCTL1 &= ~(RTCHOLD); // Start RTC RTCCTL0_L = RTCRDYIE; // enable RTC read ready interrupt // enable RTC time event interrupt __bis_SR_register(LPM3_bits | GIE); // Enter LPM3 mode w/ interrupts } void loop() { // Serial.print(14); // Serial.println(100); /* if(RTCSEC!=n){ Serial.print(RTCSEC, HEX); Serial.print(":"); Serial.print(RTCMIN, HEX); Serial.print(":"); Serial.print(RTCHOUR, HEX); Serial.print(":"); Serial.print(RTCDAY, HEX); Serial.print(":"); Serial.print(RTCMON, HEX); Serial.print(":"); Serial.println(RTCYEAR, HEX); n=RTCSEC ; //if(n==59){n=-2;} //RTCCTL0_L = RTCTEVIE | RTCRDYIE; // enable RTC read ready interrupt // enable RTC time event interrupt // __bis_SR_register(LPM3_bits | GIE); // Enter LPM3 mode w/ interrupts */ } } #pragma vector=RTC_VECTOR __interrupt void RTC_ISR(void) { // __bic_SR_register_on_exit(LPM3_bits); // Exit active CPU // Serial.println(116); s=RTCSEC ; m=RTCMIN ; h=RTCHOUR ; d=RTCDAY ; M=RTCMON ; y=RTCYEAR ; myLCD.clear(); myLCD.print(h,HEX); myLCD.print(m,HEX);myLCD.println(s,HEX); RTCCTL0_L = RTCRDYIE; __bis_SR_register(LPM3_bits | GIE); } #include "LCD_Launchpad.h" #define CALADC12_12V_30C *((unsigned int *)0x1A1A) // Temperature Sensor Calibration-30 C //See device datasheet for TLV table memory mapping #define CALADC12_12V_85C *((unsigned int *)0x1A1C) // Temperature Sensor Calibration-85 C unsigned int temp; volatile float temperatureDegC; volatile float temperatureDegF; int n ; int s ; int m ; int h ; int d ; int M ; int y ; LCD_LAUNCHPAD myLCD ; void setup() { // pinMode(P1_0, OUTPUT); // digitalWrite(P1_0,LOW) ; // Serial.begin(9600) ; myLCD.init(); WDTCTL = WDTPW | WDTHOLD; // Stop Watchdog Timer //////////////////////////////// REFCTL0 |= REFVSEL_0 + REFON; // Enable internal 1.2V reference analogReference(INTERNAL1V2) ; /* Initialize ADC12_A */ ADC12CTL0 &= ~ADC12ENC; // Disable ADC12 ADC12CTL0 = ADC12SHT0_8 + ADC12ON; // Set sample time ADC12CTL1 = ADC12SHP; // Enable sample timer ADC12CTL3 = ADC12TCMAP; // Enable internal temperature sensor ADC12MCTL0 = ADC12VRSEL_1 + ADC12INCH_30; // ADC input ch A30 => temp sense ADC12IER0 = 0x001; // ADC_IFG upon conv result-ADCMEMO // while(!(REFCTL0 & REFGENRDY)); // Wait for reference generator // to settle ADC12CTL0 |= ADC12ENC; /////////////////////////////// PJSEL0 = BIT4 | BIT5; // Initialize LFXT pins // Configure LFXT 32kHz crystal CSCTL0_H = CSKEY >> 8; // Unlock CS registers CSCTL4 &= ~LFXTOFF; // Enable LFXT do { CSCTL5 &= ~LFXTOFFG; // Clear LFXT fault flag SFRIFG1 &= ~OFIFG; } while (SFRIFG1 & OFIFG); // Test oscillator fault flag CSCTL0_H = 0; // Lock CS registers // Configure RTC_C RTCCTL0_H = RTCKEY_H; // Unlock RTC // RTCCTL0_L = RTCTEVIE | RTCRDYIE; // enable RTC read ready interrupt // enable RTC time event interrupt RTCCTL1 = RTCBCD | RTCHOLD | RTCMODE; // RTC enable, BCD mode, RTC hold /* RTCYEAR = 0x2017; // Year = 0x2017 RTCMON = 0x2; // Month = 0x02 = Feb RTCDAY = 0x18; // Day = 0x18 = 18 RTCDOW = 0x07; // Day of week = 0x07 = Sun RTCHOUR = 0x21; // Hour = 0x21 RTCMIN = 0x46; // Minute = 0x46 RTCSEC = 0x45; // Seconds = 0x45 RTCADOWDAY = 0x2; // RTC Day of week alarm = 0x2 RTCADAY = 0x20; // RTC Day Alarm = 0x20 RTCAHOUR = 0x10; // RTC Hour Alarm RTCAMIN = 0x23; //*/ RTCCTL1 &= ~(RTCHOLD); // Start RTC // ADC12CTL0 |= ADC12SC; // Sampling and conversion start RTCCTL0_L = RTCRDYIE; // enable RTC read ready interrupt // enable RTC time event interrupt __bis_SR_register(LPM3_bits | GIE); // Enter LPM3 mode w/ interrupts } void loop() { Serial.print(14); } #pragma vector=RTC_VECTOR __interrupt void RTC_ISR(void) { // __bic_SR_register_on_exit(LPM3_bits); // Exit active CPU // Serial.println(116); s=RTCSEC ; m=RTCMIN ; h=RTCHOUR ; d=RTCDAY ; M=RTCMON ; y=RTCYEAR ; temp = ADC12MEM0; temperatureDegC = (float)(((long)temp - CALADC12_12V_30C) * (85 - 30)) / (CALADC12_12V_85C - CALADC12_12V_30C) + 30.0f; // Temperature in Fahrenheit Tf = (9/5)*Tc + 32 temperatureDegF = temperatureDegC * 9.0f / 5.0f + 32.0f; myLCD.clear(); myLCD.println(temperatureDegC); // ADC12CTL0 |= ADC12SC; RTCCTL0_L = RTCRDYIE; __bis_SR_register(LPM3_bits | GIE); } FR4133 - Temperature sensor by ADC iterrupt #include <msp430.h> #include "LCD_Launchpad.h" #define CALADC_15V_30C *((unsigned int *)0x1A1A) // Temperature Sensor Calibration-30 C // See device datasheet for TLV table memory mapping #define CALADC_15V_85C *((unsigned int *)0x1A1C) // Temperature Sensor Calibration-85 C float temp; float IntDegF; float IntDegC; LCD_LAUNCHPAD myLCD ; void setup() { // put your setup code here, to run once: myLCD.init(); // Serial.begin(9600) ; // Serial.println(12); WDTCTL = WDTPW | WDTHOLD; // Stop WDT PM5CTL0 &= ~LOCKLPM5; // Disable high-impedance mode TA0CCTL0 |= CCIE; // TACCR0 interrupt enabled TA0CCR0 = 65535; TA0CTL = TASSEL__ACLK | MC__UP; // ACLK, UP mode // Configure ADC - Pulse sample mode; ADCSC trigger ADCCTL0 |= ADCSHT_8 | ADCON; // ADC ON,temperature sample period>30us ADCCTL1 |= ADCSHP; // s/w trig, single ch/conv, MODOSC ADCCTL2 |= ADCRES; // 10-bit conversion results ADCMCTL0 |= ADCSREF_1 | ADCINCH_12; // ADC input ch A12 => temp sense ADCIE |=ADCIE0; // Enable the Interrupt request for a completed ADC_B conversion // Configure reference PMMCTL0_H = PMMPW_H; // Unlock the PMM registers PMMCTL2 |= INTREFEN | TSENSOREN; // Enable internal reference and temperature sensor __delay_cycles(400); // Delay for reference settling __bis_SR_register(LPM3_bits | GIE); // LPM3 with interrupts enabled // __no_operation(); // Only for debugger myLCD.clear(); } void loop() { // myLCD.clear(); // myLCD.print(int(IntDegC)); myLCD.println("C"); // Serial.println(IntDegC); //delay(500); } // ADC interrupt service routine #pragma vector=ADC_VECTOR __interrupt void ADC_ISR(void) { // __delay_cycles(400); temp = ADCMEM0; // Temperature in Celsius IntDegC = (temp-CALADC_15V_30C)*(85-30)/(CALADC_15V_85C-CALADC_15V_30C)+30; // Temperature in Fahrenheit IntDegF = 9*IntDegC/5+32; myLCD.clear(); myLCD.print(int(IntDegC)); myLCD.println("C"); __delay_cycles(400); } // Timer A0 interrupt service routine #pragma vector = TIMER0_A0_VECTOR __interrupt void Timer_A (void) { ADCCTL0 |= ADCENC | ADCSC; // Sampling and conversion start }
  12. Like
    energia got a reaction from ahmedmibrahim in Sleep Modes with cc1310 / cc1350   
    EMT low power unfortunately is not well documented but quite simple. How low of a power the device goes into depends on what interfaces are open and what device the Sketch runs on.
     
    The quick reference:
     
    If all Sketches are in delay() the idle loop is entered. The idle loop is a TI-RTOS task that consults the power manager and then determines what level of low power it can go to. Make sure that all unused pins are in the appropriate state according to the datasheet. Usually this is output high. Make sure that sensors that are connected are put into sleep mode if you intend to go to low power. Make sure that you call the .end() function on peripherals. e.g. Wire.end(), SPI.end(), Serial.end(), etc. This releases the constraint that the peripherals .begin() functions sets in the power manager. Use inter task communication interfaces to communicate to other tasks when low power should commence. Examples of the low power intertask communication can be found in the Energia examples under File->Examples->10.MultiTasking. Typically you would want to go for semaphore of Event. Pending on a semaphore also acts as low power mechanism. If you pend, the task stops becoming runnable and wont execute again unless the semaphore is posted. Hope this helps.
     
    I do have low power example Sketches in the pipeline but I won't be able to get to the in the next month or so.
     
    Robert
  13. Like
    energia got a reaction from aegotheles in Sleep Modes with cc1310 / cc1350   
    EMT low power unfortunately is not well documented but quite simple. How low of a power the device goes into depends on what interfaces are open and what device the Sketch runs on.
     
    The quick reference:
     
    If all Sketches are in delay() the idle loop is entered. The idle loop is a TI-RTOS task that consults the power manager and then determines what level of low power it can go to. Make sure that all unused pins are in the appropriate state according to the datasheet. Usually this is output high. Make sure that sensors that are connected are put into sleep mode if you intend to go to low power. Make sure that you call the .end() function on peripherals. e.g. Wire.end(), SPI.end(), Serial.end(), etc. This releases the constraint that the peripherals .begin() functions sets in the power manager. Use inter task communication interfaces to communicate to other tasks when low power should commence. Examples of the low power intertask communication can be found in the Energia examples under File->Examples->10.MultiTasking. Typically you would want to go for semaphore of Event. Pending on a semaphore also acts as low power mechanism. If you pend, the task stops becoming runnable and wont execute again unless the semaphore is posted. Hope this helps.
     
    I do have low power example Sketches in the pipeline but I won't be able to get to the in the next month or so.
     
    Robert
  14. Like
    energia reacted to StrangerM in FR6989 - internal RTS & Temperature sensor   
    In addition to 2 examples. Examle for FR4133.
    #include <msp430.h> #define CALADC_15V_30C *((unsigned int *)0x1A1A) // Temperature Sensor Calibration-30 C // See device datasheet for TLV table memory mapping #define CALADC_15V_85C *((unsigned int *)0x1A1C) // Temperature Sensor Calibration-85 C float temp; float IntDegF; float IntDegC; void setup() { // put your setup code here, to run once: Serial.begin(9600) ; Serial.println(12); // WDTCTL = WDTPW | WDTHOLD; // Stop WDT PM5CTL0 &= ~LOCKLPM5; // Disable high-impedance mode TA0CCTL0 |= CCIE; // TACCR0 interrupt enabled TA0CCR0 = 65535; TA0CTL = TASSEL__ACLK | MC__UP; // ACLK, UP mode // Configure ADC - Pulse sample mode; ADCSC trigger ADCCTL0 |= ADCSHT_8 | ADCON; // ADC ON,temperature sample period>30us ADCCTL1 |= ADCSHP; // s/w trig, single ch/conv, MODOSC ADCCTL2 |= ADCRES; // 10-bit conversion results ADCMCTL0 |= ADCSREF_1 | ADCINCH_12; // ADC input ch A12 => temp sense ADCIE |=ADCIE0; // Enable the Interrupt request for a completed ADC_B conversion // Configure reference PMMCTL0_H = PMMPW_H; // Unlock the PMM registers PMMCTL2 |= INTREFEN | TSENSOREN; // Enable internal reference and temperature sensor __delay_cycles(400); // Delay for reference settling // __bis_SR_register(LPM0_bits | GIE); // LPM3 with interrupts enabled // __no_operation(); // Only for debugger } void loop() { Serial.println(IntDegC); delay(500); } // ADC interrupt service routine #pragma vector=ADC_VECTOR __interrupt void ADC_ISR(void) { // __delay_cycles(400); temp = ADCMEM0; // Temperature in Celsius IntDegC = (temp-CALADC_15V_30C)*(85-30)/(CALADC_15V_85C-CALADC_15V_30C)+30; // Temperature in Fahrenheit IntDegF = 9*IntDegC/5+32; } // Timer A0 interrupt service routine #pragma vector = TIMER0_A0_VECTOR __interrupt void Timer_A (void) { ADCCTL0 |= ADCENC | ADCSC; // Sampling and conversion start } All examples were taken from MSP430Ware_3_60_00_10 and adapted for Energia
  15. Like
    energia reacted to Fmilburn in Unexplained Serial behaviour   
    Yes, of course.  When you ask for advice, always specify the compiler/version you are using as well as the LaunchPad.  Also, describe or post a photo of the circuit where it makes sense. Fully describe the problem and where possible give sufficient information for others to duplicate the problem.  There is a button below posts in 43oh where you can thank others when you get help.
     
    The following was done in Energia V17.  First, set up a source for Serial1.  I used a F5529.  TX for Serial1 is on pin 4.  Here is the code, it outputs the 255 characters  on one line and then starts over:
    void setup() { Serial1.begin(9600); } void loop() { int i; for(i=0; i<255; i++){ Serial1.write(i); delay(100); } } Second, set up a receiver, in this case a FR5969.  RX for Serial1 is on pin3 and it is attached to pin 4 (TX) on the F5529.  I am powering both LaunchPads off of the FR5969.  Be sure to place a ground wire between the two LaunchPads.

     
    Here is the code for the receiver:
    void setup() { // initialize both serial ports: Serial.begin(9600); Serial.println("Started..."); Serial1.begin(9600); } void loop() { if (Serial1.available()) { int inByte = Serial1.read(); Serial.write(inByte); } } Run and the output will look something like this....

     
  16. Like
    energia reacted to Rei Vilo in MSP-EXP432P401R Serial output on Mac   
    Just select the right serial port with the Tools > Port menu on Energia.
  17. Like
    energia reacted to StrangerM in FR6989 - internal RTS & Temperature sensor   
    Two examples. I
  18. Like
    energia reacted to Rei Vilo in HOW TO USE TIMERS ISR IN ENERGIA for msp430fr5969   
    Do you know the netiquette? No cross-posting, no capital letters, no acronym. 
     
    You may need to implement yourself. Please refer to MSP430FR5969 datasheet.
  19. Like
    energia reacted to mcafzap in SPI on cc1310   
    I was using 'SPI.end()' at the end of each read or write method/subroutine but I had noticed on the 5969 and the cc3200 that I had to re-declare the mode, speed and bit order. 
    In the case of the 1310, I initially solved the problem by re-starting the bus with SPI.begin(), but simply excluding all references to SPI.end() is better.
     
    Thank-you for your response. It just goes to show you should sleep on a problem first before posting.
  20. Like
    energia reacted to chicken in I2C - MSP430 to MSP430 problems   
    How long are the wires over which you want to do I2C?
    Are the grounds connected?
    Weaker (i.e. higher value) pull-ups will make noise issues worse.
  21. Like
    energia reacted to lalo630 in Using Energia with MSP430G2231   
    I have the MSP-EXP430G2 board and it works fine with energia.
     
    I used the instructions I found at https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/539487
     
    "I use the latest version of Energia, i.e Energia 18. If you follow this step exactly it will work as usual."

    1, copy <energia directory>\hardware\tools\DSLite\DebugServer\drivers\MSP430.dll to <energia directory>\hardware\tools\msp430\bin\
    2. edit <energia directory>\hardware\energia\msp430\boards.txt an change the 2 occurrences of rf2500 with tilib
    3. restart energia and you should be able to upload to the MSP-EXP430G2 with MSP430G2553.
     
    Your boards.txt file from step 2 should look exactly like this after you save it:
    # See: http://code.google.com/p/arduino/wiki/Platforms menu.cpu=Processor ############################################################## MSP-EXP430F5529LP.vid.0=0x2341 MSP-EXP430F5529LP.pid.0=0x0c9f MSP-EXP430F5529LP.name=MSP-EXP430F5529LP MSP-EXP430F5529LP.build.mcu=msp430f5529 MSP-EXP430F5529LP.build.f_cpu=16000000L MSP-EXP430F5529LP.build.core=msp430 MSP-EXP430F5529LP.build.variant=MSP-EXP430F5529LP MSP-EXP430F5529LP.build.board=MSP-EXP430F5529LP MSP-EXP430F5529LP.upload.tool=dslite MSP-EXP430F5529LP.upload.protocol=dslite MSP-EXP430F5529LP.upload.maximum_size=131072 MSP-EXP430F5529LP.upload.maximum_data_size=8192 #MSP-EXP430FR4133 MSP-EXP430FR4133LP.vid.0=0x2341 MSP-EXP430FR4133LP.pid.0=0x0c9f MSP-EXP430FR4133LP.name=MSP-EXP430FR4133LP MSP-EXP430FR4133LP.build.mcu=msp430fr4133 MSP-EXP430FR4133LP.build.f_cpu=8000000L MSP-EXP430FR4133LP.build.core=msp430 MSP-EXP430FR4133LP.build.variant=MSP-EXP430FR4133LP MSP-EXP430FR4133LP.build.board=MSP-EXP430FR4133LP MSP-EXP430FR4133LP.upload.tool=dslite MSP-EXP430FR4133LP.upload.protocol=dslite MSP-EXP430FR4133LP.upload.maximum_size=15360 MSP-EXP430FR4133LP.upload.maximum_data_size=2048 #MSP-EXP430FR5969 MSP-EXP430FR5969LP.vid.0=0x2341 MSP-EXP430FR5969LP.pid.0=0x0c9f MSP-EXP430FR5969LP.name=MSP-EXP430FR5969LP MSP-EXP430FR5969LP.build.mcu=msp430fr5969 MSP-EXP430FR5969LP.build.f_cpu=8000000L MSP-EXP430FR5969LP.build.core=msp430 MSP-EXP430FR5969LP.build.variant=MSP-EXP430FR5969LP MSP-EXP430FR5969LP.build.board=MSP-EXP430FR5969LP MSP-EXP430FR5969LP.upload.tool=dslite MSP-EXP430FR5969LP.upload.protocol=dslite MSP-EXP430FR5969LP.upload.maximum_size=65536 MSP-EXP430FR5969LP.upload.maximum_data_size=2048 #MSP-EXP430FR5969 MSP-EXP430FR6989LP.vid.0=0x2341 MSP-EXP430FR6989LP.pid.0=0x0c9f MSP-EXP430FR6989LP.name=MSP-EXP430FR6989LP MSP-EXP430FR6989LP.build.mcu=msp430fr6989 MSP-EXP430FR6989LP.build.f_cpu=8000000L MSP-EXP430FR6989LP.build.core=msp430 MSP-EXP430FR6989LP.build.variant=MSP-EXP430FR6989LP MSP-EXP430FR6989LP.build.board=MSP-EXP430FR6989LP MSP-EXP430FR6989LP.upload.tool=dslite MSP-EXP430FR6989LP.upload.protocol=dslite MSP-EXP430FR6989LP.upload.maximum_size=130048 MSP-EXP430FR6989LP.upload.maximum_data_size=2048 #MSP-EXP430G2553 MSP-EXP430G2553LP.vid.0=0x2341 MSP-EXP430G2553LP.pid.0=0x0c9f MSP-EXP430G2553LP.name=MSP-EXP430G2553LP MSP-EXP430G2553LP.build.mcu=msp430g2553 MSP-EXP430G2553LP.build.f_cpu=16000000L MSP-EXP430G2553LP.build.core=msp430 MSP-EXP430G2553LP.build.variant=MSP-EXP430G2553LP MSP-EXP430G2553LP.build.board=MSP-EXP430G2553LP MSP-EXP430G2553LP.upload.tool=mspdebug MSP-EXP430G2553LP.upload.protocol=tilib MSP-EXP430G2553LP.upload.maximum_size=16384 MSP-EXP430G2553LP.upload.maximum_data_size=512 #MSP-EXP430FR5739 MSP-EXP430FR5739LP.vid.0=0x2341 MSP-EXP430FR5739LP.pid.0=0x0c9f MSP-EXP430FR5739LP.name=MSP-EXP430FR5739LP MSP-EXP430FR5739LP.build.mcu=msp430fr5739 MSP-EXP430FR5739LP.build.f_cpu=16000000L MSP-EXP430FR5739LP.build.core=msp430 MSP-EXP430FR5739LP.build.variant=MSP-EXP430FR5739LP MSP-EXP430FR5739LP.build.board=MSP-EXP430FR5739LP MSP-EXP430FR5739LP.upload.tool=mspdebug MSP-EXP430FR5739LP.upload.protocol=tilib MSP-EXP430FR5739LP.upload.maximum_size=16384 MSP-EXP430FR5739LP.upload.maximum_data_size=512 T
  22. Like
    energia reacted to Rickta59 in Using Energia with MSP430G2231   
    Here is a version written with fabooh. https://github.com/RickKimball/fabooh
     

    /* * andyd273.cpp - simple fabooh msp430g2231 program to turn on a relay for 10 seconds * when the user button on the launchpad is pressed * * Created on: Feb 13th, 2017 * Author: kimballr * Pinout: * P1.3 is button on launchpad board * P1.6 is relay output (also lights led) */ #include <fabooh.h> #define SMALL_INIT4 /* don't initialize .bss and .data sections */ #include <main.h> #include <serial.h> namespace { const uint32_t BAUD_RATE=9600; typedef serial_default_t<BAUD_RATE, CPU::frequency, TX_PIN, NO_PIN> serial; serial Serial; } void setup() { PUSH2::set_mode(INPUT_PULLUP); P1_6::set_mode(OUTPUT); P1_6::low(); Serial.begin(); } void loop() { for (; { int n = 1; do (PUSH2::read()) ? --n : (n = 5000); while (n); do (PUSH2::read()) ? n = 5000 : --n; while (n); Serial << "turning on relay\r\n"; P1_6::high(); Serial << "wait 10 seconds\r\n"; delay(10000); Serial << "turning off relay\r\n"; P1_6::low(); } }   
    I've included a compiled version of this so you can just load it on the msp430g2231 launchpad.
    Use the mspdebug command to load it (Find mspdebug.exe someplace in the Energia install tree on your hard disk)
     
    C:\ mspdebug rf2500 "prog andyd273.hex"
     
    rename this file to andyd273.hex
    andyd273.txt
  23. Like
    energia reacted to ElectricNoob in Programming Help   
    I had a semicolon after my while instruction preventing the code to run as intended. Once I removed the semicolon the code ran correctly....
  24. Like
    energia got a reaction from speed07 in Problem while Interfacing CC3100BOOST with MSP432   
    You should not have to connect the USB on the boosterpack itself. Does the example Sketch File->Examples->04.Communication->ASCIITable show output in the Serial monitor. Also make sure that you have selected the right serial port and make sure that the baudrate in the Serial monitor matches the buadrate in the Sketch.
  25. Like
    energia got a reaction from ransher in msp432p401r launchpad library for using with energia   
    @@KeithB, there is no SoftwareSerial support for the MSP432. You can however use Serial1.xyz() just as you do with Serial. Serial1's TX is located on pin 4 and RX on pin3.
    Please see the pinmap posted here: http://energia.nu/pin-maps/guide_msp432p401r/
     
    Note that baudrates lower than 9600 are currently not supported for the MSP432.
×
×
  • Create New...