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

MSP432P401R: MSP432P401R BSL Scripter command RX_DATA_BLOCK_32 issue with KEIL generated hex file

$
0
0

Part Number:MSP432P401R

Hello Team,

One of my customers is facing issue with MSP432 programming using BSL scripter v3.2.1... He has BSL Rocket tool and his setup is working fine with Blink_LED.hex file but when he is using it with KEIL generated hex file of his program,  command RX_DATA_BLOCK_32 give error as :

[ERROR_MESSAGE]Record type is not valid for the Scripter!

I have checked his application hex file bsl_config.hex but couldn't find issue with the same.. Please find what he reported to me:

_____________________________________________________________________________________________________

We are facing one more issue regarding MSp432 programming using BSL scripter via Rocket on UART.

While programming the flash with .hex build using KEIL, following message received,.

Platform :- Keil Uvision 5
BSL-Scripter : 3.2.1
Hex Format : Intel Hex

[ERROR_MESSAGE]Record type is not valid for the Scripter!

Here I am attaching the hex file , bsl script also keil project for your reference.

Note :- we are able to program blink Led.hex file that comes with BSL Scripter without any issue.
__________________________________________________________________________________

I am attaching his program file bsl_config.hex, his script file and log generated by bsl scripter... Please help me in resolving his issue.

Regards,

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


CCS/MSPDRIVERLIB: CCS7.2 driverlib -- where do I put it?

$
0
0

Part Number:MSPDRIVERLIB

Tool/software: Code Composer Studio

I had to use the offline installer to get the ccs onto this computer.  And nothing shows up under Resource Explorer.  

I have manually downloaded the DriverLIB for the MSP432.  But I don't know where to put it.  Considering everyone else is havnig no difficulties in using it, I suspect there's something basic that I'm not seeing.  The code horks at the #include <ti/devices/msp432p4xx/driverlib/driverlib.h> line.  

This is getting very frustrating.  It used to be that you'd just install CCS and tada, you can start working.  Now there's a cloud and MSPWare (which I also don't seem to be able to get working) and such.  All I want is to be able to code for the MSP432 like I do the MSP430.  I clicked the boxes for the MSP432 -- why are none of the tools I need for that present?

CCS/MSP430F133: CCS/MSP430F133

$
0
0

Part Number:MSP430F133

Tool/software: Code Composer Studio

Good Morning, I've a small problem using CCS6 to program a MSP430F133:

In my program I need to store data in INFO memory, starting from 0x1000 location.

I used the .sect directive, but when I compile and download program, in the INFO memory there isn't my data.

How Can I write them?

I wrote this program:

.sect     ".infoB"

.byte     xxxh,xxxh,xxxh,xxxh

Thanks

 

Compiler/MSP430F5529: Control multiple MSP430 F5529

$
0
0

Part Number:MSP430F5529

Tool/software: TI C/C++ Compiler

HI Guys I want to control multiple MSP430 F5529 at the same time, so I set ID for them.

but there are some problem, If I use USB to power IC,my program can run normally.

But when I use DC power supply to power, RX's  result of the return will be wrong.

So i hope some people can help me to solve, I will appreciate you, thanks.

I will post my  test code, help me to check please.

This is first F5529's code

#include <msp430.h>

void DCO25MHzInit(void);

void TA0Init(void);
unsigned char counter;
unsigned long array[4];
unsigned char Ti_ID = 1;
unsigned char i;
unsigned char a;

unsigned char uartreceive(unsigned char *redata,unsigned char datalength)
{
while(datalength)
{
while(!(UCA0IFG & UCRXIFG ));

UCA1RXBUF = *redata;
redata++;
datalength--;
}
while(UCA1STAT & UCBUSY);
}
int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer

DCO25MHzInit();

TA0Init();

//UCA0CTL0 |= UCSWRST;

P3SEL |= BIT3+BIT4; // Enable RX & TX pin
UCA0CTL1 |= UCSWRST; // **Put state machine in reset**
UCA0CTL1 |= UCSSEL_2; // SMCLK
UCA0BR0 = 0xD9; // 25MHz/115200 = 217.01 = 0xD9
UCA0BR1 = 0x00; //
UCA0MCTL |= UCBRS_0 + UCBRF_0; //
UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
UCA0MCTL |= UCBRS_1 + UCBRF_0; // Modulation UCBRSx=1, UCBRFx=0

UCA0IE |= UCRXIE;
UCA0IE |= UCTXIE;

_enable_interrupts();

}
#pragma vector=USCI_A0_VECTOR
__interrupt void one_uart_ISR(void)
{
for(i=0;i<4;i++)
{
if(counter = UCA0RXBUF)
{
uartreceive(array,4);
array[i] = counter;
}
}
if(Ti_ID = array[0])
{
UCA0TXBUF = 2;
a = UCA0TXBUF;
}
else
{
__asm(" NOP");
}

}

