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

MSP430F5510: General problem

$
0
0

Part Number: MSP430F5510

Please refer to the schematics below. (Just a relevant part)

I'm at the stage of prototype bring-up.
My USB host doesn't see the MSP as one of the devices.
There's no oscillation on Y1 crystal.
The 3V3_MCU voltage is 2.77V  (According to the spec it is supposed to be 3.3V ± 9%)

There's a solid 5V supply at the VBUS port.

Haven't used the JTAG programming yet - trying to work with the factory preprogrammed condition.

Am I missing something wrong in the schematics?


CCS/MSP432P401R: UART1 data are Broken TI-RTOS

$
0
0

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Hi all, I am using MSP-EXP432P401R (Red) and testing two UARTs, uart0 and uart1. They are configured as CONFIG_UART_0 and CONFIG_UART_1 as follows. CONFIG_UART_1 is connected to another notebook via RS232 interface. I tested my customized RS232 connector with null modem successfully.

I connected my own customized RS232 connector to P3.3(4), P3.2(3) and GND(22).  I use only 3 pins: RX, TX and GND.

If I use only uart0, there is no problem as in following screen capture:

If I use uart0 and uart1 together, all data from/to uart1 are broken as following screen shot:

 

<< screen shot of PC connected to uart0>>


 

<< screen shot of PC connected to uart1>>

 

Attached source, console.c

void *consoleThread(void *arg0)
{
    char    ch, cmnd_in[80], bbff[80], itoa_buf[5];
    int     i, len, cnt ;

    cnt = 1;
    /* Loop forever to start the console */
    while (1) {                                   // today
        memset(cmnd_in, 0x00, sizeof cmnd_in);
        cmnd_in[0] = 0x0d;
        cmnd_in[1] = 0x0a;
        UART_write(uart0, consoleDisplay, sizeof(consoleDisplay));
        UART_write(uart0, userPrompt, sizeof(userPrompt));
        i = UART_read(uart0, cmnd_in + 2, 20);
        if (i != 20) {
            while(1) ;
        }
        itoa(cnt, itoa_buf);
        strcat(cmnd_in, " - ");
        strcat(cmnd_in, itoa_buf);
        UART_write(uart0, cmnd_in, strlen(cmnd_in));
        UART_write(uart0, "\r\n",2);

        i = UART_write(uart1, "\n\rEnter 20 chars : ", 19);
        if (i != 19) {
            while(1) ;
        }
        i = UART_read(uart1, bbff, 20);
        if (i != 20) {
            while(1) ;
        }
        UART_write(uart0, "\r\n\n", 3);
        UART_write(uart0, &bbff[0], i);
        UART_write(uart0, "\r\n\n", 3);

        ++cnt;
    }
}

Please kindly advise me what I make mistake.  

Any help and advise are appreciated.

Many Thanks in advance.

HaeSeung

 

 

 

CCS/MSP430F5529: .cmd file information

$
0
0

Part Number: MSP430F5529

Tool/software: Code Composer Studio

Hi Experts,

Recently I was migrating one code from Code Composer Studio to IAR after doing all these thing in IAR it asked for .cmd file for building the project but ,cmd I added that only which was given in Code Composer Demo Codes. So can I use .cmd file for CCS to run in IAR or what to do please give me answer I'm Confused.

MSP432E401Y: using bootloader with NDK and RTOS

$
0
0

Part Number: MSP432E401Y

I've been working through the example uses of the bootloader, currently sourced from SDK v.3.20.00.10.   Primarily I am interested in developing applications that will make use of the ethernet bootloader over tftp.   

I've been able to successfully deploy the boot_serial_emac_flash examples, all of which use lwip and are without any RTOS implementation.

I would now like to develop an example that uses FreeRTOS and also incorporates the NDK as opposed to lwip for TCP/IP set up, but I'm having difficulty getting it to function.    What are the problem areas here that I need to be aware of to add this functionality, or is it not possible?

For example, what primary steps would I need to take to adapt the FreeRTOS flavor of the 'tcpecho' example for deployment over the ethernet bootloader?

Thanks

Compiler/MSP430FR5969: MSP430-GCC linker section checksum

$
0
0

