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

MSP430FG4616: MSP430FG4616

$
0
0

Part Number:MSP430FG4616

Hi 

What would be longevity for this type of MCU family? It looks like it has been released in 2006. Is it still good for a new product design? 


CCS/MSP-EXP430FR2433: no response in MSP430Ware interrupt examples

$
0
0

Part Number:MSP-EXP430FR2433

Tool/software: Code Composer Studio

Hi,

When I use CCS8.0, I find some examples of MSP430Ware can not run on the MSP-EXP430FR2433.

First, msp430fr243x_1.c works, the LED is blink.

But the examples include "interrupt" can not run.

msp430fr243x_adc10_01.c

msp430fr243x_ta0_x.c, x=01,02,04

msp430fr243x_ta1_x.c, x=05,06

They all hitting in the __TI_ISR_TRAP.

I remember they works in CCS7.

Something wrong in my configuration?

YHH

RTOS/MSP430FR2633: On- line upgrade of MSP430FR2633 programmable codes

$
0
0

Part Number:MSP430FR2633

Tool/software: TI-RTOS

Customer want use Link on- line upgrade of MSP430FR2633 programmable codes,but customer need the SDK rtos boot.

Can we have any suggest?

CCS/MSP430G2744: MSP430Flasher programmer hex report issue Exit: 59 # ERROR: File type could not be identified

$
0
0

Part Number:MSP430G2744

Tool/software: Code Composer Studio

Hi,

As test to build to create pal.hex to programmer into MSP430G2744 board,  I get MSP430Flasher programmer hex report issue Exit: 59 # ERROR: File type could not be identified. 

I tested other pal_good.hex file is OK.  why the CCS6.2.0 build the pal.hex can't burned into chip?Thanks!

I Inset the pal_good.hex and pal_bad.hex as zip.(Please visit the site to view this file)

Below is the logs of MSP430Flasher:

D:\TI\MSPFlasher_1.3.17>MSP430Flasher.exe -n MSP430F2272_G2744 -w pal.hex -v -z [VCC]
* -----/|-------------------------------------------------------------------- *
* / |__ *
* /_ / MSP Flasher v1.3.16 *
* | / *
* -----|/-------------------------------------------------------------------- *
*
* Evaluating triggers...done
* Checking for available FET debuggers:
* Found USB FET @ COM19 <- Selected
* Initializing interface @ COM19...done
* Checking firmware compatibility:
* FET firmware is up to date.
* Reading FW version...
* Debugger does not support target voltages other than 3000 mV!
* Setting VCC to 3000 mV...done
* Accessing device...done
* Reading device information...done
* Loading file into device...
# Exit: 59
# ERROR: File type could not be identified
* Starting target code execution...done
* Disconnecting from device...done
*
* ----------------------------------------------------------------------------
* Driver : closed (No error)
* ----------------------------------------------------------------------------
*/

RTOS/MSP430F6779: SPI module getting stucked at SPI_transfer() function

$
0
0

Part Number:MSP430F6779

Tool/software: TI-RTOS

We are using MSP430F6779 with TI-RTOS . Currently we are unable to write/read the external flash via SPI since it gets stucked in the following line

  Status=SPI_transfer( spiHandle, &spiTransaction);


When we did the debugging, we found out that upon entering DMA interrupt it is not returning from the ISR.

Attaching the debug window screenshot

SPI function

 

/* SPI TEST STARTS*/
SPI_Transaction spiTransaction;
SPI_Handle spiHandle;
SPI_Params spi_params;
SPI_Params_init(&spi_params);
spi_params.transferTimeout = 10;


spiTransaction.count=1;
// spiTransaction.rxBuf = NULL;
spiTransaction.rxBuf = &spi_rxbuf[0];
spiTransaction.txBuf = &spi_txbuf[0];
spiHandle = SPI_open(0,&spi_params);
spi_txbuf[0]=0x06; // wren : write enable