This is second F5529's code

#include <msp430.h>

void DCO25MHzInit(void);

void TA0Init(void);

unsigned char counter;
unsigned long array[4];
unsigned char Ti_ID2 = 2;
unsigned char i;
unsigned char a;

unsigned char uartreceive(unsigned char *redata,unsigned char datalength)
{
while(datalength)
{
while(!(UCA0IFG & UCRXIFG ));

UCA1RXBUF = *redata;
redata++;
datalength--;
}
while(UCA1STAT & UCBUSY);
}
int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer

DCO25MHzInit();

TA0Init();

P3SEL |= BIT3+BIT4; // Enable RX & TX pin
UCA0CTL1 |= UCSWRST; // **Put state machine in reset**
UCA0CTL1 |= UCSSEL_2; // SMCLK
UCA0BR0 = 0xD9; // 25MHz/115200 = 217.01 = 0xD9
UCA0BR1 = 0x00; //
UCA0MCTL |= UCBRS_0 + UCBRF_0; //
UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
UCA0MCTL |= UCBRS_1 + UCBRF_0; // Modulation UCBRSx=1, UCBRFx=0

UCA0IE |= UCRXIE;
UCA0IE |= UCTXIE;

_enable_interrupts();
}
#pragma vector=USCI_A0_VECTOR
__interrupt void one_uart_ISR(void)
{
i = UCA0RXBUF;
if(Ti_ID2 = i)
{
UCA0TXBUF = 100;
a = UCA0TXBUF;

}
else
{
__asm(" NOP");
}
}

Starterware/MSP432P401M: Looking For Sample Code For Frequency Counter

$
0
0

Part Number:MSP432P401M

Tool/software: Starterware

Customer looking sample code to measure frequency, idea is have external clock to be measured fed into internal timer against and compare against timer with known clock source to calculate frequency.

CCS/MSP432P401R: Unable to check Code Samples or DriverLib

$
0
0

Part Number:MSP432P401R

Tool/software: Code Composer Studio

When trying to view code samples for MSP432P401R, on code composer studio, I get an error saying that file doesn't exist.

How do I get past this error? What am I missing?

Also, is there a zip file for code sample ?or a driver lib file that I can download from the net and add to my projects manually?

EZ430-T2012: Need connector part number for this board please

$
0
0

Part Number:EZ430-T2012

I need the connector part number for this board please .. i use the ez430 as a programmer tool and need to have the same mating connector as on the EZ430-T2012 part

Compiler/MSP430FR5989: Repeated start in I2C and receive only one byte

$
0
0

Part Number:MSP430FR5989

Tool/software: TI C/C++ Compiler

Hello,

I have a problem with receiving only one byte after a repeated start sequence. The easiest way to explain this is by example:

Working case, with STOP/START sequence

  1. Send START / W - set UCTXSTT and UCTR in UCBxCTLW0
  2. Send byte no 1
  3. Send byte no 2
  4. Send stop UCBxCTLW0  |= UCTXSTP
  5. Change mode to reading - clear UCTR in UCBxCTLW0
  6. Send START / R - set UCTXSTT and UCTXSTP in UCBxCTLW0
  7. Receive only one byte, after which MCU send NACK and STOP.

