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

MSP432E401Y: Microcontroller reaching high temperature when using the launchpad as USB host.

$
0
0

Part Number:MSP432E401Y

Hi,

I have the MSP432E401Y launchpad. I loaded the demo program of "USB host mouse". When I that program and connect mouse to OTG the temperature shoots up. I am not sure what the actual temperature is but its hot enough that I cant keep my finger on the IC for more than 5 seconds.

My question is is this normal?

Some observations that I think might be important:

1.The IC heats up only after I connect the USB mouse to USB OTG.

2.If I remove the mouse in between the heating doesn't stop

3.The heating will stop no matter what if I remove the 5V power jumper that supplies the whole board also the USB OTG. (keep in mind the controller works on 3.3V and the controller is still working just fine without the 5V power)

4.The demo code works just fine though even at those temperatures. I can see mouse movement values in the UART terminal just fine.

5.No the IC dose not heat up with other demo codes that are not USB host. It only happens for USB host demos.

6.I don't think the IC is crossing the thermal junction i.e. 125C. My job is making 3D printers I know that u cannot even keep your finger on 125C for more than 0.5 seconds. I suspect the temperature to be around 70C not sure though. 

I am afraid to leave it at those temperatures because the board is damn costly. If it was a 4$ Arduino I wouldn't give a damn even if it caught fire. But these TI controllers are freaking costly. I cant risk these. Also it takes very long to ship.


MSP432E401Y: PTP IEEE 1588 stack support

$
0
0

Part Number:MSP432E401Y

Hi,

is there any news about PTP availability in the appropriate SDK?

Thanks, regards,

András

RTOS/MSP430F5529: TI-RTOS uartconsole example code does not reach main() on MSP-EXP430F5529LP Launchpad

$
0
0

Part Number:MSP430F5529

Tool/software: TI-RTOS

Hello,

I am trying to build TI-RTOS uartconsole example from TIREX but after successful build&flash, I found out that it never reaches to main() function.

I found out this by debugging.

In boot_4.4.c file, after _system_pre_init() check (which always returns -1 by default), _auto_init() is supposed to be called but it is never called, nor the IDE says there is no such symbol:

I am using only the default configuration. Just imported the uartconsole example and build it. Any help would be appreciated as this took too much of my time so far. Maybe it is just an include issue... I just want to make this work and then I will try to modify it to start playing with TI-RTOS.

Here is some information about build environment:

Code Composer Studio

Version: 8.1.0.00011

---

Compiler TI v18.1.3.LTS

---

TI RTOS for MSP43x 2.20.0.06

---

XDCTools 3.32.0.06_core

Note: this question was originally posted here: e2e.ti.com/.../695718

But since I did not have time to deal with the answers&questions at the time, it is locked. So I started a new thread, this time with a more accurate header and information. Now I am fully focused on this.

MSP430FR2311: I2C BSL Supported ?

MSP430F5342: Operations and read and write SPI

$
0
0

Part Number:MSP430F5342

HI,

I'm trying to figure out some code that reads and writes bytes to/from the SPI bus.

Where would I find this documented?

My biggest concern is that I see the code having to write a byte of 0xff to be able to read a byte.

Regards,

David

MSP430FR5994: What happens behind the scene when I provide the JTAG password for unlocking the device in .ccxml file?

$
0
0

Part Number:MSP430FR5994

Hello,

I am trying to understand how the JTAG protection feeature works. I am using SLA658:MSP430 Code Protection Features document to  lock JTAG with password for FR5994 device. I understand that writing a password to the dedicated .jtagsignature region helps lock the device. Can someone help me understand how the device is unlocked, when I provide it with the correct password in the .ccxml file (as described in SLA658)?

Thank you

MSP430FR6989: No magnetic water meter

$
0
0

Part Number:MSP430FR6989

I would like to ask you three questions

1. How can the design of three LC sensors for the MSP430FR6989 of TI achieve anti-magnet interference

2. Compared with MSP430F427 or MSP430FR6989, is there an MCU with low resource, pin at 48PIN, but also with internal ESI function

3. Whether TI has integrated ESI detected chip, rather than integrated into MCU

thank you

MSP-EXP430G2: Conversion of LM35 output to centigrade

$
0
0

Part Number:MSP-EXP430G2

