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

MSP430F5529: JTAG SBW Support

$
0
0

Part Number:MSP430F5529

A question is coming up related to our primary microcontroller from TI:  MSP430F5529IPNR

 

http://www.ti.com/product/MSP430F5529/technicaldocuments?HQS=TI-null-null-digikeymode-df-pf-null-wwe&DCM=yes

 

We need a design reference / evaluation board which depicts the implementation of a 2-wire JTAG SBW port to this chipset.  Do you have a point of contact at TI which can point us in the right direction?  We have a level of caution in this implementation due to problems in the past connecting to these type of devices…we know the lines are very sensitive and are very concerned with the implementation.

 

Secondly, do you have recommendations on a specific development tool/programmer for this chipset?  This device appears to be the one but we need confirmation:  http://www.ti.com/tool/msp-fet#0


EVM430-FR6047: end of signal noise removal

$
0
0

Part Number:EVM430-FR6047

Hi,

As you can see in the image below there is some noise after the clean signal (due to ultrasonic vibrations/ringing in pipe).

Will the ussSwlib.h take into account the signal shown in the red circle for dTOF calculations? If so, should it be filtered away by cutting the end of the signal by reducing the ADC sampling size? 

Thanks in advance!

Best regards,
Thibault

MSP432E401Y: SimpleLink Ethernet LaunchPad UART returns garbage...

$
0
0

Part Number:MSP432E401Y

Hi, I am using the simplelink_msp432e4_sdk_2_20_00_20 with the ACController API. I am trying to communicate over UART. I am able to write to the registers of a device and have verified the specific register is getting set correctly. The issue is when I send a read command I get back 2 bytes of data that appear to be garbage. No matter what the read command I continue to get back 2 bytes only of bad data. My settings seem to be fine for the write portion of the UART. What is it that I might have incorrect on the read side? What else could be wrong? Below are the settings as set in UART_Interface.c in the AlgCSM_DRV firmware.

g_uartParams[unit].writeDataMode = UART_DATA_BINARY;
g_uartParams[unit].readDataMode = UART_DATA_BINARY;
g_uartParams[unit].readReturnMode = UART_RETURN_FULL;
g_uartParams[unit].readEcho = UART_ECHO_OFF;

MSP430G2553: Watchdog Use Example

$
0
0

Part Number:MSP430G2553

Hi everyone!

I've never used a watchdog on an MSP430 and I'm looking for a simple example of using watchdog registers.

I'm programming on IAR Embedded IDE.

Thanks for your help!

Best regards!

RTOS/MSP430F5659: How task delete and task exit function are called

$
0
0

Part Number:MSP430F5659

Tool/software: TI-RTOS

Need to know whether any example available for using Task delete, semaphore delete and Task exit functions?

MSP-FET: MSP430Flasher + MSP-FET - STILL no macOS 10.14 Mojave update - TI, please help.

$
0
0

Part Number:MSP-FET

Hello,

This is a "related" question to the thread "MSP-EXP430FR5994: macOS 10.14 Mojave — Upload to MSP430FR5994 ezFET Fails". Since that thread is marked "TI Thinks Resolved" (it is not really) and there is still an issue unresolved since November, I thought I would raise it here.

While CCS now does support macOS Mojave's revised USB port naming (my term) when detecting the MSP-FET, the MSP430Flasher is still stuck at version 1_03_18_00 which does not. I believe UniFlash is also non-functional on Mojave.

If anyone at TI--perhaps in their tools department--is reading this, or if you know someone there, please ask about MSP430Flasher support. It is really causing problems for at least this user. Given that CCS, and by extension the debug stack, seems to include a fix then why not MSP430Flasher?

Regards,

Bill.

MSP430I2041: Value decoding in Single phase Energy Meter

$
0
0

Part Number:MSP430I2041

Dear Sir,

We are using MSP430I2040 for the energy measurement.
The Energy measurement in debug windiw is 706164 and the same energy information is transferred to another device via UART...

For the energy value mentioned above the UART message is as follows :
packet->payload[4] = actEnergy[0] = 0xE3;
packet->payload[5] = actEnergy[1] = 0x83;
packet->payload[6] = actEnergy[2] = 0x02;
packet->payload[7] = actEnergy[3] = 0x00;
packet->payload[8] = actEnergy[4] = 0x00;
packet->payload[9] = actEnergy[5] = 0x00;
packet->payload[10] = actEnergy[6]= 0x00;
packet->payload[11] = actEnergy[7] =0x00;

For the Hex conversion of 706164 is ox000AC674. Let me know if any mistake in my understading.