Non working case with repeated start sequence:

  1. Send START / W - set UCTXSTT and UCTR in UCBxCTLW0
  2. Send byte no 1
  3. Send byte no 2
  4. Change mode to reading - clear UCTR in UCBxCTLW0
  5. Send START / R - UCTXSTT and UCTXSTP in UCBxCTLW0
  6. Receive two bytes: the first one is ACKed and the second one is waiting for my move

I found a workaround for this problem, I am using UCASTPx mode 10b, which allows for automatic STOP generation after sending/receivng n-bytes. It looks like this:

  1. UCBxTBCNT = 0 (set counter to zero, what blocks auto STOP generation)
  2. Send START / W - set UCTXSTT and UCTR in UCBxCTLW0
  3. Send byte no 1
  4. Send byte no 2
  5. Change mode to reading - clear UCTR in UCBxCTLW0
  6. UCBxTBCNT = 0x01 ( set counter to 1  byte)
  7. Send START / R - UCTXSTT in UCBxCTLW0
  8. Receive only one byte, after which MCU send NACK and STOP.

My problems:

1. Why I2C doesn't work properly if i set UCTXSTT and UCTXSTP in repeated start mode?

2. The documentation contains a stipulation that modification of UCTBCNTx is possible only if UCSWRST is equal 1. I can not meet this condition because it will disable I2C and release SCL line, and repeated start become impossible. Do I have to worry about this stipulation?

Best regards,

Mateusz


MSP430F5438: Looking for TI AppNote introducing difference between F5438 and F5438A

$
0
0

Part Number:MSP430F5438

Hello all,

I remember there was an AppNote about the difference between Msp430F5438 and Msp430F5438A on this Forum, but I can't find it now. Hope someone could provider a URL.

Thanks .

Best Regards,

   Seafesse

MSP-GANG: Warranty for MSP Gang programmer

$
0
0

Part Number:MSP-GANG

Hi,

May I know is there any warranty for this MSP Gang programmer? I am facing some issue and suspecting the programmer is not working.

Best regards,

KH

MSP430F6779: does this MCU supports Contiki-6Lowpan with any suitable 2.4Ghz /Sub 1 Ghz Radio?

RTOS/MSP432P401R: how to create a TI-RTOS project in IAR 8.1 step by step

$
0
0

Part Number:MSP432P401R

Tool/software:TI-RTOS

i want to create a TI-RTOS project in IAR step by step instead of using the command line. this method is hard to accomplish because of PC's difference

and i do not want using the web method,because my PC can not download the TI-RTOS examples through IAR integrate solutions  in  IAR 8.1

is  there a simple way to create my RTOS?

MSP430F67471: Temperature Sensor of the MSP

$
0
0

Part Number:MSP430F67471

Hi everybody,

one of my customers has problem with the MSP430F67471 temperature sensor.

  • It seems that the sensor is calibrated through TI at 30° and 85°. Thats correct right?
  • The customer measured these temperatures and saw that these temp measurements are very good (+- 1k)
  • But at negative temps they see that the error is about +- 5k. This error is way to high for them. They allow max +- 2k. Do we have a graph or something that shows the error at negative temps? Or can you explain why this high error occurs?

Now they want to understand why this error occurs and need more information about the sensor

  • What is the principle of the temp sensor? PN with a diode? Transistor? or something else?
  • Can the internal sensor measure negative temps? If yes what is the accuracy etc? Do we have app notes or TI-Designs reagrding the temp measurement with the MSP430F67471?

thank you

best regards

Bastian

MSP430FR5994: Is there a "break" instruction in the MSP430 instruction set ?

$
0
0

Part Number:MSP430FR5994

A "break" instruction would act as a breakpoint when a debugger is connected, otherwise it would act as a NOP.

MSP432P401M: MSP432 TI-RTOS demo uartecho set baudrate to 4800.

$
0
0

Part Number:MSP432P401M

Hi Champion,

i test the MSP430 TI Driver example "uartecho_MSP_EXP432P401R_tirtos_ccs",  I change baudrat to 9600, 115200 all can work, but when I change it to 4800, it cannot work, do you know other setting I should do?

