Quantcast
Channel: MSP430 Technical Forums
Viewing all 2077 articles
Browse latest View live

want to program multiple tiva launchpads through usb hub


Mac Homebrew formulas for GCC 4.9

$
0
0

I've been working on some homebrew formulas for using gcc 4.9 with the msp430. I've got some preliminary builds working (though I haven't had the chance to upload code to a board yet). They're available via my tap '8bitsofme/homebrew-msp430'.
 
I've been running into this issue where the 'make install' step fails, but if I repeat 'make install' everything seems to work out fine. I'm new to cross compiling. If anyone can guide me I'd love to fix this issue and try to get these formulas published in mainline homebrew.

 

https://github.com/8bitsofme/homebrew-msp430

How to implement Timer interruption in Energia?

$
0
0

Hello,everyone!

I meet a problem, when I want to realize a Heart Rate detection program which is written in arduino. I have two questions:

1.how to implement Timer interruption in Energia?

2.what is the clock source of msp430fr5969 launchpad?Should I solder an external crystal on it?

At last, I put the arduino program as the attach files.Attached File  PulseSensorAmped_Arduino_1dot2.rar   3.92KB   0 downloads

CC3200LAUNCHPAD upload failed via Energia, why?

$
0
0

Hi,

 

I know Energia today and tried the example code "Blink" of Energia, but it shows "Upload failed.". More output is like below.

C:\Users\Tom\AppData\Local\Temp\build445850278507810895.tmp\Blink.cpp.bin]
Binary sketch size: 4,128 bytes (of a 262,144 byte maximum)
Opening \\.\COM17
Getting storage list
Bootloader Version: 4
Silicon version ES1.32
Bootloader version is 2, 1, 4, 0
It's a CC3101 device: PG1.32
BlockSize is 4096, number of blocks is 64
erasing 1 blocks starting from  4
Switch to NWP bootloader complete
Silicon version ES1.32
Bootloader version is 2, 0, 4, 0
BlockSize is 4096, number of blocks is 16
erasing 12 blocks starting from  0

I flashed the Service Pack to my CC3200LAUNCHPAD Rev4.1, and tried CC31xx_CC32xx_ServicePack_1.0.0.1, CC31xx_CC32xx_ServicePack_1.0.0.1.1 and CC31xx_CC32xx_ServicePack_1.0.0.1.2, but still failed like above.

And I had connected SOP2-bottom with J8-top sides when using Energia.

 

Workaround: I can use Energia to compile, and use UniFlash to flash the image to the kit.

 

Could anyone help?

Thanks!

correct IDE / Compiler for this project?

$
0
0

Hello, I have a small remote based on the MSP430G2203 that i'm trying to clean and build but i'm getting missing driverlib and uart header files. what compiler do i use to include these? i'm using Code Composer Studio 6.01 and TI compiler 4.3.3

 
I have attached the project zip file below.

Attached Files

Model-based code generator

$
0
0