Thanks and Regards,

Fakruddin Mulla

CCS/MSP432P401R: MSP432P401R interface OLED SSD1306 SPI problem

$
0
0

Part Number:MSP432P401R

Tool/software: Code Composer Studio

Hello Fellows, 

I have facing some problems... I need to interface a MSP432P401R micro controller with a OLED SSD1306 Display, trougth SPI communication, but when initialize the "init_Lcd" function, all program stop.

const char init_cmd_array[25]={0xAE,          // DISPLAY OFF
                             0xD5,          // SET OSC FREQUENY
                             0x80,          // divide ratio = 1 (bit 3-0), OSC (bit 7-4)
                             0xA8,          // SET MUX RATIO
                             0x3F,          // 64MUX
                             0xD3,          // SET DISPLAY OFFSET
                             0x00,          // offset = 0
                             0x40,          // set display start line, start line = 0
                             0x8D,          // ENABLE CHARGE PUMP REGULATOR
                             0x14,          //
                             0x20,          // SET MEMORY ADDRESSING MODE
                             0x02,          // horizontal addressing mode
                             0xA1,          // set segment re-map, column address 127 is mapped to SEG0
                             0xC8,          // set COM/Output scan direction, remapped mode (COM[N-1] to COM0)
                             0xDA,          // SET COM PINS HARDWARE CONFIGURATION
                             0x12,          // alternative COM pin configuration
                             0x81,          // SET CONTRAST CONTROL
                             0xCF,          //
                             0xD9,          // SET PRE CHARGE PERIOD
                             0xF1,          //
                             0xDB,          // SET V_COMH DESELECT LEVEL
                             0x40,          //
                             0xA4,          // DISABLE ENTIRE DISPLAY ON
                             0xA6,          // NORMAL MODE (A7 for inverse display)
                             0xAF};         // DISPLAY ON

void init_LCD(void){
    int byte = sizeof(init_cmd_array);
    P2->OUT|= OLED_RS;

    while(byte){

        set_instruction(0,init_cmd_array[sizeof(init_cmd_array)-byte]);
        printf("4b-Byte %d, 0x%X\n",byte, init_cmd_array[sizeof(init_cmd_array)-byte]);
        byte--;
    }
     //display RAM is undefined after reset, clean dat ***
    fill_display(SCREEN_WIDTH ,SCREEN_HEIGHT,0x00);
 
}

void init_Ports(void){

    P2->DIR |= OLED_DC|OLED_RS;
    P5->DIR |= OLED_CS;
    P2->OUT &= ~(OLED_DC | OLED_RS);                  // chip select HIGH
    P5->OUT |= OLED_CS;                  // chip select HIGH
    P2->OUT |= OLED_RS;
}

main.c

    void main(void){
    WatchDogHold();
    clockSystem();

    P1->DIR |= BIT0;
    P1->OUT |= BIT0;

    init_Ports();
    init_EUSCI();
    init_LCD();

        while(1)
        {
          //code...
        }
}


CCS/MSP430FR5994: Entering main() twice?

$
0
0

Part Number:MSP430FR5994

Tool/software: Code Composer Studio

Hello everyone,

I am using a MSP430FR5994 LaunchPad and I am having trouble with the code below. When flashed, it appears that main() is entered twice but only once when the code is loaded in debug. the char array is defined as const char Message_String[] ={ " Hello World " }; The init_xxx are clipped and pasted from the launchpad's example code. Below the code are two images, the first taken from the CCS debug perspective (single " hello world ") and the second taken from CCS editor perspective (the editor perspective shows the double "hello world". I am using the BCL to communicate with the terminal window in the perspectives. 

Any suggestions are welcomed. 

/*
 * main.c
 */
int main(void) {
   // Board initializations
     Init_GPIO();
     Init_Clock();
     Init_UART(); //Using BCL uart
     GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P2, GPIO_PIN1, GPIO_SECONDARY_MODULE_FUNCTION);
     GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P2, GPIO_PIN0, GPIO_SECONDARY_MODULE_FUNCTION);
     EUSCI_A_UART_enableInterrupt(EUSCI_A0_BASE,EUSCI_A_UART_RECEIVE_INTERRUPT);
     i= 0;
     while (i<sizeof(Message_String)){
     UCA0TXBUF = Message_String[i++];
     while (UCA0STATW  &&  ~UCTXIFG); //wait for next Tx character interrupt
     }
     i=0;
