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

RTOS/MSP432E401Y: How to configure a USB port on my device so it looks like a COM port to a PC.

$
0
0

Part Number:MSP432E401Y

Tool/software: TI-RTOS

Hello World,

I want to configure a USB port on my card so that it looks like a serial device (COM) when attached to a PC.

I think FW needs to configure that port and then get/set bytes from it with an interrupt driven driver.

So far I have been unsuccessful in locating documentation or examples that illustrate how to achieve this.

Ideas/pointers anyone?

Thanks,

Tom


CCS/MSP430G2553: MSP-FET Corrupted Firmware

$
0
0

Part Number:MSP430G2553

Tool/software: Code Composer Studio

The firmware on my MSP-FET appears to be corrupted, and I am not sure how to fix this problem so that I can use the tool.
I am using MSP-FET Flash Emulation Tool to program my MSP430G2553 (On Ubuntu system). Upon loading MSPFlasher with command MSPFlasher -n MSP430G2553, the software prompted me to do a firmware update. I said yes, but accidentally aborted the update before it was complete. Now when entering the same command (MSPFlasher -n MSP430G2553), I get the following: 

* Evaluating triggers...done
* Checking for available FET debuggers:
* Corrupted USB FET firmware detected. Starting recovery.
# Exit: 49
# ERROR: MSP-FET / eZ-FET recovery failed

Likewise, when trying to enter debug mode in CCS, I get the following: 

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.

After attempting the recovery option: 

MSP430: Error: MSP-FET / eZ-FET recovery failed

MSP430F5529: MSP430: Error initializing emulator: No USB FET was found

$
0
0

Part Number:MSP430F5529

Upon connection MSP430 shows as drive F no verification occurs.
The only file that shows is the Read me file which mentions a Demo Applications which does not show.
From Users Guide  [Page 6]  I should see
Button1.txt  Button2.txt MSP430 USB LaunchPad.url
I only see README.txt
System setting shows  MSC and HID devices, but the device could not be contacted.
Using  Energia: 1.6.10E18 (Windows 10), Board: "MSP-EXP430F5529LP" I attempted to run a program.
 After a series of diagnostic messages the botton line was
error: MSP430: Error initializing emulator: No USB FET was found

I suspect that the software was not properly loaded.

MSP430FR2311: LaunchPAD

$
0
0

Part Number:MSP430FR2311

HI Mr./Miss

I have a question for Driver IC (TS5A21366RSER),

May i know what function is it?  i have designed a schematic for MSP430FR2311_Launchpad.

but i got some issue that i can use FET_MSP(software) to program IC(MSP430F5528), but i can't program with CCS & Debug (software).

(CCS) The error message : MSP430: Error initializing emulator: Could not set device Vcc.

FET MSP : can't use JTAG(NG), SPY-bi_wire(OK)

Could you please help me? Thank you.

MSP-EXP430G2: msp430g2553 / 552

CCS/MSP430FR5738: Connecting the FR5738 via eZ-FET Rev 1.2 from the MSP-EXP430FR4133

$
0
0

Part Number:MSP430FR5738

Tool/software: Code Composer Studio

Hi,

i've got the MSP-EXP430FR4133 Launchpad and want to connect the MSP430FR5738 on a separate PCB via 2-wire JTAG with the eZ-FET Rev 1.2.

The problem is within CCS, while debugging CCS wants to update the firmware bur doesn't do it properly.

I've got connected the 3V3 and GND from the eZ-FET to 3V3 and GND on the JTAG.

The SBWTDIO is connected to !RESET and SBWTCK is connected to TEST.

Test is connected via 10k pulldown-resistor to GND, Reset is connected with a 10k pullup-resistor to 3V3 and a 10nF capacitor to GND.

Do I have to change something else on CCS, additionally to the µC type?

Is this the right connection from eZ-Fet to the FR5738?

MSP430 open core synthesis

$
0
0

I would like to use openMSP430 for a commercial project and sell the device. Do I need a license from TI or does TI have any business / legal  restrictions on this.