Part Number: MSP430FR5969

Tool/software: TI C/C++ Compiler

This question is targeted at the PC/build side of the project described in the related question. I need to calculate CRCs for the text and rodata sections of my application during the build process. Those values will eventually be compared against CRC values computed during run time by the MSP430.

In the related question, I found out that the CCS linker performs section CRCs during the build process. However, I have been unable to find equivalent functionality in the MSP430-GCC documents I've reviewed. Does the MSP430-GCC linker include this functionality or is it only available in the TI CCS linker?

MSP430FR2676: Timer interrupt executes after watchdog reset

$
0
0

Part Number: MSP430FR2676

I have an application that makes use of a lot of peripherals, including a timer that calls a handler at periodic intervals.  If there is no watchdog reset, everything runs as expected.

If I comment out the code to feed the watchdog, the rest occurs after the expected delay, but the MSP430 does not appear to really be doing a "full" reset of the timer peripheral.  After the watchdog reset, TA0_TA0CCTL0 contains a value of 0x01.  This indicates that the timer interrupt (TAIE) flag has properly been cleared, like it should, but the interrupt flag (TAIFG) is set, indicating a pending interrupt!

What can I do to clear all interrupts that could have been pending/active before the watchdog reset, so that my interrupt handlers cannot execute before application initialization?

Pseudocode:

void main()
{
    // (Never reaches here after a watchdog reset)

    // Initialize application data (pointer initialization, heap allocation, etc...)

    // Initialize watchdog
    ROM_WDT_A_initWatchdogTimer(WDT_A_BASE, WDT_A_CLOCKSOURCE_SMCLK, WDT_A_CLOCKDIVIDER_8192K);
    ROM_WDT_A_start(WDT_A_BASE);

    // Initialize other peripherals, including a hardware timer

    for (;;)
    {
        // Feed watchdog
        ROM_WDT_A_resetTimer(WDT_A_BASE);
    }
}

void timerInterruptHandler()
{
    // Accesses application data, which must be initialized before this is called, or the application crashes
}

MSP430FR4133: Compatibility with ADS124S08

$
0
0

Part Number: MSP430FR4133

Hi,

It was recently brought to my attention that there is a better ADC and EVM (ADS124S08) I can use for my RTD setup. Is the ADS compatible with the MCU that was recommended for the 1247 ADS and EVM setup? I am using an Pt100 RTD grade 1/10 din in a 4 wire configuration and need to have a MCU setup to transmit the data onsite.

Thanks, Sid

EVM430-F6779: Part Number for Crystal used in EVM430-F6779

$
0
0

Part Number: EVM430-F6779

Part Number for Crystal used in EVM430-F6779. Its component XT1.

Also if possible to have BOM for EVM430-F6779.


CCS/MSP432E401Y: Error when importing example: "No TI MSP432 compilers, supporting device 'MSP432E401Y', are currently installed!

$
0
0

Part Number: MSP432E401Y

Tool/software: Code Composer Studio

On a brand new installation of CCS 9.2.0 with the latest codegen tools, when I import a CCS example from MSP432E4 SDK 3.30.00.22, I get the error:

"No TI MSP432 compilers, supporting device 'MSP432E401Y', are currently installed!"

This occurs on any CCS import. With a GCC import, it imports and compiles properly. Doe the codegen 18.12 no longer includes TI compilers for MSP432E?

Also, what SYSCONFIG example are available for No RTOS? Seems they are only in the /ti/simplelink_msp432e4_sdk_3_30_00_22/examples/nortos/drivers directory.

Best regards,
Pedro

Compiler/MSP430F5529: do

$
0
0

Part Number: MSP430F5529

Tool/software: TI C/C++ Compiler

is it possible to code in python and then reload in this via some other source. Is it necessary to code in C/C++ in the MSP430F5529, I would be obliged if you revert me bak with positive response to this question. 

MSP432P401V: driverLib spi.c bug with Simplelink version 3.20.00.06

$
0
0

Part Number: MSP432P401V

Hello,

While trying to compile the driverLib `spi.c` against the MSP432P401V part using IAR I receive the following errors:

Error[Pe020]: identifier "EUSCI_B1_BASE" is undefined ....\spi.c 467