while(1){};
/*

CCS/MSP430FR2633: CAPT_appHandler():How can I reduce this time?

$
0
0

Part Number:MSP430FR2633

Tool/software: Code Composer Studio

Hello.

CAPT_appHandle() takes about 44ms to execute.

How can I reduce this time?

Using Sensor:

ButtonGroup Sensor x12

Proximity Sensor x1

Regards,

Rei

MSP432E401Y: Error: The value is '-233' (0xffffff17). The title is 'SC_ERR_PATH_BROKEN'.

$
0
0

Part Number:MSP432E401Y

When using ccs8, and the MSP432e401y debugger to test the JTAG on a custom, un configured board with the same model number MSP432 MCU, i get the error code above.

I found a thread for a similar error code on an unrelated DSP chip, indicating that it was fixed by replacing the Chips. Are there any other options which might cause this issue?

MSP430FR6989: Need read and write example code for FRAM on the msp device for energia.

Compiler/MSP430FR2522: How to reduce the start time (CAPT_calibrateUI(&g_uiApp))

CCS/MSP430G2553: MSP430G2553

$
0
0

Part Number:MSP430G2553

Tool/software: Code Composer Studio

Hi implemeting i2c communication between master and slave (Master will be transmitting and slave will be receiving)...Master part works fine but slave is not at all raecieving.Enclsoed the slave part code here..Some one please pointout the mistake.

Any help will be highly helpful.

#ifdef MASTER
//----------------------------------------------------------------------------
// I2C Initialization (function only for MASTER)
//----------------------------------------------------------------------------
void Init_I2C(void)
{
P1SEL |= SCL + SDA; //Assign I2C pins to USCI_B0
P1SEL2|= SCL + SDA; //Assign I2C pins to USCI_B0

UCB0CTL1 |= UCSWRST; //Enable SW reset
//----------------------------------------------------------------------------
UCB0CTL0 = UCMST + UCMODE_3 + UCSYNC; //Single Master-Env, Master, I2C mode, synchronous mode
//----------------------------------------------------------------------------
UCB0CTL1 = UCSSEL_2 + UCSWRST; //Use SMCLK, keep SW reset
UCB0BR0 = 12; //fSCL = SMCLK/12 = ~100kHz
UCB0BR1 = 0;
//----------------------------------------------------------------------------
UCB0I2CSA = SLAVE_ADDR; //Slave Address
//----------------------------------------------------------------------------
UCB0CTL1 |= UCTR; //I2C (as transmitter initially)
//----------------------------------------------------------------------------
IFG2 &= ~(UCB0TXIFG + UCB0RXIFG); //Clear TX and RX interrupt flags
IE2 |= UCB0TXIE + UCB0RXIE; //Enable TX and RX interrupts
//----------------------------------------------------------------------------
UCB0CTL1 &= ~UCSWRST; //I2C Clear SW reset, resume operation
}
//----------------------------------------------------------------------------
#endif

#ifdef SLAVE
//----------------------------------------------------------------------------
// I2C Initialization (function only for SLAVE)
//----------------------------------------------------------------------------
void Init_I2C(void)
{
P1SEL |= SCL + SDA; //Assign I2C pins to USCI_B0
P1SEL2|= SCL + SDA; //Assign I2C pins to USCI_B0

UCB0CTL1 |= UCSWRST; //Enable SW reset
//----------------------------------------------------------------------------
UCB0CTL0 = UCMODE_3 + UCSYNC; //Slave, I2C mode, synchronous mode
//----------------------------------------------------------------------------
UCB0I2COA = SLAVE_ADDR; //Own Address
//----------------------------------------------------------------------------
UCB0CTL1 &= ~UCTR; //I2C (as receiver initially)
//----------------------------------------------------------------------------
IFG2 &= ~(UCB0TXIFG + UCB0RXIFG); //Clear TX and RX interrupt flags
//UCB0I2CIE |= UCSTPIE + UCSTTIE; // Enable STT and STP interrupt
IE2 &= ~UCB0TXIE; //Disable TX interrupt
IE2 |= UCB0RXIE; //Enable RX interrupt
//----------------------------------------------------------------------------
UCB0CTL1 &= ~UCSWRST; //I2C Clear SW reset, resume operation
}
#endif
//----------------------------------------------------------------------------

//----------------------------------------------------------------------------
// I2C Transmit the Byte Master (function only for MASTER)
//----------------------------------------------------------------------------
#ifdef MASTER
void Master_Tx(void)
{
while(UCB0STAT & UCBBUSY); //BUS busy

UCB0CTL1 |= UCTR; //I2C TX
UCB0CTL1 |= UCTXSTT; //I2C start condition

}
//----------------------------------------------------------------------------
#endif

#ifdef MASTER
void Master_Rx(void)
{
while(UCB0STAT & UCBBUSY); //BUS busy

UCB0CTL1 &= ~UCTR ; //I2C RX
UCB0CTL1 |= UCTXSTT; //I2C start condition

}
//----------------------------------------------------------------------------
#endif

#ifdef MASTER
//----------------------------------------------------------------------------
// I2C Transmit-Interrupt service routine (function only for MASTER)
//----------------------------------------------------------------------------
#pragma vector = USCIAB0TX_VECTOR
__interrupt void USCIAB0TX_ISR(void)
{
if (IFG2 & UCB0TXIFG)
{
while (UCB0CTL1 & UCTXSTT); //Start condition sent?

serialPrintln("sending..");

// writing to the buffer
UCB0TXBUF = TXData; //Send TX data

UCB0CTL1 |= UCTXSTP; //I2C stop condition
IFG2 &= ~UCB0TXIFG; //Clear USCI_B0 TX int flag
}

if (IFG2 & UCB0RXIFG)
{
while (UCB0CTL1 & UCTXSTT); //Start condition sent?

serialPrintln("receiving..");

// reading from the buffer
RXData = UCB0RXBUF; //Get RX data

UCB0CTL1 |= UCTXSTP; //I2C stop condition
IFG2 &= ~UCB0RXIFG; //Clear USCI_B0 RX int flag
}
}
//----------------------------------------------------------------------------
#endif

#ifdef SLAVE
//----------------------------------------------------------------------------
// I2C Transmit-Interrupt service routine (function only for SLAVE)
//----------------------------------------------------------------------------
#pragma vector = USCIAB0TX_VECTOR
__interrupt void USCIAB0TX_ISR(void)
{
serialPrintln("ISR..");

if (IFG2 & UCB0TXIFG)
{
serialPrintln("sending..");

// writing to the buffer
UCB0TXBUF = TXData; //Send TX data

}

if (IFG2 & UCB0RXIFG)
{
serialPrintln("receiving..");

// reading from the buffer
RXData = UCB0RXBUF; //Get RX data

serialPrintln(RXData);

}

}
#endif

#endif /* COMM_H_ */

