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

RTOS/MSP432P401V: UART TIMEOUT CONFIG

$
0
0

Part Number:MSP432P401V

Tool/software: TI-RTOS

Hi all,

I saw the doc show we can config the timeout function.

That what's customer need.

Below is the doc example

Usage

This documentation provides a basic usage summary and a set of examples in the form of commented code fragments. Detailed descriptions of the APIs are provided in subsequent sections.

Synopsis

// Import the UART driver definitions
// One-time initialization of UART driver
// Initialize UART parameters
UART_Params params;
params.baudRate = 9600;
The question is how should I config a 50ms read timeout function ?

Many thanks


MSP430F5529: Firmware don't start when an external power source is connected

$
0
0

Part Number:MSP430F5529

I'm trying to power my MSP-EXP430F5529LP board with an external 3.3V power source.

My isolation block on-board looks has 3.3V, 5V, RTS and CTS jumpers detached. All others are present.

The external power supply drives 3.3V and 5V directly to 3.3V pin and 5V. I know, the 5V pin is not used by the MCU.
My power supply is a 220V to 5V adapter, then 3.3V are obtained through an LDO circuit (using MIC29302).

With this setup, when I attach the external power supply to the MCU the firmware doesn't start (I see no led lighting).
The really weird thing is that if I attach the 3.3V jumper, on the board isolation block, it magically starts working and the firmware runs.
When the firmware is started, I can even go back to the initial setup and all continue to work.

Everytime I attach the MCU in debug mode (through the micro USB port), it's always working.

I really need help please...

MSP432P401R: Problem about using SWD download program

$
0
0

Part Number:MSP432P401R

Dear all,

Our Customer use 3.0V for MSP432P401R. And they cannect the VCC of J-Link which is 3.3V. In this way, the 3.0V and 3.3V is not match. Will this damage the chip? We want to confirm that in this case, is it the best way to disconnect J-Link's 3.3V?

At present, there are three fault boards. And the fault is that SWDIOTMS pin is always short to the ground. Is the fault caused by connecting the 3.3V of J-Link?

In addition, for the fault boards, is there any other way to download program with Seirial Port or other ports instead of SWD(or JTAG)?

Best Regards.

Kevin Chen

MSP432E401Y: UART LIBRARY NOT GETTING INCLUDED

$
0
0

Part Number:MSP432E401Y

Hi 

I am working on Ethernet-based IO Control Example of MSP432E401Y SDK.

The example uses a UART peripheral for printing the details on a console.

But the way they have initialized the UART peripheral and used it is different from usual.

I am a beginner and unfamiliar with such technique.

I wish to use a UART peripheral say UART4 in the example but as I include the code required along with the libraries the below errors show up.

How can I correct this or How can initialize a UART peripheral of my choice in the Ethernet Based IO Control example itself. 

Below is the screenshot of the error message shown.

RTOS/MSP432E401Y: LWIP stack with Ti RTOS

$
0
0

Part Number:MSP432E401Y

Tool/software: TI-RTOS

Hello Team,

One of my KMM customers is using our TM4C129x series in their products. Recently for their Low end products I have proposed them MSP432P401R and with that I have suggested them to use our Simplelink MSP432E401Y. They have gone through data available on web site and came back to me with below queries:

Can we use lwip stack along with TI-RTOS?

What will you suggest to use, lwip stack or NDK?

What is the benefit of using TI-RTOS as it is not based on time-slicing scheduling?

 

Please advise on their queries ..

Regards,

Vikas Chola

MSP430FR6989: can gpio out low to high, gpio in and read out be done within 23 microseconds?

$
0
0

Part Number:MSP430FR6989

Hello,

I'm trying to bring up digital pyro, but can't get correct results with energia and MSP430FR6989 evaluation kit, because they can meet the following spec.

-tDL is 7.5us on my MSP430 demo board which is not matched to the range(200~2000ns). Please refer to direct_link_data_output_Tdl.jpg.

- tBIT-tDH should be <23us, but mine is 42us. Please refer to direct_link_data_output_S.jpg.

I also did with IAR compiler and the same evaluation board and got the worse results(tBIT-tDH) was over 100 us.

Is there any way to set up GPIO OUT low to high and switch OUT to IN  quickly to meet the spec.?

Thanks, HJ

MSP430F47127: About ADCof MSP430F47127

$
0
0

Part Number:MSP430F47127

Hi Team,

Please help me answer the follow question, thank you so much.

We use four ADCs and take data about every 2ms, but sometimes data may loss (about once every several hours to several days). Shorting the AD input terminal does not improve it. Are there any possible solutions?

Best Regards,

Tom.Liu