I change 

uartParams.writeDataMode = UART_DATA_BINARY;
uartParams.readDataMode = UART_DATA_BINARY;
uartParams.readReturnMode = UART_RETURN_FULL;
uartParams.readEcho = UART_ECHO_OFF;
uartParams.baudRate = 4800;

in "mainThread", my customer want to use 4800 baudrate.

Thanks!

BR

Joe


MSP432P401R: Migrating into MSP432 from C2000

$
0
0

Part Number:MSP432P401R

Hi,

I recently bought MSP432-Launchpad, I am now completely confused with all the registers term and naming conventions.

I have been long time Piccolo and Delfino users, at first I thought it wont be this hard. I realize that the documentation style is extremely different compared to C2000 family.

Does anyone can recommend me what is the best resource I can learn from? is there any code generator for MSP432?what is the underlying difference between the C2000 and ARM that makes it rather difficult to learn?

Thanks

Arief

MSP430F5529: ADXL345 Interface

$
0
0

Part Number:MSP430F5529

Hi All,

Has anyone had any luck with Interfacing an ADXL345 3-axis accelerometer with an MSP430F5529 over I2C ? I have seen that energia has an example via SPI, but i'm using c in IAR.

I would Ideally like to do some modeling with matlab too.

Thanks in advance,

Compiler/MSP430F5172: How to use the timer0_D0 flexibly?

$
0
0

Part Number:MSP430F5172

Tool/software: TI C/C++ Compiler

Dear engineers,

I want to use the TD0 to realize two timing,and the two timing can be chose  at any time,but I can not finish it.the below are my codes.my codes can only realize on timing,the other can not realize. I need engineers' help .

void main()
{  
   P1DIR |=BIT7;
   TD0CCTL0 |=CCIE;
   TD0CTL0=TDSSEL_2+MC_1;
   Time_int();
   while(1)
  {
    ;
  }
}
unsigned int select=0;
void Time_int()
{
  
  select++;
  if(select%2==1)
  {
    Timer();
  }
  else
  {
     Timer_5();
  }
  if(select==1000)
  {
    select=0;
    TD0CCTL0&=~CCIE;
  }
}
void Timer()
{
 
  TD0CCR0=873;
 __bis_SR_register(GIE);
}
void Timer_5()
{
   TD0CCR0=436;
  __bis_SR_register(GIE); 
}
#pragma vector=TIMER0_D0_VECTOR                                   
 __interrupt void TIMER0_D0_ISR(void) 
 {
    P1OUT ^=BIT7;
 }

CCS: undefined reference to `Serial1'

$
0
0

Tool/software: Code Composer Studio

Hello, 

I am using Energia 1.6.10E18 and I'm trying to use the multiserial example . 


void setup() {
// initialize both serial ports:
Serial.begin(9600);
Serial1.begin(9600);
}

void loop() {
// read from port 1, send to port 0:
if (Serial1.available()) {
int inByte = Serial1.read();
Serial.write(inByte);
}
}

When opening the example project  and trying to verify - I get the error :\Local\Temp\arduino_modified_sketch_33016/MultiSerial.ino:22: undefined reference to `Serial1' 

Other functions work well, even using just Serial.begin(9600) can create a failure free project. 

How can I get rid of the undefinded Serial1 ? Where is it defined? 

Any help is appreciated 

MSP430F2002: migrating to F2002 from G2131

$
0
0

Part Number:MSP430F2002

Hi everybody ,

please I have a product  with pcb  working and in production  using MSP430G2131IRSA16R   .

now  I need  this product to be able to work up to 105 degrees celsius ,  keeping same pcb and ideally same sw .

for the micro  I am moving to  MSP430F2002TRSA   so some questions :

1- as far as I see it should be   a pin2pin  drop in  no issue at all :  do you see anything special to consider ?

2- about SW   do you have any indication / suggestion  apart from changing headers ? 

any suggestion is very welcome to speed up the process .

thank you 

bye

Carlo

Viewing all 22388 articles
Browse latest View live


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