while(1){
GPIO_setOutputLowOnPin(GPIO_PORT_P4, GPIO_PIN7);
GPIO_setOutputHighOnPin(GPIO_PORT_P4, GPIO_PIN7);



GPIO_setOutputLowOnPin(GPIO_PORT_P4, GPIO_PIN7); //CE

Status=SPI_transfer( spiHandle, &spiTransaction);

GPIO_setOutputHighOnPin(GPIO_PORT_P4, GPIO_PIN7); //CE
spiTransaction.count=5;
spi_txbuf[0]=0x02; // write instruction
spi_txbuf[1]=0x07; // address
spi_txbuf[2]=0x00; // address
spi_txbuf[3]=0x00; // address
spi_txbuf[4]=0xA9; // Data
GPIO_setOutputLowOnPin(GPIO_PORT_P4, GPIO_PIN7); //CE
// spiTransaction.txBuf =spi_txbuf;
SPI_transfer( spiHandle, &spiTransaction);
GPIO_setOutputHighOnPin(GPIO_PORT_P4, GPIO_PIN7); //CE




/*
spiTransaction.count=4;
spi_txbuf[0]=0x03; // read
spi_txbuf[1]=0x07;
spi_txbuf[2]=0x00;
spi_txbuf[3]=0x00;
GPIO_setOutputLowOnPin(GPIO_PORT_P4, GPIO_PIN7); //CE
// spiTransaction.txBuf =spi_txbuf;
SPI_transfer( spiHandle, &spiTransaction);
GPIO_setOutputHighOnPin(GPIO_PORT_P4, GPIO_PIN7); //CE
for(i=0;i<10;i++)
{
data[i]=spi_rxbuf[i];
}
*/
/* SPI TEST ENDS */

Configuration file

 

var hwi3Params = new halHwi.Params();
hwi3Params.arg = 0;
halHwi.create(46, "&SPIEUSCIBDMA_fxnTable", hwi3Params);

SPI INITIALIZATION  (This initialization is done in the main before calling BIOS start)

#include <ti/drivers/SPI.h>
#include <ti/drivers/spi/SPIEUSCIBDMA.h>

SPIEUSCIBDMA_Object spiUSCIBDMAObjects[MSP_EM430F67791_SPICOUNT];
uint8_t spiUSCIBDMAscratchBuf[MSP_EM430F67791_SPICOUNT];

const SPIEUSCIBDMA_HWAttrs spiUSCIBDMAHWAttrs[MSP_EM430F67791_SPICOUNT] = {
{
.baseAddr = EUSCI_B1_BASE,
.clockSource = EUSCI_B_SPI_CLOCKSOURCE_SMCLK,
.bitOrder = EUSCI_B_SPI_MSB_FIRST,
.scratchBufPtr = &spiUSCIBDMAscratchBuf[0],
.defaultTxBufValue = 0,

/* DMA */
.dmaBaseAddr = DMA_BASE,
/* Rx Channel */
.rxDMAChannelIndex = DMA_CHANNEL_2,
.rxDMASourceTrigger = DMA_TRIGGERSOURCE_27,
/* Tx Channel */
.txDMAChannelIndex = DMA_CHANNEL_1,
.txDMASourceTrigger = DMA_TRIGGERSOURCE_28
}
};

const SPI_Config SPI_config[] = {
{
.fxnTablePtr = &SPIEUSCIBDMA_fxnTable,
.object = &spiUSCIBDMAObjects[0],
.hwAttrs = &spiUSCIBDMAHWAttrs[0]
},
{NULL, NULL, NULL},
};

/*
* ======== MSP_EM430F67791_initSPI ========
*/
void MSP_EM430F67791_initSPI(void)
{
/*
* NOTE: TI-RTOS examples configure USCIB0 as either SPI or I2C. Thus,
* a conflict occurs when the I2C & SPI drivers are used simultaneously in
* an application. Modify the pin mux settings in this file and resolve the
* conflict before running your the application.
*/

/* SPI CLK */
GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P4, GPIO_PIN6); // P4.6
/* MOSI/SIMO */
GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P4, GPIO_PIN5); // P4.5
/* MISO/SOMI */
GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P4, GPIO_PIN4); // P4.4

SPI_init();
}

 

CCS/MSP430FR2433: More power consumption due to UART

$
0
0

Part Number:MSP430FR2433

Tool/software: Code Composer Studio

Hello,

I am working with MSP430FR2433 Launchpad, I receive a byte from Arduino using UART which determines RTCMOD and then I start RTC and enter LPM3.5. I see that current consumption is huge in LPM3.5 but when I plug out the cables of RX and TX the current consumption goes down to 550 namps. Is there anyway I can deal with this either from software and circuitry point of view?

Regards,

Prudhvi Sagar.

MSP-FET430UIF: Problem during update

$
0
0

Part Number:MSP-FET430UIF

I started the update of the MSP430usb and after this procedure the debug-interface is no longer usable.

No leds are lit but windows can recognize when the interface is connected/disconnected.

I think that the internal firmware update went wrong for any reason,

How can I recover the debug-interface? What I have to do to restore the firmware on it?

we used firmware version 2, can I restore this?

Thanks