MSP430F5224: Over the air download (OAD) questions

$
0
0

Part Number:MSP430F5224

Hi,

I have a customer who is planning to use MSP430 + CC2564MODA and implement OAD feature.
I checked below application note(APN).
http://www.ti.com/lit/an/slaa600d/slaa600d.pdf
The APN uses CC110x, but it should be possible to replace CC110x with CC2564(or any other wireless devices) by software modification.

I understood there are single image and dual image mode, but it is not clear the advantages of using dual mode.
I checked below E2E thread and understood the device always has working application with dual mode and it helps in case an error happens at OAD.

http://e2e.ti.com/support/microcontrollers/msp430/f/166/p/684816/2533626?tisearch=e2e-quicksearch&keymatch=OAD%20dual#pi320995=2

But does such error cause critical situations(deadlock, etc.) even with single mode?
As far as I understood from the APN, if OAD fails with single mode and the new application is not valid, simply Boot mode is executed next time.
Then OAD will be tried again until the new application is successfully uploaded.
If so, using dual mode does not seem to have significant benefits compared to its disadvantages (memory space, complexity, etc.).

Do I mis-understand something?

Thanks and regards,
Koichiro Tashiro


MSP430F67641: The switching characteristics of SD24_B module.

$
0
0

Part Number:MSP430F67641

Hello,

I don't see the switching characteristics information of SD24_B on datasheet, such as data setup time, hold time..etc, we need this information to select proper external modulator when using bit stream interface.

Please advise how can I get this timing data, thanks for help.

Luke

MSP430FR2433: DCO Software Trim in extremely cold environments

$
0
0

Part Number:MSP430FR2433

Hi JD and community member,

I have additional consultation.

When my customer put MSP430 on their custom board and debugged in a low temperature environment, it seems that the following phenomenon occurred.

<phenomenon>
When the MSP430 is reset around -35°C,DCOFFG will be set when initializing DCO.
The software uses "cs_ex1_DCO1MHzSWTrim" as fDCO = 4.9152 MHz.
And software trim uses the CS_initFLLCalculateTrim () function.

<Question>
1. Is it possible for the DCO tap to reach the maximum value even when CS_initFLLCalculateTrim () is executed?
2. Are there any workaround for software?

<Contents>
When debugging, the program counter was stuck in the following loop processing in CS_initFLLCalculateTrim ().

// Poll the FLLUNLOCK bits and DCOFFG bit until FLL is locked or DCO fault
while((HWREG16(CS_BASE + OFS_CSCTL7) & (FLLUNLOCK0 | FLLUNLOCK1)) &&
((HWREG16(CS_BASE + OFS_CSCTL7) & DCOFFG) == 0));

At this time, if the temperature was raised while holding onto the DCOFFG loop, the DCO tap will not be 1FF around -25°C, and DCOFFG was reset.
Then the MSP430 got out of the loop.

The following capture screen is the CS register when the temperature is changed.

We consider the cause and the solution , but no concrete idea has come up.
Could you give me some advice.

Best regards.
Cruijff

RTOS: SimpleLink SDK - Ajax Polling alternative

$
0
0

Tool/software: TI-RTOS

Hello,

Right now we are using TM4C129ENCPDT for prouduction but we would like to move to SimpleLink alternative MSP432E. We are using TM4C http webserver for the application interface with continuous Ajax polling for a better user experience. My question is despite of the numerous advantages of SimpleLink features ( https server, etc...) do you have any support, solution feature to leave Ajax polling and move to Websocket, or Server-Side Events in SimpleLink? 

Looking forward your kind reply

MSP-EXP430FR5969: Power supply from USB Power

$
0
0

Part Number:MSP-EXP430FR5969

Hi 

Connecting USB to supply power from PC.

Board settings is shown in following image.

(Please visit the site to view this file)

Micro-USB cable is connected to PC but J10 is open. 

In this condition, the board could work. 2.9V is seen at VCC.

Could it be expected behavior for this board settings if USB power is applied?

BestRegards

EVM430-FR6047: Ultrasonic Sensing Design Center not found.

$
0
0

Part Number:EVM430-FR6047

Hello,

I am trying to find and install the Ultrasonic Sensing Design Center but I can not find any download link. I searched in the directory it suggests but the msp folder in not there. I have downloaded Code Composer Studio with MSP430Ware.

Thank you for your time

MSP432E401Y: Firmware update

$
0
0

Part Number:MSP432E401Y

Hello

I started working on MSP432E401Y development board. I want to provide the remote firmware update feature to my project. Can anyone please suggest me a way through which I can do that.

Thank you

MSP432E401Y: Questions about MSP432E4 BSL via Ethernet