Hi Everyone,

I have endeavoured to make a thermometer using LM35 and MSP430G2553 micro controller ,made the hardware setup and wrote the code but I am getting false values.

I method I used to convert the ADC value to centigrade is

Temp in centigrade = (Adc_Value * step size)/10mv

step size = Vref/1023 

is the above conversion mechanism is correct? If it is wrong can somebody tell what is the right method to convert the ADC output to temperature in degree centigrade.

#include <msp430g2553.h>
#define TEMP_IN BIT4
#define RXD BIT1
#define TXD BIT2
unsigned int  adc_Value =0;
int temp_value =0;
void msp430_clk_init();
void msp430_adc_init();
void msp430_uart_init();
void uart_txbyte(unsigned char value);
int main(void)
{
P1DIR |= BIT0 + BIT6;
P1OUT &= ~(BIT0 + BIT6);
msp430_clk_init();
msp430_adc_init();
msp430_uart_init();
while(1)
{
__delay_cycles(1000);
ADC10CTL0 |= ENC + ADC10SC;  //enable and start conversion
__bis_SR_register(CPUOFF + GIE); //CPU OFF and Interrupt enable 
uart_txbyte(adc_Value);
}
}
void msp430_clk_init()
{
WDTCTL = WDTPW + WDTHOLD;   //stop watchdog timer
BCSCTL1 = CALBC1_16MHZ;
    DCOCTL = CALDCO_16MHZ;   //basic clock module to 16Mhz
}
void msp430_uart_init()
{
P1SEL |= RXD + TXD;  //P1.1 RXD, P1.2 TXD
P1SEL2 |= RXD + TXD;                            
UCA0CTL1 |= UCSSEL_2;   // SMCLK
UCA0BR0 = 138;         // 16MHz 115200
UCA0BR1 = 0;                              // 16MHz 115200
    UCA0MCTL = UCBRS2 +UCBRS1+ UCBRS0; // Modulation UCBRSx = 7
UCA0CTL1 &= ~UCSWRST;             // **Initialize USCI state machine**
}
void msp430_adc_init()
{
ADC10AE0 |= TEMP_IN;     //Analouge input enable P1.4
ADC10CTL0 |= SREF_0 + ADC10SHT_2 + ADC10ON + ADC10IE; //VCC & VSS are reference  and interrupt enable,ADC is ON,sample &hold for 16 clk cycles
ADC10CTL1 = INCH_4 + ADC10SSEL_3 + ADC10DIV_3;    //A1,SMCLK,/4;
}
#pragma vector=ADC10_VECTOR
__interrupt void ADC10_ISR (void)
{
P1OUT ^= BIT0;
__delay_cycles(16000);
    adc_Value = ADC10MEM;
    
__bic_SR_register_on_exit(CPUOFF);        // Return to active mode }
P1OUT &= ~BIT0;
__delay_cycles(1600000);
}
void uart_txbyte(unsigned char value)
{
temp_value = (value * 3.22);
temp_value = (temp_value/10);
while(!(IFG2 & UCA0TXIFG));
UCA0TXBUF = temp_value;
P1OUT ^= BIT6;
}

CCS/MSP-EXP430FR2355: New MSP430FR2355 LP does not run OOBE and can't be programed using MSP-EXP430FR2355_OOB_GUI

$
0
0

Part Number:MSP-EXP430FR2355

Tool/software: Code Composer Studio

New MSP430FR2355 Launchpad, Windows 10 x64.

When started the OOBE software did not work as described in the User's Guide. Neither LED was lit and the GUI was unresponsive.

Attempted to update the firmware as directed by the starting dialog in the OOBE web page but the operation fails with a message that the Operation was aborted.

Use of the Cloud version of CCS to program the LED blink example (msp430fr235x_1.c) works with the only differenc being the baud rate (9600 for CCS, 115200 for GUI, GUI also fails at 9600).

If the OOB firmware is available to CCS I would try to load it from there, but I don't find it when searching.

MSP430F5249: BSL Scripter over UART going wrong

$
0
0

Part Number:MSP430F5249

Hi,

I've been having problems lately trying to flash my program onto the MSP430F5249 using BSL Scripter over UART.

I have a bash script that creates the BSL entry sequence and then invokes the BSL scripter. Here's my code for the entry sequence:

