Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all 22021 articles
Browse latest View live

RE: MSP Gang Programmer ERROR 13: Vcc is too low programing a MSP430F6779IPZ

$
0
0

I face the same problem while programming MSP430FE4272 MCU,I programmed successfully by the MSP-FET and ofcoarse by the Guang Programmer too if I set the VCC supply to " supplied by programmer" "whole range". But when I configure the device to be supplied from "External" it shows me an error 13 VCC is too low. I measured and found that the external VCC is 3.2 volt. Any solution please?

here is the snap shot of the error


Linux/MSP-FET: Newer MSP-FET devices not working under Linux

$
0
0

Part Number:MSP-FET

Tool/software: Linux

My issue is related to This Post. It seems that newer MSP-fet devices do not work under Linux. We ordered a new MSP-fet device (Serial number begins with 17 and ends with W).

In Linux (Lubuntu 15.10), using MSP430-Flasher  v1.3.8 we get the error "Could not set device VCC" (same symptom as described in the referenced post).

Updated MSP430-Flasher to v1.3.15 and ran the msp430uif_install.sh script from the Driver folder but still receive the same error (Could not set device VCC). 

Note that the Old MSP-Fet still works in Linux with MSP430-Flasher v1.3.15.

Interestingly, I found the following under Windows

New MSP-Fet: Using MSP430-Flasher v1.3.8: receive "Could not set device VCC" error (as expected)

New MSP-Fet: Using MSP430-Flasher v1.3.15 works properly (as expected)

Old MSP-Fet: Using MSP430-Flasher v1.3.8 works properly (as expected)

Old MSP-Fet: using MSP430-Flasher v1.3.15 Prompts for firmware upgrade (did not do this in Linux). I said no for fear that doing so would prevent it from working under Linux, then received "Could not set device VCC" error.

I would like to be able to use either device under either OS, but at the very least, the new MSP-fet should work with the new MSP430-Flasher under Linux.

Thanks.

MSP430F5132: how to change output voltage to 48V

$
0
0

Part Number:MSP430F5132

Hi

I am using MSP430F5132 controller for 24V power supply.

But I need to change that to 48V power supply. For that what and all components i have to change in the schematics.

MSP432P401R: Footprint Unavailable

$
0
0

Part Number:MSP432P401R

I am making a minimum requirement board using MSP432P401R and want to use the MSP432P401RIRGCR.

However I am unable to find the footprint for the same.

MSP430F6779A: Can I able to do flash the program in to MSP430F6779A using CC1310 launchpad

$
0
0

Part Number:MSP430F6779A

Hi,

I want to flash the program in to MSP430F6779A. I already have the CC1310 launchpad with inbulid JTAG. i want know with using this launchpad JTAG is useful for flash the program in to the MSP430F6779A microcontroller.  

With Regards,

Arunraj K.

MSP430FR2311: eZ430-F2013 Debug with MSP430

$
0
0

Part Number:MSP430FR2311

Hello all,

A customer ask,

" Does the eZ430-F2013 Development tool work to program and debug an MSP430FR2311 chip over the "Spy by Wire" Interface together with CCS Studio? "

Could anyone help me with this please?

Thank you.


 

Compiler/MSP430FR5729: code get stuck in crystal do while loop

$
0
0

Part Number:MSP430FR5729

Tool/software: TI C/C++ Compiler

hello Sir,

             please help me to slove the problem, i my pcb i am using msp430fr5729 controller in that i have used 8 mhz clock and for that i had made changes in CSCTL register as shown below, my problem is that in my some pcb my code get stuck in  "do..while"  loop which is given below but in some pcb it does not stuck there and was working fine. The ratio for working out of not working is 7/10 works and 3/10 fail. i just want to what is the problem?, the same code loaded in all 10 pcb out of which in 3 it was stuck in do while loop, does there will be problem in crystal or in controller, please help me to slove this.

CSCTL0_H = 0xA5; // clock 8MHZ
CSCTL1 |= DCOFSEL0 + DCOFSEL1; // Set max. DCO setting
CSCTL2 = SELA_3 + SELS_3 + SELM_3; // set ACLK = XT1; MCLK = DCO
CSCTL3 = DIVA_0 + DIVS_0 + DIVM_0; // set all dividers
CSCTL4 |= XT1DRIVE_0;
CSCTL4 &= ~XT1OFF;

do
{
CSCTL5 &= ~XT1OFFG;
// Clear XT1 fault flag
SFRIFG1 &= ~OFIFG;
}while (SFRIFG1&OFIFG); // Test oscillator fault flag

MSP432P401R: Problem with Fuel Tank MKII Battery BoosterPack SDK example

$
0
0

Part Number:MSP432P401R