Error[Pe020]: identifier "EUSCI_B1_BASE" is undefined ....\spi.c 516

This is because these registers are not defined in `msp432p401v.h`.

Can anyone else verify this error?

Thanks,

Dominic

CCS/MSP430G2553: Is it possible to output a library as a binary to be linked later on?

$
0
0

Part Number: MSP430G2553

Tool/software: Code Composer Studio

Hi There.

We have to share some source code with a third party but we are trying to hide our intellectual property. 

We are thinking to separate critical functions into libraries and then compile them into binaries; then link them later on.

Does anyone have another approach or recommendations on how to do this?

Thanks

Chris

CCS/MSP432P4111: Have RTOS Analyzer / System Analyzer been removed in CCS 9.2??

$
0
0

Part Number: MSP432P4111

Tool/software: Code Composer Studio

G'Day all,

In the last few days I updated CCS from v9.1 to v9.2 and I've noticed that the RTOS Analyzer and System Analyzer options from the tools menu (in debug view) are gone.

Same is true for all my colleagues who have done the update.

Can you help me find the RTOS Analyzer tools (Execution graph in particular) in CCS9.2?

Cheers

Julian

MSP430FR5043: RTC to MCU via SPI

$
0
0

Part Number: MSP430FR5043

Hi, 

My name's Manish.

This MSP430FR5043 is a custom board and I'm actually trying to talk to RTC module through SPI peripheral.

The data which I'm sending through the Tx buffer to the RTC module through SPI is verified, but I'm not receiving anything back from RTC module. I've set the UCLISTEN bit to enable loop back mode which will enable for echo mode.

I need help in the following steps, any example for anything that might help, 

  1. Generate a set of memory locations for the tx data for the registers;
  2. Generate a set of memory locations for the rx data so the RTC registers have a home;
  3. Transmit a single byte of data from the tx to the rx buffer;
  4. Generate an interrupt routine that acts to clear the input buffer of the receiver, and make ready for the next piece of data;
  5. Process the interrupt;
  6. Set a flag;
  7. Exit the interrupt call;
  8. Act to empty the Rx buffer;
  9. And start again for the next message;

 

Thanks in advance,

Yours Sincerely 

Manish

MSP-FET430UIF tool trashes MSP430FG4618 internal flash

$
0
0

Part Number: MSP-FET430UIF

Hi Dennis,

Since I have been unable to use the MSP430F2013 on both of my MSP-EXPFG4618 experimenter boards, I decided to attempt connect to the MSP430FG4618 JTAG interface and loading some sample code onto them, however, as soon as I load the binary, and attempt to run the code, the LCD display stops working and it appears as if I am hitting a breakpoint.

As mentioned, my laptop is running Ubuntu 19.10 and I am using the msp-elf-gcc version 8.3.0.16 compiler and building the TI sample code for this board.

As with the previous experience, attempting to load code onto the MSP430F2013, it is visibly obvious that the MCU is no longer functioning, since, after power-cycling the board, the factory-default code, which normally causes the LED3 to flash, stops working.

In the case of the MSP430FG4618, the LCD no longer displays anything.

In none of these tests which I have carried out, have I attempted to program the flash memory on either MCU.

I now have two boards which are dead and am unable to proceed any further.

I would be most appreciative of your assistance in resolving these issues please.

I have attached the source, object and binary files which I attempted to load onto the MSP430FG4618, in a slac129_lcd.tar.gz archive, for your reference.

Thanks in advance.

Best Regards,

Jonathan(Please visit the site to view this file)


MSP430FR2155: Max VIH threshold of SBWTCK, pin 4

$
0
0

Part Number: MSP430FR2155

Hi Team,

What is the Max VIH threshold of SBWTCK (pin 4) of MSP430FR2155TPR when VCC is 3.3V?

The datasheet is section 5.13.5, table 5-11 only specify voltage under the below condition.

VCC 2.0V -> VIH Threshould Max is 1.5V

VCC 3.0V -> VIH Threshould Max is 2.25V

Best regards,

Andy Chu

MSP430FR5949: ADC/TA0 triggers /Repeat-Sequence-of-Channels Mod