Thanks

MSP-EXP430FR2433: How to Code in Register Level

$
0
0

Part Number:MSP-EXP430FR2433

Hi,

     I'm getting started to code MSP-EXP430FR2433 in register level, But I couldn't found the register level description datasheet. Please anyone guide me how to get started in register level and share some resources. 

Thanks & Regards,

Vijay Rakesh. 


MSP430-FLASHER: MSP430-FLASHER

$
0
0

Part Number:MSP430-FLASHER

Sir;

I am using MSP430FR6989 development board and I need to flash a source code to MSP430FR4133 chip. But MSP430 Flasher is not responding with its any of the options.

Do I need any extra hardware for flashing?

Can I flash my code with MSP430FR6989 development board?

and why MSP430 Flasher is not responding?

any help is greatly appreciated

regards;

AGS 

TMDSEMU110-U: How to use this driver in CCF uniflash to debug TMS320F28377D controller

$
0
0

Part Number:TMDSEMU110-U

Recently we bought TMDSEMU110-U to debug TMS320F28377DZWT DSP. But we dont have driver to debug the same using CCF uniflash.

Can anyone help me to find the driver for debugging this DSP using cc uniflash.

Image of usb device showing in device manager while connecting specified part no:TMDSEMU110-U attcahed

MSP430FR2522: MSP430FR2522

$
0
0

Part Number:MSP430FR2522

Hello sir,We are working on captivate single touch keypad.I don't have awareness of msp controller.could you please provide any related documents,libraries for keypad configuration using serial communication(I2C,UART).

MSP430FR6989: Errata CPU47 (An unexpected Vacant Memory Access Flag (VMAIFG) can be triggered)

$
0
0

Part Number:MSP430FR6989

Hi there,

I have a problem with understanding the point of this errata. Can you give an example when this issue takes place?

Regards

Christian

Compiler/MSP430F5529: How to debugger in MSP430F5529

$
0
0

Part Number:MSP430F5529

Tool/software: TI C/C++ Compiler

hello, I am noob in msp430F5529
Today i want to use MSP-FET to debugger

But i don't know how to set , and i watch video on TI officail .

And  i still don't know how  to use debugger.

I hope i can see adc value, but i don't know how to watch varible real time at ccs

and i just test a normal  for write an loop to test ;

such i, but i still not change.

please look at video ;

(Please visit the site to view this file)

Viewing all 22733 articles
Browse latest View live


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