function generateBSLEntrySequence
{
    #Initially set RST and TST to Low
    setLow $TST_PIN
    setLow $RST_PIN

    #Toggle TST
    sleep $OnePeriod
    setHigh $TST_PIN
    sleep $OnePeriod
    setLow $TST_PIN

    #Set TST to high
    sleep $OnePeriod
    setHigh $TST_PIN

    #Set RST high
    sleep $HalfPeriod
    setHigh $RST_PIN

    #Set TST low
    sleep $HalfPeriod
    setLow $TST_PIN
}

Here TST_PIN and RST_PIN are gpios that have been exported. OnePeriod=0.1 and HalfPeriod=0.05

Since this is in bash the periods are in units of seconds. My concern is whether the values are too big.

The BSL User Guide says the first high level of TEST pin must be at least tSBW, En. Looking at the datasheet tSBW, En has max value of 1µs.

Does that mean the TEST pin has be high for at least 1µs or a maximum of 1µs?

This script has worked previously but something is going wrong as the program doesn't work as expected and no changes have been made.

I am doing a reset of the micro-controller after running BSL.

Can someone help? Is there anything wrong with my script?

MSP430G2553: Arduino Lcd1602 library convert to MSP430 seriese Library

$
0
0

Part Number:MSP430G2553

Hi ,Guys this is i write code,

and i modify the oringinal lirbrary for LCD1602;

so i change the method of io.

then i will post my code and upload.

My qestion is what i change the code compiler is OK.

and the lcd can run ,but char show is not correctly.

i think that some code is wirte wrong,please help me to check.

(Please visit the site to view this file)

CCS/MSP-EXP430FR2355: Modifying the target MCU supply voltage

$
0
0

Part Number:MSP-EXP430FR2355

Tool/software: Code Composer Studio

Is it possible to modify/adjust the target MCU's supply voltage that is derived from eZ-FET part of the launchpad or 3V3 supply from isolation jumper block is fixed?

What settings shall be applied to CCS/Project/Properties to modify supply voltage?

MSP430G2553: MSP430 series library for lcd1602(which is reference arduino library)

$
0
0

art Number:MSP430G2553

hi guys;

such as titile

I modify the arduino library for convert the msp430 series library

my problem is i don't know where is wrong on my code

i will post my project and library code please help me find the problem 

and lcd is show like picture 

my project file 

(Please visit the site to view this file)

Want proper voltage level shiftier

$
0
0

We are using MSP430F5529 and one UART base module which is of 5v so we choose a TXB0102 voltage level shiftier bidirectional, But our module is working only on Baud rate of 9600 so TXB0102 is not giving any response. 

Please suggest the 5v to 3.3 v Bidirectional voltage level shiftier according to Baud rate 9600 and UARt support for MSP430F5529. We fingd the simple MOSFET logic also but is is there any ready made IC then it will be better.  

CCS/MSP430G2955: Launchpad as Programming tool

$
0
0

Part Number:MSP430G2955

Tool/software: Code Composer Studio

Hello,