Hello! I'm using the Fuel Tank MKII Battery BoosterPack Plug-In Module with a MSP-EXP432P401R Rev. 2.1 Launchpad and the example from MSP432 Simplelink SDK 1.40.1.00 (boostxl_batpakmkii_fuelgauge_MSP_EXP432P401R_nortos_ccs).

I've noticed that when first running the example it does not read the State of Charge and Remaining Capacity (it says 0% and 0 mAh). All other parameters are read fine. These are the steps to reproduce the issue:

1. Connect battery to plug-in module;

2. Connect the plug-in module to the Launchpad;

3. Disconnect 3V3 and 5V jumpers from the Launchpad;

4. Connect the USB cable to the Launchpad;

5. Switch the battery pack on.

6. Program and run the example.

When this happens, if I stop the program and restart, then it reads OK.

Can anybody reproduce the issue? Is there a problem with my hardware or is it a software-related problem?


Compiler/MSP430F5438A: MISRA 10.1 throwing warning on ISR

$
0
0

Part Number:MSP430F5438A

Tool/software: TI C/C++ Compiler

Hello everyone,

 I am using CCSv7 and have activated the MISRA checks inside the CCS.

I have the below snippet of code which is giving me warning:

//******************************************************************************
//
//This is the USCI_A0 interrupt vector service routine.
//
//******************************************************************************
void USCI_A0_ISR(void) __attribute__((interrupt(USCI_A0_VECTOR))); //#1393-D (MISRA-C:2004 10.1/R) The value of an expression of integer type shall not be implicitly converted to a different underlying type if it is not a conversion to a wider integer type of the same signedness 


void USCI_A0_ISR(void)
{
switch(__even_in_range((uint16_t)UCA0IV,(uint16_t)4))
{
//Vector 2 - RXIFG
case 2u:
uart0Rx[uart0RxCurrSize] = USCI_A_UART_receiveData((uint16_t)USCI_A0_BASE);
break;
default: break;
}
}

Please help me understand and solve the problem.

Thanks and Regards,

Ankit

Compiler/MSP432P401R: MSP432P401R

$
0
0

Part Number:MSP432P401R

Tool/software: TI C/C++ Compiler

I have a MSP432P401R LaunchPad (version 1) and download the SimpleLink™ MSP432P401R LaunchPad™ Development Kit. However, when I tried to run the example program adcsinglechannel_MSP_EXP432P401R_tirtos_ccs in CCS v7, it does not work. When I tried to debug it, I found that after run the "BIOS_start();" in the "main_tirtos.c", "adcsinglechannel.c" did not start and the program had no more response further. Could anyone tell me why and how to solve the problem? Thanks a lot!

MSP430FR2310: Can I use the internal OP amp to amplify a external signal when the microcontroller is asleep?

$
0
0

Part Number:MSP430FR2310

I have a device that uses voltage output from a piezoelectric element to wake it up. In a prototype I built I amplified the signal using a OP-amp to generete the output needed to wake the device up. Is it possible to use the internal OPamp in this MCU for this purpose? That is, is the OP amp powered when the MSP430-device is asleep?

Thank you!

MSP430FR2532: DMX512 (RS485 with 2 StopBit, no Parity) and eUSCI serial interface

$
0
0

Part Number:MSP430FR2532

Hello,

I have some problems to configure the eUSCI with the correct settings and the right clock settings/deviders. First I think the hardware is okay. There are some bus participans wokring on Atmel processors and some bought ones. Between the RS485 IC and the MSP430 the scope shows me valid Data (analog scope, not data logger). For this reason I think I only fail with the right software settings. ;-)

I'm using IAR Embedded Workbench IDE 6.50.5.


I tried to remix some code examples: https://github.com/j-windsor/MSP430-DMX512/blob/master/main.c

The one from your example: msp430fr243x_euscia0_uart_01.c www.ti.com/.../slac700

The actual one of my try:

//#include "io430.h"
#include "msp430fr2532.h"

#define CHAN_1  BIT4            //PORT1 //OUTPUT 1 
#define CHAN_2  BIT1            //PORT1 //OUTPUT 2
#define CHAN_3  BIT5            //PORT1 //OUTPUT 3
#define CHAN_4  BIT2            //PORT1 //OUTPUT 4

#define RX      BIT5            //PORT2 //RX UART
#define TX      BIT6            //PORT2 //TX UART
#define DE      BIT7            //PORT2 //transmit enable UART
#define RE      BIT1            //PORT3 //_receive enable UART (inverted)

//DMX512/RS485 Setup
  unsigned int actChannel = 0;          //variable for actual receiving byte
  unsigned char busAddress = 0;           //DMX Adress + 1
  unsigned char rxData = 0;             //value of received byte
  //unsigned char byteReceived = 0;       //byte received yet?