Rajan

ECCN Number for IC QUAD 2-INPUT/GATE SN74AC32D

$
0
0

I need the ECCN for IC QUAD 2-INPUT/GATE SN74AC32D


MSP430FR5739: question about ACLK "MSP430FR57xx_LPM3_02.c"

$
0
0

Part Number:MSP430FR5739

Hi,

I am currently testing the code "MSP430FR57xx_LPM3_02.c". I will attach the code at the end.

I would like to ask following :

Q1. How does setting "WDTIS_5" for WDTCTL equivalent for 1s interrupt.(line 73)?

I understand that WDTIS_5 means "101b = Watchdog clock source / 2^13 (250 ms at 32.768 kHz)", but how does it translate to 1sec? Some basic calculation to guide me would really be appreciated.

Q2. Lets say, I would like to make 1.5s or 2.3 sec interrupt, for example, can i achieve from changing WDTIS bit?

Q3. I have observe the wave form and found that, it is 50% duty cycle right? Can i control % of duty cycle using the same code?

Really appreciate your kind help.

Regards,

LB

/* --COPYRIGHT--,BSD_EX
 * Copyright (c) 2012, Texas Instruments Incorporated
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * *  Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * *  Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * *  Neither the name of Texas Instruments Incorporated nor the names of
 *    its contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 *******************************************************************************
 * 
 *                       MSP430 CODE EXAMPLE DISCLAIMER
 *
 * MSP430 code examples are self-contained low-level programs that typically
 * demonstrate a single peripheral function or device feature in a highly
 * concise manner. For this the code may rely on the device's power-on default
 * register values and settings such as the clock configuration and care must
 * be taken when combining code from several examples to avoid potential side
 * effects. Also see www.ti.com/grace for a GUI- and www.ti.com/msp430ware
 * for an API functional library-approach to peripheral configuration.
 *
 * --/COPYRIGHT--*/
//******************************************************************************
//   MSP430FR57xx Demo - Enters LPM3 with ACLK = VLO "MSP430FR57xx_LPM3_02.c"
//
//   Description: Configure ACLK = VLO and enters LPM3. 
//   Note: On the FET board P1.0 drives an LED that can show high power numbers 
//   when turned ON. Measure current with LED jumper JP3 disconnected.
//   LED jumper disconnected.
//   ACLK = VLO, MCLK = SMCLK = 4MHz
// 
//           MSP430FR57x
//         ---------------
//     /|\|               |
//      | |               |
//      --|RST            |
//        |               |
//        |               |  
//        |          P1.0 |---> Disconnect JP3 for power meas.
//
//   Priya Thanigai
//   Texas Instruments Inc.
//   August 2010
//   Built with IAR Embedded Workbench Version: 5.10 & Code Composer Studio V4.0
//******************************************************************************

#include <msp430.h>

int main(void)
{
  WDTCTL = WDTPW + WDTTMSEL + WDTSSEL_1 + WDTIS_5; // ACLK, ~1s interrupts
  SFRIE1 |= WDTIE;                          // Enable WDT interrupt
 
  P1DIR = 0; 
  P1OUT = 0; 
  P1REN = 0xFF;
  
  P2DIR = 0; 
  P2OUT = 0; 
  P2REN = 0xFF;
  
  P3DIR = 0; 
  P3OUT = 0; 
  P3REN = 0xFF;
  
  P4DIR = 0; 
  P4OUT = 0; 
  P4REN = 0xFF;
  
  CSCTL0_H = 0xA5;
  CSCTL1 |= DCOFSEL0 + DCOFSEL1;             // Set max. DCO setting
  CSCTL2 = SELA_1 + SELS_3 + SELM_3;        // set ACLK = VLO; MCLK = DCO
  CSCTL3 = DIVA_0 + DIVS_1 + DIVM_1;        // set all dividers 
  
  CSCTL4 = XT1OFF + XT2OFF;
  CSCTL5 &= ~(XT1OFFG + XT2OFFG);
  
  PJDIR = 0;
  PJOUT = 0;
  PJREN = 0xFF;
  
  REFCTL0 |= REFTCOFF; //TEMP sensor off...zt
  REFCTL0 &= ~REFON;    //Disable reference...zt

  // Turn on LED 
  P1DIR |= BIT0;
  __bis_SR_register(LPM3_bits+GIE);
  
}