I read some topics about MSP430G2955 programming tool (No lauchpad for this MCU and the MSP-EXP430G isn't compatible ).
One of this topic is this one but there are several other --> processors.wiki.ti.com/.../EZ-FET_lite
I saw that the official tool was MSP-FET430U28A but impossible to use because I have to supply it for 10 studients

but I would like to have clearly this confirmation :

Is it possible to program and debug a MSP430G2955 with a lauchpad with build-in EZ-FET lite as the MSP-EXP430F5529LP ?

If yes what would be the wiring to do between the LP and the MSP430G2955?

Regards


MSP430FR2512: Cannot detect the MSP430FR2512 while programming via SPI-Bi-Wire (MSP-FET430UIF)

$
0
0

Part Number:MSP430FR2512

Hi TI Team,

We use MSP-FET430UIF to program a board with MSP430FR2512 via SPI-Bi-Wire.

We cannot flash our program using Uniflash:

[ERROR] MSP430: Error connecting to the target: Unknown device

Or CSS 8.1.0

Error connecting to the target: Unknown device.

Regards,

Walter

CCS/MSP430F5529: error #10234-D: unresolved symbols remain

$
0
0

Part Number:MSP430F5529

Tool/software: Code Composer Studio

Hello i upload the codes here with the header file. I tried to compile but i get this error. 

**** Build of configuration Debug for project asdqw ****

"C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -O

Building file: "../main.c"
Invoking: MSP430 Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccsv8/ccs_base/msp430/include" --include_path="C:/Users/mtdt/Desktop" --include_path="C:/Users/mtdt/workspace_v8/asdqw" --include_path="C:/Users/mtdt/Desktop" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/include" --advice:power=all --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
"../main.c", line 52: remark #1527-D: (ULP 2.1) Detected SW delay loop using __delay_cycles. Recommend using a timer module instead
"../main.c", line 71: remark #1528-D: (ULP 3.1) Detected flag polling using UCTXIFG. Recommend using an interrupt combined with enter LPMx and ISR
"../main.c", line 73: remark #1528-D: (ULP 3.1) Detected flag polling using UCTXIFG. Recommend using an interrupt combined with enter LPMx and ISR
"../main.c", line 80: remark #1528-D: (ULP 3.1) Detected flag polling using UCRXIFG. Recommend using an interrupt combined with enter LPMx and ISR
"../main.c", line 103: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 180: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 220: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 215: remark #1535-D: (ULP 8.1) variable "pmax" is used as a constant. Recommend declaring variable as either 'static const' or 'const'
"../main.c", line 299: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 342: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 375: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 399: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 451: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 484: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier
"../main.c", line 506: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 513: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 533: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 619: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 624: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 662: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 672: remark #1532-D: (ULP 5.3) Detected printf() operation(s). Recommend moving them to RAM during run time or not using as these are processing/power intensive
"../main.c", line 697: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 698: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 710: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 718: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier
"../main.c", line 726: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
Finished building: "../main.c"

Building target: "asdqw.out"
Invoking: MSP430 Linker
"C:/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --advice:power=all --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 -z -m"asdqw.map" --heap_size=160 --stack_size=160 --cinit_hold_wdt=on -i"C:/ti/ccsv8/ccs_base/msp430/include" -i"C:/Users/mtdt/Desktop" -i"C:/ti/ccsv8/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/lib" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="asdqw_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "asdqw.out" "./main.obj" "../lnk_msp430f5529.cmd" -llibmath.a -llibc.a
<Linking>

undefined first referenced
symbol in file
--------- ----------------
main C:\ti\ccsv8\tools\compiler\ti-cgt-msp430_18.1.3.LTS\lib\rts430x_lc_rd_eabi.lib<boot.c.obj>

error #10234-D: unresolved symbols remain
remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changing instructions
error #10010: errors encountered during linking; "asdqw.out" not built
remark #10372-D: (ULP 4.1) Detected uninitialized Port B in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port C in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port D in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.

>> Compilation failure
makefile:142: recipe for target 'asdqw.out' failed
gmake[1]: *** [asdqw.out] Error 1
makefile:138: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

(Please visit the site to view this file)(Please visit the site to view this file)

MSP430F149: MSP430F149 REV AA

$
0
0

Part Number: MSP430F149

Dear Sir,

In my design, i am using MSP430F149 controller. For MSP430F149 REV S or N, my circuit current is 600 uA. but for MSP430F149 REV AA, my circuit current increased to 1.06 mA without ant change.

so please give suggestion and also the difference between them to sort out the problem.

Regards,

Parshuram

MSP430FR5994: Flashing the MSP430FR5994 by Which Software.?

$
0
0

Part Number: MSP430FR5994

Hi all,

I am using FET-Pro-430-LITE - Elprotronic Inc. for Flashing the MSP430FR5969. Now i am using FR5994, But FET Pro is not supporting to MSO430FR5994. 

So which one i can use for dumping a .HEX File?

Thanks,

Anil D.

CCS/MSP432E401Y: Waiting for Data from PC (TCP Socket)

$
0
0

Part Number:MSP432E401Y

Tool/software: Code Composer Studio

Hello , 

After my microcontroller creates a TCP connect with the computer, it should be waiting for data from the computer, but it always jumps into Hwi_asm.sv7M.

stmfd sp !, {r4-r11}; save r4-r11 while we're at it

Can anyone help me.

Viewing all 21949 articles
Browse latest View live


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