MSPFET flasher for WIN XP

$
0
0

Hi,

may i know if there's MSPFlasher which is able to support Windows XP? I was trying to run MSPFlasher 1.03.11.00 on WinXP where currently NOT able to detect the programmer (MSP-FET) driver. We did try to download from the webs but with no luck any drivers found.

So the only option we see, we are force to install CCS IDE into WinXP but unfortunately we face another issue where there is an error occur during installation. Are there work around which we can use to enable develop done using older machines operating via WIndows XP?

 

Regards,

Leo


MSP430G2553: MSP430G2553IN20

RTOS/MSP430F5259: TI-RTOS:Porting MSP430F5529 Project to MSP430F5259 Rebuild error

$
0
0

Part Number:MSP430F5259

Tool/software: TI-RTOS

HI 

Today, I'm try to porting 5529 projects  to 5259,   modified cmd and ccxml files, and Predefined Symbols (__MSP430F5259__) , then the following error occurs when I rebuild the projects.

Description Resource Path Location Type
gmake: *** No rule to make target 'build-601269185', needed by 'configPkg/compiler.opt'. CMS_MSP430F5259_TIRTOS C/C++ Problem
gmake: Target 'all' not remade because of errors. CMS_MSP430F5259_TIRTOS C/C++ Problem
gmake[1]: *** [build-601269185-inproc] Error 1 CMS_MSP430F5259_TIRTOS C/C++ Problem
xdc.cfg.Program : The package 'ti.sysbios.family.msp430' is not compatible with XDCtools used in this build. Please either use XDCtools compatible with that package, or update the product containing that package, or rebuild the package with XDCtools 3.50 or later. .xdchelp /CMS_MSP430F5259_TIRTOS line 71 C/C++ Problem

NOTE: This is not the previous mistake.   The previous error was "......... ti/drivers/lib/drivers_MSP430F52599.ae430X can't find"   so I recompile sysbois and ti-driver based on

The goal is to produce the following files

drivers_MSP430F5257.ae430X

drivers_MSP430F5257.ae430X.mak

drivers_MSP430F5257_instrumented.ae430X

drivers_MSP430F5257_instrumented.ae430X.mak

But I had the following problems during the compilation process


Error: The compiler in f:/Program is not compatible with this version of TI-RTOS or SYS/BIOS. Please use Arm compiler 5.2.2 or newer. 

But my ccs7.4 compiler is already TI v16.9.6.LTS  , I don't know how to change it.

and  ti-cgt-arm_16.9.6.LTS should be the latest version of the arm compiler

version: bios_6_46_00_23         msp430_driverlib_2_70_01_01a       xdc_toools_3_32_00_00_06

Somebody help me?  thank you.

best regrads

xc.mo

MSP430F2274: Moving a 1Kb value around memory

$
0
0

Part Number:MSP430F2274

Hello,

Originally I planned on using the DMA controller to move a value around memory during an interrupt, but after reviewing the MSP430F2274 datasheet I realized that there was no DMA controller present. With that said, how could I move the value around in memory? There is not much documentation about the intrinsic functions like "__data20_write_short" to help understand if these functions will be useful. Without having a DMA controller, is there an alternative method to moving a value around in memory that is 1024 bits in size? It seems trivial and incorrect to use the function "__data20_write_char" 28 times consecutively to achieve this task. Thank you.

Also, is there any documentation which gives a more descriptive documentation about the intrinsic functions incorporated in CCS and the MSP430? The help contents page only lists them without much information about what they do (although most are implied). 

MSP430F2274: Failure when connecting to UART

$
0
0

Part Number:MSP430F2274

Been trying to connect my device and utilize the UART connection to see the output from PuTTY, but keep getting a failure. The code is an example from the online resources guide, but when I try to load the project I get two different error messages. One is that the it cannot connect to COM65 at Baud 9600, which does not exist after looking at the connections on the computer's control panel. Another issue is after trying to configure the targetConfigs file to set up COM4 as the UART connection, which returns a "Load program error" with the following messages:

ComPort: Trouble Writing Memory Block at 0x8000 on Page 0 of Length 0x156: Read timed out
ComPort: File Loader: Verification failed: Target failed to write 0x8000
ComPort: GEL: File: C:\Users\sean.kramer\workspace_v8\printf_msp430\Debug\printf_msp430.out: Load failed.

Is there a reason why there is no connection, or a method of fixing this? I have searched online for similar issues and their fixes did not work for this problem. Thank you.

TM4C129XNCZAD: Are TM4C129XNCZAD and MSP432E411YTZAD direct replacements?