// Watchdog Timer interrupt service routine
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=WDT_VECTOR //implementation-dependent features..zt
__interrupt void WDT_ISR(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(WDT_VECTOR))) WDT_ISR (void)
#else
#error Compiler not supported!
#endif
{
  P1OUT ^= 0x01;                            // Toggle P1.0 (LED)
}

RTOS/MSP432E401Y: TCPECHO program issue

$
0
0

Part Number:MSP432E401Y

Tool/software: TI-RTOS

Hi,

I am running 'tcpecho' program in mps432e401y launchpad.

Though echo is happening, it is not lasting. After some time it is not echoing the data.Can any tell me why it is happening?.

(I have connected launchpad to PC)

Thank you

Regards

Kalyan.

CCS/MSP-EXP430F5529LP: SPIUSCIBDMA Ti-rtos interrupt does not work

$
0
0

Part Number:MSP-EXP430F5529LP

Tool/software: Code Composer Studio

HELLO! To work with the AD7980BRMZ, the SPI.h library is used, along with the SPIUSCIBDMA.c library, and everything runs on Ti-Rtos.
After starting the system

/ * Start BIOS * /
BIOS_start ();

the system goes to file

HwiFuncs.c

to interrupt processing 50

#pragma vector = 50;
#endif
__interrupt Void ti_sysbios_family_msp430_Hwi50 (Void)

and hangs there forever!!!

Question: What else should I initialize in the program for work? Thank you!

TMDSEMU110-U: XDS110 Debuyg Probe mechanical caracteristics

$
0
0

Part Number:TMDSEMU110-U

Hello,

In order to design tools to interface the XDS 110 debug probe to my device (equiped with a CC1352), I need to know the mechanical characteristics of the probe.

Can you provide any information such dwg files ? I mainly need Debug and Aux connectors spacing.

Best regards,

Clement

EZ430-CHRONOS: Peripherals

$
0
0

Part Number:EZ430-CHRONOS

Hello All,

eZ430-Chronos-915

Can this watch read and/or act as an RFID tag (does the frequency of the in built radio accommodate if not are there any parts that would allow it) also would the software with a number of code hours?  

MSP430G2553: Programming MSP430G2553 in circuit using the LaunchPad Evaluation board

$
0
0

Part Number:MSP430G2553

I have designed a PCB incorporating an MSP430G2553 processor.

I included a header with TEST/RST/VCC/GND for the programming interface.

Can I use the MXP-EXP430G2 Launch Pad to program the devices on my PCBA?

I thought I could, but I'm not finding any specific information on how to do this.

Do I just remove the jumpers on J3 and connect TEST/RST/GND/VCC to my board?

This is really a naive question, but I need to program actual devices in circuit very soon.

Thanks,

Jeff Jensen

MSP432E401Y: SPI Flash nor and TI/RTOS filesystem support

$
0
0

Part Number:MSP432E401Y

Hello

I have a custom board with a TM4C129XNCZAD and a MX66L51235F and we would like to put a filesystem onto it.

I found a thread that solves this issue for a MSP432E401Y, but the TM4C129XNCZAD doesn't have the same support as the MSP432.

Is there a way I can put a filesystem on the NOR flash with the TM4C129?

Is it safe to replace the TM4C129XNCZAD by the MSP432E411Y on my custom board? In other words Is the MSP432E411Y pin to pin compatible with the TM4C129XNCZAD? It looks the same microcontroller to me.

Thanks,


RTOS/MSP432E401Y: AES Driver initialization issues

$
0
0

Part Number:MSP432E401Y