Just wondering, besides LabView full/pro and Matlab Embedded Coder (I don't think it supports MSP430 fully), are there any other model-based coder? I've been playing with VisSim for an hour or so but it's a very old program. It requires CCS 4.x and doesn't detect the newer v6.

 

I'm thinking of redoing a control systems course in my spare time and being able to use a model-based IDE instead of a C one may help with giving better visual aid into what's happening. 

 

 

Enable serial port in OS X (Mac book)

Try using lwip_degub with EK-TM4C1294XL

$
0
0

Dear all,

 

I would like to use the LWIP debug traces. However; i am facing trouble in order to enable it.

 

In lwipopts.h, I am defining:

 

#define LWIP_DEBUG 1 
#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ALL 
#define LWIP_DBG_TYPES_ON LWIP_DBG_ON 
#define NETIF_DEBUG LWIP_DBG_ON
#define LWIP_STATS                      1
#define LWIP_STATS_DISPLAY              0
#define MEM_STATS                       1
 

 

Therefore, I am difficulties to define LWIP_PLATFORM_DIAG(x) macro since UARTprintf function is not available on such platform.

 

Thanks for your help.

 


UART connection between two microcontrollers

$
0
0

I am trying to connect two microcontrollers using the Serial library and I am having difficulty getting them to work.

 

Code 1:

const int led = GREEN_LED;
void setup()
{
  Serial2.begin(9600);
  pinMode(led, OUTPUT);
}

void loop()
{
 for (int i = 0; i <= 10; i++)
 {
   Serial2.println (i); //Send i to Rx Arduino
   digitalWrite(led, HIGH);
   delay(100);
   digitalWrite(led, LOW);
   delay(100);   
 }
}

code for microcontroller 2(receiver):

int val;
int led = GREEN_LED;

void setup()
{
  
  Serial.begin(9600);
  Serial3.begin(9600);
  Serial.println("Serial Monitor Connected");
  
}

void loop()
{
  int incoming = 0;
  incoming = Serial3.available();
  
  if (incoming > 0)
  {
   val = Serial3.parseInt();  //Reads integers as integer rather than ASCI. Anything else returns 0
   Serial.println(val);
   digitalWrite(led, HIGH);
   delay(100);
   digitalWrite(led, LOW);
   delay(100);
   
  }
}

The output I get on the monitor is "Serial Monitor Connected" and some random integer. The LED is not blanking.

 

 

,

d7eame


View the full article on Stellarisiti. 43oh pulls Stellarisiti Energia posts, so that members do not miss out questions. Please bear with this arrangement for now. Thanks!

MSP430 with CC2530

Unable to connect with internet

$
0
0

Hi,

I had a CC3200 Launchpad and i programmed it with energia to send data on xively and it worked out, but the board got damaged so i bought another board of same version CC3200 Launchxl Rev 3.2.

I am using windows 7 with energia to to program it and i already formatted and install the new service pack.

Now i programmed it to blink the led on launchpad and it worked fine but wen i programmed it to connet to internet  it is not getting connected to internet.

Please guide!!!!

Serial Switch

$
0
0

Hello Everyone:

 

I am a newbe to the MSP430G2 Launchpad,  I have been trying to get the Serial Switch project to work.  all that happens is all the led's light when the program starts, but I can not get them to go off and I am using a msp430g2452 chip, what am I missing or doing wrong I am using Energia to program.  I have had some other programs work, even receiving serial data from the launchpad (reading analog inputs and printing to the serial monitor), just not this one (serial switch).

 

Thanks for any and all help.

W8TFI

launchpad msp430f5529 5v external power supply

$
0
0

hi, i'm a proud owner of a launchpad Msp430F5529, 

and i'm trying to power it up with an external 5v power supply. 

 

if i connect the device to my computer - it works.

i connect the 5v network it doesn't work.

i connect the 3v3 network to a 3v3 power supply - it works.

i connect the launchpad to a galaxy cell-phone charger - still , no work. 

 

the 5v , 3v3 ang GND jumpers are connected. when i connect the 5v power supply i measured the voltage on the 3v3 jumper - nothing there. 

i assume the computer is activating the dc-dc convertor which is not powered when no computer connection exits , if thats the case , how can i work it to work ? 

if i'm wrong, what is the problem? 

thank you

 

 

I2C on CC3200

$
0
0

I have been attempting to work with serial communication between the board and other devices, but cannot get them to communicate while on connected to the booster pack rails.  The only time I have ever gotten any Serial communication to work is by connecting a UART device to J6 & J7 in the middle.  Is there a different Pin configuration I need to get those to work?  I switched the jumpers on J6 & J7 down after downloading my code to the CC3200.

msp430-fr4xx2xx

$
0
0
So now that msp430-elf is robust enough to be usable, I'm updating BSP430 one last time before taking on a job where I'll be working Nordic chips. I figured I'd add the EXP430FR4133 since it's the first launchpad that mspgcc can't support.

All went swimmingly until I tried to compile the nop bootstrap application, and things blew up in the clock configuration. "Wonderful," I thought, "TI's gone and made a third version of the CS peripheral, subtly incompatible with the original FR57xx CS and the revised FR58xx CS_A."

Nope. It's not subtly incompatible. They've taken the UCS module from the F5xx/6xx chips, rearranged and resized some of the bitfields, and called it a CS module. That's wholesale incompatible, and is pretty much a last straw for me and MSP430. (Understand: I wouldn't care if they had called it a CS4 module or a UCS_A module. But using the same distinguishing __MSP430_HAS_CS__ preprocessor symbol for fundamentally different peripherals is just unacceptable.)

"Completely different but mostly the same." -- Joy

(Bonus points to anybody who knows where that quote comes from.)

msp430g2553 using the Sharp 2Y0A21 distance sensor

$
0
0

Hi  I'm new to using the msp430, I've taken a class that involves projects with the msp430.

 

We choose projects and the professor decides which sensors fits the criteria of completing that project.

 

I was given two of  the Sharp  distance sensors, we had used sensors such as photocell and temperature sensors in conjunction with midterm code given to us.  So my professor told me I could use the midterm code to get readings off the distance sensor. The code did not give accurate readings, I would get resulsts from one of the sensors but it did not make much sense because it was connected to a different port.