$
0
0

Part Number:MSP432E401Y

hi,

We want to use the MSP432E4's BSL to do the FW upgrade via Ethernet. We got some questions need your help:

1.In SLAU746A "MSP432E4 SimpleLink™ Microcontrollers Bootloader(BSL)", I saw the source code of MSP432E4's BSL is provided, but where to get the source code?

2.will the MSP432E4 get auto reset after the Ethernet BSL FW upgrade?

3.I saw it's based on DHCP, if my system is fixed IP, does it also support? Or where should be modified to support the fixed IP?

4. Does the function of Ethernet BSL stored in ROM? If it does, can i still possible to modify something in it?

Thank you.


CCS/MSP432P401R: RSLK requires a three-wire operation routine

$
0
0

Part Number:MSP432P401R

Tool/software: Code Composer Studio

The RSLK car using the MSP432P401R needs to operate a dot matrix module, but does not know how to configure the pin. If there is no configuration example, the following pin mode operation is required:

//定义Max7219端口
sbit Max7219_pinCLK = P2^2;
sbit Max7219_pinCS = P2^1;
sbit Max7219_pinDIN = P2^0;

void Write_Max7219_byte(uchar DATA)
{
uchar i;
Max7219_pinCS=0;
for(i=8;i>=1;i--)
{
Max7219_pinCLK=0;
Max7219_pinDIN=DATA&0x80;
DATA=DATA<<1;
Max7219_pinCLK=1;
}
}

MSP430I2040: Interfacing the MSP430i2040S Sub metering EVM on I2C

$
0
0

Part Number:MSP430I2040

Hi team, in the reference code generated by EMDC for the i2040 sub metering EVM, there is aprovision for the I2C interface also. Using the MACRO i have enabled it and it did build without errors. Please advice have we tested the I2C on this EVM or not? if yes then please share the I2C host example it was tested with.

RTOS/MSP432P401R: Delay Getting Mailbox Items

$
0
0

Part Number:MSP432P401R

Tool/software: TI-RTOS

I'm using the launchpad for the MSP432P401R and a simple TI-RTOS example. I have a UART receiving characters on an ISR and posting them to an RTOS mailbox. I have a task blocking on the mailbox (waiting with a long timeout) for characters to arrive. (I realize this may not be the most efficient solution but its a start!) I get a burst of 20 characters and they get posted to the mailbox in the ISR and very quickly. But it takes from 170usec to ~100msec for the task to wake up and receive the characters through the mailbox. Once they start to arrive, they come in very fast. The task waiting on the mailbox is the highest priority in my system (10). 

I disabled the idle_powerfunc thinking I was going into low power state. No change. 

I tried adjusting the timeout on the mailbox pend and it seems to have no affect (even a short one doesn't return from the call which should timeout). 

If you can provide a tutorial, I might be able to learn more using the logging but all the tutorials I found are pretty old. 

MSP430F5638: Do the DMA controllers work with the serial controllers?

$
0
0

Part Number:MSP430F5638

Hi MSP430 team,

I am posting this question on behalf of my customer. Context is below.

We have been using a few different variants of the MSP430 and have a question regarding DMA. The particular version we want to use is the MSP430F5638IPZ. We need to have at least one UART, one L2C, and two relatively high speed SPI controllers. The SPI pretty much needs SPI. A quick look at the datasheet this morning appeared that the DMA controllers don’t work with the serial controllers. Please confirm.

We need the MSP430 to run on 16.384 MHz from our TCXO, produce the 4.096 MHz modulator clock for 3 ADS1282 ADCs using a timer, also use an SPI at 2.048 MHz SCLK to read the ADCs. DMA is almost a necessity. The second SPI will be used at a higher SCLK to shift the data into a pair of large serial memory devices.

Thank you,

Lauren

CCS/MSP430FR5994: Reading Input Port and Expressions Problem

$
0
0

Part Number:MSP430FR5994

Tool/software: Code Composer Studio

I have two problems.  First, I'm trying to just read the input value on a pin on the launchpad for my MSP430FR5994 and it doesn't show up.  If I look under "registers" in CCS at P3IN, it doesn't change even as I set different pins high.  My code is below.  My second problem is that my variable doesn't show up in either "variables" or "expressions" in CCS.  Am I missing something?

#include <msp430.h> 


/**
 * main.c
 */
int main(void)
{
	WDTCTL = WDTPW | WDTHOLD;	// stop watchdog timer
	unsigned int nonsense;
	P3DIR &= 0xF0;
	while(1){
	     nonsense = P3IN;
	    __delay_cycles(1000);
	}


}

Viewing all 22212 articles
Browse latest View live


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