int main( void )
{
  // Stop watchdog timer to prevent time out reset
  WDTCTL = WDTPW + WDTHOLD;

  P1SEL0 = 0x00;                                
  P1SEL1 = 0x00;
  P1DIR = CHAN_1 + CHAN_2 + CHAN_3 + CHAN_4; //chan1 and chan3 works
  P1OUT = 0x00;//CHAN_1 + CHAN_2 + CHAN_3 + CHAN_4;
  
  P2SEL0 = RX;
  P2SEL1 = RX;
  P2DIR = DE; //and ~RX
  P2OUT = 0x00;
  
  P3SEL0 = 0x00;
  P3SEL1 = 0x00;
  P3DIR = RE;
  P3OUT = 0x00;
  
  PM5CTL0 &= ~(LOCKLPM5);
  
  //set oscillators:
  __bis_SR_register(SCG0);                 // disable FLL
  CSCTL3 |= SELREF__REFOCLK;               // Set REFO as FLL reference source
  CSCTL0 = 0;                              // clear DCO and MOD registers
  CSCTL1 &= ~(DCORSEL_7);                  // Clear DCO frequency select bits first
  CSCTL1 |= DCORSEL_3;                     // Set DCO = 8MHz
  CSCTL2 = FLLD_0 + 243;                   // DCODIV = 8MHz
  __delay_cycles(3);
  __bic_SR_register(SCG0);                 // enable FLL
  while(CSCTL7 & (FLLUNLOCK0 | FLLUNLOCK1)); // Poll until FLL is locked

  CSCTL4 = SELMS__DCOCLKDIV | SELA__REFOCLK; // set default REFO(~32768Hz) as ACLK source, ACLK = 32768Hz
                                           // default DCODIV as MCLK and SMCLK source
  
  UCA1CTL1 |= UCSWRST; //pause for init
  UCA1CTL1 |= UCSSEL1; //small clock, no error detection, no parity
  UCA1CTL0 = UCSPB | UCMODE_1; //two low stop bits
  //UCA1CTLW0 = 
  UCA1BR0 = 32; //250kBaud => 8.000.000 / 250.000 = 32
  UCA1BR1 = 0;
  UCA1CTLW0 &= ~UCSWRST; //restart after init
  UCA1IE |= UCRXIE; //interrupt on receive
  
  _BIS_SR(GIE); //interrupt enable
    
  while(1)
  {
    if(UCA1STATW & UCBRK)
    {
      actChannel = 0; //reset channel counter
    }
    /*P1OUT = CHAN_1 + CHAN_2 + CHAN_3 + CHAN_4;
    for(int i=0; i< 30000; i++); 
    P1OUT = 0x00;
    for(int i=0; i< 30000; i++); */
  }
}


#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCI_A1_VECTOR
__interrupt void USCI_A1_ISR(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(USCI_A1_VECTOR))) USCI_A1_ISR (void)
#else
#error Compiler not supported!
#endif
{
switch(__even_in_range(UCA1IV,USCI_UART_UCTXCPTIFG))
  {
  case 0x02: //receive
    rxData = UCA1RXBUF;
    //byteReceived = 1;
    if(actChannel == 2){
      if(rxData > 127)
      {
        P1OUT |= CHAN_1;
      }
      else
      {
        P1OUT &= ~CHAN_1;
      }
    }
    actChannel++; //increment channel
    break;
  default: break;
  }
  UCA1IFG &= ~UCTXIFG; //clear flag
}

I am a little bit confused with all the settings of the eUSCI. On page 575 of the Family/Users Guide there are some correction/modulation patterns. I just thought I can set the Clock to 8MHz and devide it down to 250 kBaud. The datasheet makes differences on page 576, if you will need  a devider of more or less than 16. The example in slac700 is only for 9600 Baud and need all the corrections, right?

I would be very pleased if anyone has additional information or hints for me! :) I hope I pasted all important information.

Yours, Carsten

CCS/MSP430G2855: MSP430G2855 doesn't work

$
0
0

Part Number:MSP430G2855

Tool/software: Code Composer Studio

Hello,

I've bought a MSP430G2855 microcontroller and I will program it with the launch pad (MSP-EXP430G2) and Code Composer Studio (V 7.2.0). But when I compile and run the program, Code Composer shows the error message:

"Error connecting to the target: Could not find device (or device not supported)"

Under "project --> properties" the correct controller is selected. I have connected the pins DVCC, DVSS, AVCC, AVSS, TEST and RESET between the mc and the launch pad and the slot of the launch pad ist empty.

Is it even possible to program this microcontroller with the launch pad "MSP-EXP430G2"? On the ti-webseite of the microcontroller, this launch pad is listed under "tools & software", but in the manual of the launch pad the controller MSP430G2855 isn't listed under "supported devices". The othere comtrollers (for example "MSP430G2553") works fine with this configuration.