Tool/software: TI-RTOS

Hi,
I'm working on a MSP432E401Y with TI RTOS and the SDK 2.10.00.17. I succesfully tested the aes_example without the RTOS.


In RTOS project it seems that these clock configuration APIs generate problems in debug:

/* Disable clock to CCM0 and reset the module from  system control and then
             enable the clock. */
    MAP_SysCtlPeripheralDisable(SYSCTL_PERIPH_CCM0);
    MAP_SysCtlPeripheralReset(SYSCTL_PERIPH_CCM0);
    MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_CCM0);

    /* Wait for the peripheral to be ready. */
    while(!MAP_SysCtlPeripheralReady(SYSCTL_PERIPH_CCM0))
    {
    }

I tryed to insert them in startup but nothing change:

var Startup = xdc.useModule('xdc.runtime.Startup');
/*
 * Default value is family dependent. For example, Linux systems often only
 * support a minimum period of 10000 us and multiples of 10000 us.
 * TI platforms have a default of 1000 us.
 */
Clock.tickPeriod = 1000;

/* install a "first function" */
Startup.firstFxns[Startup.firstFxns.length++] = '&AES_Init_First';

any idea ?

thank you,

Tommaso

MSP430AFE221: MSP-EXP430G2

$
0
0

Part Number:MSP430AFE221

Hello,

can anyone please let me know the no load current consumption of MSP-EXP430G2 IC's primarily or their power dissipation ?

thanks 

MSP432P401R: MSP432 DMA with Bit-Band alias addresses

$
0
0

Part Number:MSP432P401R

Hello,

is it possible to write to bit-band alias addresses with DMA? I have a setup here where I can successfully write to P5->OUT with DMA, but changing the DMA destination address to the corresponding bit-band alias address does not work (the pin on P5 is not changed). I have made sure that I use byte-access, and the bit-band documentation states that it will transform a byte-wise access to a byte-wise access on the peripheral (which is needed in this case).

Are there any examples to set GPIO pins with bit-band addresses via DMA access?

Maybe the UDMA has no access to the bit-band areas?

Thanks for your time &help,

Andreas

MSP432E401Y: ADC IRQHandler Read Data

$
0
0

Part Number:MSP432E401Y

Hi,

After getting an interrupt that my ADC data has passed the threshold, I set a flag. Then in my loop, I check if there is a flag and if there is I want to read the ADC data. I previously have done it with a ProcesssorTrigger, but that requires another ADC and I have already set my ADC to be TimerTrigger. My IRQHandler code is below. But I don't want to read the data in the IRQHandler, but in my while loop so that I can get out of the Handler quickly. Also, I am reading data from 4 pins which are all on configured to Sequence 0. Thanks for the help.

void ADC0SS0_IRQHandler(void)
{
    uint32_t getIntStatus;
    uint32_t getDCompStatus;

    /* Get the interrupt status from the ADC */
    getIntStatus = MAP_ADCIntStatusEx(ADC0_BASE, true);

    /* If the interrupt status for Sequencer-0 is set the
     * clear the status */
    if(getIntStatus == ADC_INT_DCON_SS0)
    {
        /* Get the Comparator Interrupt status and clear the same */
        getDCompStatus = MAP_ADCComparatorIntStatus(ADC0_BASE);
        MAP_ADCComparatorIntClear(ADC0_BASE, getDCompStatus);

        /* Clear the interrupt condition */
        MAP_ADCIntClearEx(ADC0_BASE, ADC_INT_DCON_SS0);
        flag = 1;
    }

}

MSP430FR5969: MSP4305969

$
0
0

Part Number:MSP430FR5969

Hey,

I am working with MSP4305969. I need to do the task which implies the following.

1. Push button event

2. Release button event

3. Store time interval between events (< 1 min.)

Every minute

1. Blink LED1 at push moment

2. Blink LED2 at release moment

3. Decrease time interval by 1 s

Can anyone help me, please??

Viewing all 21948 articles
Browse latest View live