$
0
0

Part Number:TM4C129XNCZAD

Dear TI-Expert,

I have chosen the TM4C129XNCZADI3 for a new design, but I had to recognize, that software support (especially ADC example code) is much better for the SimpleLink device MSP432E411YTZAD.

After having a rather deep look into the datasheets of both processors I couldn't find any functional difference, even the silicon errata look very similar. Are those two devices interchangeable?

MSP430FR5739: Minimum startup time to execution of main()

$
0
0

Part Number:MSP430FR5739

What is the minimum/typical  startup up time for a msp430fr5739 to get to the first line of code in main() with the standard TI bootloader?

The typical startup time I am measuring is ~= 6.45ms. Is there anyway to decrease it? Change to a custom bootloader?

Do to an application where this part is embedded having had a firmware update, I now have an situation where the part must be ready by 2.5 ms instead of 10ms.

I have 150,000 parts in stock which will be affected and rendered unusable unless a solution is found.

Help!

CCS/MSP430F5529: MSP430F5529 UART COnfiguration Issues

$
0
0

Part Number:MSP430F5529

Tool/software: Code Composer Studio

Hi,

I am configuring an MSP430F5529 UART at a DCO of 8 MHz and a baud rate of 115200.  I am establishing a serial communication between MSP430F5529 and MSP430F233 MCUs.  I am kind of new to the UART configuration of different MSP430 MCUs. 

Thanks! 

The UART Configuration for the MSP430F233 and MSP430F5529 are listed below.

MSP430F233 UART

//****************************************** UART Initialization ******************************************//

P3SEL = 0x30; // P3.4,5 = USCI_A0 TXD/RXD
if (CALBC1_8MHZ==0xFF) // If calibration constant erased
{
while(1); // do not load, trap CPU!!
}
BCSCTL1 = CALBC1_8MHZ; // Set DCO to 8MHz
DCOCTL = CALDCO_8MHZ;
UCA0CTL1 |= UCSWRST; // **Put state machine in reset**
UCA0CTL1 |= UCSSEL_2; // Clock Source SMCLK
UCA0BR0 = 69; // 8MHz 115200
UCA0BR1 = 0; // 8MHz 115200
UCA0MCTL = UCBRS2 + UCBRS0; // Modulation UCBRSx = 5
UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
IE2 |= UCA0RXIE; // Enable USCI_A0 RX interrupt
//*********************************************************************************************************//
_BIS_SR(GIE);

MSP430F5529 UART

P3SEL |= BIT3 + BIT4; // P3.3 and P3.4 -> UART Ports
UCA0CTL1 |= UCSWRST; // **Put state machine in reset**
UCA0CTL1 |= UCSSEL_2; // Clock Source SMCLK
UCSCTL0 = 0x08; // set DCO to 8 MHz
UCA0BR0 = 69; // 8MHz 115200
UCA0BR1 = 0; // 8MHz 115200
UCA0MCTL = UCBRS2 + UCBRS0; // Modulation UCBRSx = 5
UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
UCA0IE |= UCRXIE; // Enable USCI_A0 RX interrupt


MSP432E401Y: HTTP 403 Response

$
0
0

Part Number:MSP432E401Y

Hi,

I am using the HTTP library provided in the SimpleLink SDK, and on my GET request I am getting a 403 error from the server. I would like to see more data from the response. So not just the HTTP Status Code, but also the Error Code and Description. How can I do this in the http library? I am following (for the most part) the httpget.c example program. Thanks in advance for the help.

MSP430FR2355: can't get mspdebug to work

RTOS/MSP432E401Y: MSP432E401Y UART PROGRAM

$
0
0

Part Number:MSP432E401Y

Tool/software: TI-RTOS

Hi,

Can i use 'uart_pc_echo _12mhz_brclk' example for msp432e401y microcontroller.

Thank you

Regards

Kalyan.

MSP430F425: Can I debug/program MSP430F425 using emulator available on Launchpad for MSP430G2253?

$
0
0

Part Number:MSP430F425

I am trying to figure out how to connect my MSP430F425 target board with MSP430G2253 launchpad to debug and program. Please help by sharing a schematic.

Regards,

Parag

CCS/MSP430F2274: MSP430F2274 I need use DMA + Timer_B =PWM (DTMF) Do you have any examples?

$
0
0

Part Number:MSP430F2274

Tool/software: Code Composer Studio

Can you point to examples of using DMA and Timer_B in the bundle to generate PWM (DTMF)?

Viewing all 22222 articles
Browse latest View live