$
0
0

Part Number: MSP430FR5949

hello,everyone:

I want to implement a function: timer triggers adc module to implement Repeat-Sequence-of-Channels Mode. However, the problem now is that the Sequence sampling interval is either the timer turnover cycle or adc sampling conversion interval.Below is my software configuration and function diagram

void ADC_init(void)
{
P1SEL1 |= (BIT2+BIT3);
P1SEL0 |= (BIT2+BIT3); //BIT1+

P3SEL1 |= (BIT0+BIT1+BIT2+BIT3);
P3SEL0 |= (BIT0+BIT1+BIT2+BIT3);

while(REFCTL0 & REFGENBUSY);
REFCTL0 |= REFVSEL_2 | REFON;
//while(REFCTL0 & REFGENRDY);//Reference voltage output is ready to be used

ADC12CTL0 &= ~ADC12ENC;
ADC12CTL0 |= ADC12ON|ADC12MSC;//

ADC12CTL1 = ADC12SHP| ADC12SHS_1 |ADC12CONSEQ_3; //
ADC12CTL2 |= ADC12PWRMD;//ADC12RES_2 |; // 12-bit conversion results

ADC12CTL3 &= ~ADC12TCMAP;
ADC12CTL0 |= ADC12SHT0_0;
ADC12MCTL0 = ADC12VRSEL_1+ADC12INCH_3;//电场
ADC12MCTL1 = ADC12VRSEL_1+ADC12INCH_13;//小通道电流
ADC12MCTL2 = ADC12VRSEL_1+ADC12INCH_14+ADC12EOS;//大通道电流
ADC12IER0 = 0x04; // Enable ADC12IFG.3
ADC12CTL0 |= ADC12ENC |ADC12SC;//; //启动采样和转换

// Configure Timer0_A3 to periodically trigger the ADC12
TA0CCR0 = TIME_1MS; // PWM Period
TA0CCTL1 = OUTMOD_3;//CCIE;// | // TACCR1 set/reset
TA0CCR1 = TIME_1MS; // TACCR1 PWM Duty Cycle
TA0CTL = TASSEL__ACLK | MC__UP;//|TAIE; // ACLK, up mode // ACLK, up mode

}

MSP430F47177: MSP430F47177 Segment A Area Questions

$
0
0

Part Number: MSP430F47177

Hello,

A customer has a question about rewriting Flash.

The MSP430F47177 data sheet includes the following.

Segment A might contain calibration data.

Will this calibration data be written and shipped?

Regards,
Da

MSP430F449: The part# MSP430F449IPZ,The power consumption of the first start-up becomes larger

$
0
0

Part Number: MSP430F449

Dears

                    The part# MSP430F449IPZ,The power consumption of the first start-up becomes larger, 70ma. If the power is cut off again, the operation is normal. If RST pin is used to reset, the problem cannot be solved. Burning code online again doesn't solve the problem 

MSP432P401R: Doubt in MSP432 BSL Hardware Invocation sequence

$
0
0

Part Number: MSP432P401R

I was going through the MSP432 BSL User guide and I had one doubt which I want to ask

I understand that in order to perform hardware invocation of the BSL, we need to program the flash mail box with MB_START, CMD and other appropriate parameters and do a reboot.

Bootcode will now take the control and it will see boot override request and it will perform the request by parsing the flash mailbox and associated CMD.

If the boot override command is BSL_CONFIG, I can see that the bootcode executes the command and write 0x00000ACE to the ACK (0x1F4 offset from flash mailbox start address) and writes NONE (0x00000000) to the CMD field (0X04 offset from the flash mailbox start address). 

My doubt is "TI mentions that once you have provided the pins and their state for the hardware sequence entry, the device will go into BSL mode if the same sequence is present during boot time". 

But I think that bootcode first checks the command field and if the command is BSL_CONFIG, it extracts the BSL hardware invoke parameters (0x1E8 offset from flash mailbox). Since, BSL writes none to this field on successful execution of command, on next reboot how does the bootcode knows that it has to enter into the BSL (based on the hardware sequence entry) since the command is NONE by now.

Please help me understanding this part of BSL.

Viewing all 22212 articles
Browse latest View live


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