I then went to my professor and he could not find  what was wrong with it.  My professor tested the chip and he said it was fine so I assume it was the code. My professor told me he would send me some other code to test it, but I have yet to get a response.

 

So I'll attach the modified midterm code I have, and also if anyone has or could link me to some simple code to get readings out of sensors that would be most appreciated.

 

 

Also I'm using  Code Composer as a compiler.

Attached Files

TLC59116F Eagle Library?

$
0
0

I'm trying to find an Eagle Library for the TLC59116 in the 28-TSSOP package.

I've tried Googling it but I'm having no luck.

 

Does anyone have one?

I know I can modify an existing part but I've had no luck with that in the past.

MSP430 Nothing on Serial Monitor

$
0
0

Hello, I am trying to have my MSP430G2553 on a launchpad (Rev.1.5) show anything on the serial monitor using the following code:

 

void setup() 
{
  Serial.begin(9600); 
}
 
void loop() 
{
  Serial.println("Test");
  delay(1000);
}
post-38943-0-80565600-1415901639_thumb.j
I have downloaded the drivers http://energia.nu/Guide_Windows.html
 
post-38943-0-36423400-1415902309_thumb.p
I'm just not sure what is wrong. I can load the Blink example and get it to work and even making it do other things but when it comes to reading values and serial the launchpad doesn't want to do anything.

Attached Thumbnails

  • HELP!.JPG
  • Launchpad.png

Question about I2C, DriverLib and MSP-EXP430F5529LP

$
0
0

Hello,

 

I want to connect my MSP-EXP430F5529LP ("MSP430") LaunchPad to an external device via I2C.

 

Which I2C port should I use?

 

(1) The MSP430 Quick Start Guide (slau536.pdf) includes a diagram of the BoosterPack connector showing two sets of I2C ports:

 

-set#1-

I2C - SCL - PM_UCB1SOMI - PM_UCB1SCL - P4.2

I2C - SDA - PM_UCB1SIMO - PM_UCB1SDA - P4.1

 

-set#2-

UCB0SDA - UCB0SIMO - P3.0

UCB0SCL - UCB0SOMI - P3.1

 

(2) I am using the sample project, usci_b_i2c_ex3_masterTxSingle.c.

MSP430ware->Libraries->Driver Library->MSP430F5xx_6xx->Example Projects->USCI_B_I2C->usci_b_i2c_ex3_masterTxSingle

The source file references "USCI_B0_Base" throughout (and not "USCI_B1_Base").

 

Question: Should I use SCL on P4.2 and SDA on P4.1 and change all software to "USCI_B1_Base"?

Question: Or should I use SCL on P3.1 and SDA on P3.0 and use "USCI_B0_Base"?  If I do, do I configure the pinmux?  How would I do that?

 

It seems to me that the sample project is assuming that the I2C is connected to UCB0 (and not UCB1), but the MSP430 LaunchPad, in its standard configuration, is using UCB0 for I2C.

 

I appreciate any help from the community!

 

ElectricCowboy

Memory problem with msp430g2553

$
0
0

Hi! I tried to connect GPRS Shield from Arduino to msp430g2553 with SoftwareSerial library. But I faced with the problem. When the size of sketch exceeds 5590 bytes, global variables do not work. I just add one variable (global string) and the program stops executed correctly.

Here is the code:

/*
  When new serial data arrives, this sketch adds it to a String.
  When a '!' character is received, the loop prints the string "Hello world!"
*/

#include <SoftwareSerial.h>
SoftwareSerial mySerial(P2_0, P1_5);

String inputString = "";           // a string to hold incoming data
boolean stringComplete = false;    // whether the string is complete

String string1 = "Hello ";
String string2 = "Just string";
String string3 = "Another string";
//String string4 = "Another string";  // If we uncomment this line, code will not work :( 

void setup()
{
  Serial.begin(9600);
  mySerial.begin(19200);
}

void loop()
{
  if (stringComplete)  //if the incoming character is a '!'
  {  
  inputString = "";
  stringComplete = false;
  Serial.print(string1);
  Serial.println("world!");
  }
}

/*
  SerialEvent occurs whenever a new data comes in the
  hardware serial RX. This routine is run between each
  time loop() runs, so using delay inside loop can delay
  response. Multiple bytes of data may be available.
*/
void serialEvent() 
{
  while (Serial.available()) 
  {
    char inChar = (char)Serial.read(); 
    inputString += inChar;
    if (inChar == '!') { stringComplete = true; } 
  }
}

Somebody knows where is my problem?

Attached Files

Viewing all 2077 articles
Browse latest View live