Where is my mistake?

Cheers
Marcel

MSP430F5529: Communication between two MSP430F5529 Launch pads using USB_CDC_API

$
0
0

Part Number:MSP430F5529

I would like two EXP430F5529LP launchpads to communicate with each other. I am trying to use the CDC (Virtual COM port) examples from the USB Developer's package. I have loaded the C0_Simple send in one Launch pad and C1_LEDOnOff example in the two launchpads. I tried Debugging the launchpad which contains C1_LEDONOff example. It seems like the data is not recieved. (I know as the program is not going into " if (bCDCDataReceived_event)" condition). I have connected P3.4 to P'3.3 and P3.3 to P'3.4 (Tx to Rx and Rx to Tx UART GPIOs).


My question is whether two MSP430 could communicate using CDC_APIs? If yes, what am I doing wrong? How is C1_LEDOnOff example recieving data? I see USBCDC_receiveDataInBuffer subroutine being used to recieve data but it is mentioned that the

/* This call only retrieves data that is already waiting in the USB buffer -- that is, data that has already been received by the MCU.

I dont see the function  USBCDC_receiveData() being used.

Thank you in advance.

MSP432P401R: FaultISR() How to know what causes it?

$
0
0

Part Number:MSP432P401R

Hello community,

simple question, My program is trapped at Fault ISR,

How to figure out from where, or what was the reason of it?

Thanks


MSP432-DEBUGGERS: Looking for Debugger that ACTUALLY works at 1.8V VCC

$
0
0

Part Number:MSP432-DEBUGGERS

I need to debug the MSP432 that operating at 1.8V VCC.
Tried the MSP-FET and the XDS110  Debug Probes. They claim that they work at 1.8V VCC but it turns out they don't...

Is anyone here familiar with any alternatives?

MCU to read 19 or 20 analog inputs

$
0
0

Hi all,

I'm looking for a MCU which can read 19 or 20 analog inputs in the same time, any suggestions? I have MSP430FR6989 but it only can read 9 inputs!

Thanks

CCS/MSP430FR5969: communication with mpu9250 using I2c

$
0
0

Part Number:MSP430FR5969

Tool/software: Code Composer Studio

I want to implement i2c for communicating with mpu9250 Accl sensor for MSP430FR5969 Evaluation kit.Where can i can general examples of I2C for MSP430FR5969

RTOS/MSP-EXP430FR5994: TI-RTOS configuration to slow down TA0

$
0
0

Part Number:MSP-EXP430FR5994

Tool/software:TI-RTOS

I have been using the simple TI-RTOS example project under Code Composer Studio version 7.2 to do some low-power mode testing.  I disconnected the jumper for LED0 and setup the TI-RTOS configuration for dynamic idling and to idle in LPM3.  EnergyTrace told me the board was drawing 174 uW of power in LPM3 (52.7 uA at 3.3V).  I knew there was another demo that did not use TI-RTOS that had much lower power consumption in LPM3.  I copied the clock settings from that demo, which is shown below:

    PJSEL0 = BIT4 | BIT5;               // For XT1

    // Clock System Setup
    CSCTL0_H = CSKEY_H;                 // Unlock CS registers
    CSCTL1 = DCOFSEL_0;                 // Set DCO to 1MHz
    CSCTL2 = SELA__LFXTCLK | SELS__DCOCLK | SELM__DCOCLK;
    CSCTL3 = DIVA__1 | DIVS__1 | DIVM__1; // Set all dividers
    CSCTL4 &= ~LFXTOFF;

    // Configure LED pin for output
    P1DIR |= BIT0;

    // Disable the GPIO power-on default high-impedance mode to activate
    // previously configured port settings. The oscillator should now start...
    PM5CTL0 &= ~LOCKLPM5;

    do {
        CSCTL5 &= ~LFXTOFFG;            // Clear XT1 fault flag
        SFRIFG1 &= ~OFIFG;
    } while (SFRIFG1 & OFIFG);          // Test oscillator fault flag


After making this change, the power consumption dropped to 8.9 uW in LPM3 (2.7uA at 3.3V).  I believe TA0 is running at a very high clock rate by default and is consuming a lot of power in the low power modes.  Is there a TI-BIOS configuration option to slow down the TA0 clock?  I tried setting Clock.tickPeriod to 100000 but that did not seem to have an effect on power consumption.

CCS/MSP432P401R: Disable resetISR Breakpoint when debugging

$
0
0

Part Number:MSP432P401R

Tool/software: Code Composer Studio

I am debugging my code, and need to what happens when my MPU resets after tripping the WDT. However, every time the WDT trips, the code enters the resetISR function, and hits an invisible breakpoint. How do I get my code to hit the resetISR and just reset without stopping?

Viewing all 22021 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>