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

Problem executing VirtualWire library in energia for MSP430

$
0
0

Hi, I am designing a remote controlled system using an arduino uno board and a msp430 launchpad with the ASK RF module (HT12E and HT12D ICs).

I am using the msp430 as the transmitter and the  arduino uno for the reciever because of requirements of my application.

 

Being familiar with Arduino, i am trying to use energia to program the msp430 with the VirtualWire library.

#include <VirtualWire.h>

int button = P2_2;
int transmit_pin = P2_1;
int a,counter=0;
char msg[4];
void setup()
{
    vw_set_tx_pin(transmit_pin);
    vw_setup(2000);       // Bits per sec
    pinMode(button,INPUT);
}


void loop()
{
  Serial.begin(9600);

  a=digitalRead(button);
  itoa(a,msg,10);
  Serial.println(a);
  if(a==1)
  counter=counter+1;
  vw_send((uint8_t *)msg, strlen(msg));
  vw_wait_tx();
  Serial.println("success");
  delay(1000);

}

This code, when used on the arduino, compiles, uploads and executes succesfully. The transmitter board LED blinks to indicate successful transmission of data. But when i use it on energia, there is an error-

 

F:\energia-0101E0013\hardware\msp430\libraries\VirtualWire\VirtualWire.cpp:16:26: fatal error: util/crc16.h: No such file or directory

compilation terminated.

 

any suggestions to get through with this error.

Or if the same code can be implemented using another library.

Cheers! 


MSP-FET with Energia, mspdebug, or virtualized CCS6?

$
0
0

I received my MSP-FET yesterday-- thank you TI! I was so excited to try out everything. I was deflated to find out that my package only contained the programmer-- hopefully the target board and MSP430FR6989s will arrive soon. It almost felt like Christmas morning-- only to find out the batteries were not included!

 

I wanted to test out my new toy so I hooked up the MSP-FET to some MSP430 chips I hand nearby. I hooked up the MSP-FET to a MSP430G2231 and started Energia on Mac OS X 10.9.4. Although the MSP-FET is seen by the OS, I can't seem to connect to it. On System Info, the vendor/product ID are 0x2047/0x0014 with a description of "MSP Tools Driver."

 

Here are my issues

1) Energia can't connect. If I use File -> Upload, or File -> Upload using programmer, I get "usbutil: unable to find a device matching 0451:f432"

 

2) If I use mspdebug, I can't connect using tilib or uif.

$ mspdebug --usb-list
Devices on bus 250:
    250:006 2047:0014  [serial: EFF2blahblah]
    250:005 05ac:0245 
    250:002 0424:2513 
    250:001 05ac:8006 
Devices on bus 253:
    253:001 05ac:8006

$ mspdebug tilib
MSPDebug version 0.22 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2013 Daniel Beer <dlbeer@gmail.com>
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

MSP430_GetNumberOfUsbIfs
No unused FET found.

$mspdebug uif  
MSPDebug version 0.22 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2013 Daniel Beer <dlbeer@gmail.com>
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

usbutil: unable to find a device matching 0451:f430

I tried specifying the USB device by adding -U 250:006 but no improvement. Does mspdebug v 0.22 not work with the MSP-FET? Is this a libmsp430.so issue? I was using the one supplied with the latest version of Energia (E0013).

 

3) If I run CCS6 under VirtualBox, things sort of work. When I start a debug session, I get a message

 

"Error initializing emulator:

A firmware update is required for the MSP430 Debug Interface (MSP-FET430UIF / MSP-FET / eZ-FET). Click the "Update" button to update the firmware and launch your debug session (this may require several update steps).
 
DO NOT UNPLUG THE INTERFACE DURING THE UPDATE."
 
If I click UPDATE, the MSP-FET gets bjorked. Probably because of the way virtualbox hands off USB devices between host and guest OSs. I am thinking the USB VID and/or PID are being altered during the update. Regardless, things don't work afterwards and I can't seem to unbjork things without using a physical Windows computer running CCS6. The physical WIndows computer can update the MSP-FET firmware. Curious thing is that after updating the firmware, CCS6 running on virtualized Windows, still wants to upgrade the firmware with the same message above.
 
If on the other hand, I choose the button to IGNORE the firmware update, things start OK and I can start a debug session. Problem is that sometimes I get a error message "MSP430: Trouble Halting Target CPU: Internal error." Things don't work so well afterwards but nothing that a unplug, replug won't fix.
 
4) I know the MSP-FET is working OK because if I use it on a physical Windows machine, I can program a device, set breakpoints, stop/resume, see energy usage, etc. It works flawlessly. It's a bit disappointing I can't seem to get it to work with mspdebug or virtualized Windows running CCS6.

MQTT client library crashing in EK-TM4C1294XL

$
0
0

I'm following this blog and trying to use MQTT client library( http://energia.nu/wordpress/wp-content/uploads/2014/09/PubSubClient.zip ) with my EK-TM4C1294XL launchpad. When I'm trying to use mqtt_basic example which comes with the libary, the program is crashing. When I tried debugging it with CCS, I found that the program is crashing when I PubSubClient->connect is called. Please see the attached screenshot. When I execute the highlighted line in the code( line no 1460 in picture ), the program is crashing and goes to FaultISR() in startup_code.

 

Screenshot from 2014-09-14 10:49:38.png

 

The problem is when I call client.connect( "adruinoClient" ), it check whether the client is already connected and when it finds that it is not, it calls

_client->stop();( line361) from PubSubClient::connected() in PubSubClient.cpp and crashes.

New Dev Platform for MSP430FR5969

$
0
0

Hi Guys,

 

My name is Nathan.  I've lurked around here on 43oh a bit, but this is my first official post.  I've been working with the MSP430FR5969 for several months now and I've quickly grown to really like it.  It seems to me TI's FRAM processors should really be getting more exposure for battery powered development in both professional and maker communities.

 

To that end - I was hoping to get some feedback on a product idea.  We've packaged the FR5969 into a tiny coin-cell powered module.  The module can operate as a stand-alone processor or it can plug into an UNO-form-factor breakout board with an eZ-FET lite programmer, allowing you to program it with CCS or Energia.

 

We're waiting on the first PCB's to debug the base product right now, but the goal would eventually be to offer with with a handful of matching small daughter-boards to add WiFi, BTLE and either the Sharp LS013B4DN04 hybrid screen or an e-ink display - all except the WiFi would be powered directly by the coin cell (WiFi would require a couple AAA's).  It might make sense to have a few sensor boards too depending on interest level (humidity/temp, compass, GPS, accel, gyro, prox, etc.)

 

Does that make sense?  Any thoughts?  Is this a product you think people would be interested in?  It doesn't seem like anyone is offering really well-packaged small, ULP, battery powered MCU modules, especially with Arduino code compatibility and this would fill a good niche (certainly one I have some uses for anyway).

 

Anyway - I'd appreciate any feedback or suggestions.  Thanks.

 

NC

Energia IDE

$
0
0

Dear all,

 

http://www.ti.com/ww/en/launchpad/launchpads-msp430.html#tabs

 

I am new to this forum. I found that energia IDE work similar to arduino IDE based on library functions.

 

My questions are 

1) I have worked on various library based IDE like mpide, uecide I found that some library wont work on some controller Like SoftwareSerial on chipkit uno32 by mpide IDE,

 

I would like to know if someone used IDE what are library it really worked for them.

 

I am looking for below library

1)basic: analogRead(); digitalRead();digitialWrite();Serial.print();Serial.println()

2) Wire: wire.read();wire.write();wire.begin(), wire.start(),wire.endtransmission()

3)TinyGPS()

4)SOftwareSerial()

5)Modbus()

6)TIMER/MSTIMER/TIME

7)lcd()

8)keypad()

9)math library

 

question 2:

 

In some of data sheet it mentioned the analog port is 12 bit resolution and they not mentioned what is voltage level we can give at analog port like in Arduino. In this situation What i need to consider. 

 

In some of example in energia, eventhrough its is 12 bit resolution. Why devide voltage by 1024 instead of 4096???

 

 

CC3200 Wifi delay issue

$
0
0

First day with Energia, loaded it onto my 3200 in minutes, so sofar its a lot more user friendly than the TI offer :)

 

I have been trying out the webserver demo, and noticed that if I dont include a small delay in every println the connection gets dropped, I am guessing this is some buffer being filled faster than it can offload to the webclient.

 

The interesting part of the code is below, in the dummy printouts, if I lower delay to 1 or just remove it, the connection is closed pretty early, 5 seems steady, and 2 was not enough, so somewhere in between.

 

The CC3200 is connected to a local wifi, not sure which speed though.

        if (c == '\n' && currentLineIsBlank) {
          // send a standard http response header
          client.println("HTTP/1.1 200 OK");
          delay(25);
          client.println("Content-Type: text/html");
          delay(25);
          client.println("Connection: close");  // the connection will be closed after completion of the response
          delay(25);
          client.println("Refresh: 5");  // refresh the page automatically every 5 sec
          delay(25);
          client.println();
          delay(25);
          client.println("<!DOCTYPE HTML>");
          delay(25);
          client.println("<html>");

          for (uint16_t i=0; i<2000; i++)
          {
            client.println("Dummy");
            delay(5);
          }

Any ideas ?

GrownUp LA Gears

$
0
0

As I teased a little bit in another post, here's my latest project: GrownUp LA Gears!

 

For those of us who were growing up in the mid 90s, LA Gears were the  best thing you could strap to your feet.  They had LEDs in the heal that would flash when you walked.  I wasn't lucky enough to have a pair when I was a kid, so maybe this whole thing is just me living out a lost childhood fantasy.....

 

Much like the WS2811 driver library this project is being used to demo, I also snagged the idea from AdaFruit: https://learn.adafruit.com/firewalker-led-sneakers/overview

I recommend reading through the post, since they do a better job of explaining things than I will here.

 

While their design is good, there are some improvements to be made.  Mainly, there isn't an MSP430 in it.

 

Hardware

I didn't want to strap a launchpad to my shoe, so I deadbuged a 430 with the minimal requirements to run it.  A small 3.3V LDO, pins broken out for input and programming, and a pullup on RST.  I don't have pictures of the final build, but you get the idea.  Once all the joints were made, they were encased in hot glue, the best strain-reliever and sealer known to man.

 

LDOMounted_small.jpg
 
HeaderMounting_small.jpg

 

For the shoe itself, the LEDs where mounted around the perimeter and glued in with RTV silicon adhesive (https://learn.adafruit.com/firewalker-led-sneakers/attach-neopixel-led-strip).  I ended up drilling some holes in the battery case and sewing it to the side of the shoes.  The Chucks worked well because they have handy vent holes on the sides to run wires through (they are also classy for every occasion).

 

ForceSensorConnect_small.jpg

 

AdaFruit used a custom sensor made of velostat, a material which changes resistance when force is applied.  If you connect the sensor between ground and an analog input, then turn on an internal pullup for that IO, you can essentially make a simple voltage divider.  The problem here was that the velostat sensor I made went from 1kohm with no pressure, to 300 with pressure.  This in series with the internal 40k of the MSP was just too small a range to detect well.  I ended up using a force sensor from SparkFun that goes from 1Mohm down to 1kohm.  It saturate at 10kg, but it works well.  I may revisit the velostat for cost reasons, but I'm happy with this guy: https://www.sparkfun.com/products/9376

 

I ended up just gaff taping it down inside the heal.

 

ForceSensorMounted_small.jpg
 
With LEDs on, and sensor in place, it just has to be wired up.  Here's a quick block diagram and image of what it all looks like mounted.  You can see that I left TEST and RST on there for programming.
 

BlockDiagram.jpg
 
MSPMounted_small.jpg

 

 

Software

The main push behind these was that I had the modifications to Rickta59's WS2811 driver done, and needed a demo platform ( http://forum.43oh.com/topic/2882-energia-library-ws2811driver-led-controller-class/ ). 

Since that lib does the hard part, the rest of the Energia project is pretty easy, and hopefully well documented in line.

#include <WS2811Driver.h>

#define N_LEDS        44 // TOTAL number of LEDs in strip
#define SHOE_LEN_LEDS 23 // Number of LEDs down ONE SIDE of shoe
#define SHOE_LED_BACK  8 // Index of REAR-MOST LED on shoe
#define STEP_PIN       2 // Analog input for footstep
#define LED_PIN        3 // NeoPixel strip is connected here
#define MAXSTEPS       3 // Process (up to) this many concurrent steps
#define STEP_TRIGGER   30
#define STEP_HYSTERESIS 200

WS2811Driver strip = WS2811Driver(N_LEDS, LED_PIN, NEO_GRB);

//Globals, becouse lazy
boolean stepping  = true;  // If set, step was triggered, waiting to release
uint8_t dup[SHOE_LEN_LEDS]; // Inside/outside copy indexes
uint16_t Filtered;
uint8_t step_order = 1;
  
void setup()
{
  //Enable internal pullup for analog sensor
  pinMode(STEP_PIN, INPUT_PULLUP);
  
  //Setup the array to index the two sides of the shoe
  memset(dup, 255, sizeof(dup));
  int8_t a, b;
  for(a=1              , b=SHOE_LED_BACK-1            ; b>=0    ;) dup[a++] = b--;
  for(a=SHOE_LEN_LEDS-2, b=SHOE_LED_BACK+SHOE_LEN_LEDS; b<N_LEDS;) dup[a--] = b++;
 
  //Start the LEDStrip
  strip.begin();
  
  //Max desired drightness
  strip.setBrightness(255); 
}

void loop()
{
  //Wait until a step is detected 
  while (stepping == false)
  {
    pinMode(STEP_PIN, INPUT_PULLUP);
    Filtered = analogRead(STEP_PIN);
    if(Filtered < STEP_TRIGGER) stepping = true;
  }
  
  //A step has been detected, so play the desired pattern
  
  //Pulse a different color each step and then fade out
  switch(step_order){
    case 1:
      colorWipe(strip.Color(0, 0, 255), 5); // Blue
      step_order = 2;
      break;
    case 2:
      colorWipe(strip.Color(255, 0, 0), 5); // Red
      step_order = 3;
      break;
    case 3:
      colorWipe(strip.Color(0, 255, 0), 5); // Green
      step_order = 1;
      break;
  }
  
  for(uint16_t i=0; i<128; i++)
  {
    strip.setBrightness(255-(2*i));
    strip.show();
  }
  colorWipe(strip.Color(0, 0, 0), 1); // blank
  strip.setBrightness(255);  //Restore brightness for next pass
  
  //Simple back to front color wipe
  /*
  colorWipe(strip.Color(128, 0, 10), 5); // Redish
  colorWipe(strip.Color(255, 255, 255), 5); // White
  colorWipe(strip.Color(0, 0, 0), 5); // blank
  */
  
  //Holdoff until the foot has been lifted
  while (stepping == true)
  {
    pinMode(STEP_PIN, INPUT_PULLUP);
    Filtered = analogRead(STEP_PIN);
    if(Filtered > STEP_HYSTERESIS) stepping = false;
  }
  
}

// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
  uint8_t j;
  
  for(uint16_t i=0; i<strip.numPixels(); i++) {
    strip.setPixelColor(i+SHOE_LED_BACK, c);
    
    // Pixels along inside are funny...
    j = dup[i];
    if(j < 255) strip.setPixelColor(j, c);
      
    strip.show();
    delay(wait);
  }
}

Final Product

And here it is!

 

I wore then to a friend of mines baby gender reveal party, and the three AAAs lasted all night.  No idea what the actual battery life is yet, but I'll probably do a V2 with a LiPo system.

 

The rainbow pattern is actually in the sample code I put with the library, I was just testing it here.

RainbowShoe_small.jpg

 

The videos really show it off.  Just ignore my messy living room.  These are both out of the code I posted above, just comment out the different sections.

 

 

Attached Thumbnails

  • LDOMounted_small.jpg
  • HeaderMounting_small.jpg
  • ForceSensorConnect_small.jpg
  • ForceSensorMounted_small.jpg
  • BlockDiagram.jpg
  • MSPMounted_small.jpg
  • RainbowShoe_small.jpg

Power save and IR receive

$
0
0

Power saving with IR receive and a servo

 

I have managed to put together some basic code to rotate a servo when I press "button 1" on a remote. If I can get it to last a reasonable amount of time idle (month?) then I will attempt to implement the rest of the concept along the lines of a basic timer that will cycle a switch using the servo after a variable amount of time.  Seems basic but hey I finally have my launchpad doing something more than blink the red LED. 

 

Right now it's basically the IRrecieve demo with lines of servo control written into an if else chain to output serial data/write to servo.

 

What is the best way to try saving power for this application? 

 

 

 

 


Energia 0101E0013 - How turn on optimization for Tiva/CC3200?

$
0
0
Tiva/Stellaris programs were compiled with optimization -Os in Energia E0012.  (Optimize for size).
In Energia E0013 optimization is turned off for Tiva/Stellaris and CC3200.  (-O0)
 
How do I turn optimization back on in Energia E0013?
I have been working on a Arduino/Energia library which has a timing critical interrupt handler.
 
Of course there is the #pragma route to controlling optimization.  But is there a way in the IDE, or in preferences.txt, is #pragma the preferred method.
 
On a somewhat related note, are there any release notes for the new version (which might cover changes and how to handle them)?  (e.g., where I could have found out about the change in optimization).
I have looked around a bit and haven't found any kind of list of what is new.
http://www.energia.nu/release.html only goes up through version 12.
The readme on github doesn't even mention the CC3200 https://github.com/energia/Energia/blob/master/ReadMe.md
 
After I had problems generating a listing in the new release I did discover that debugging information is turned off by default, and there is a new option for turning debugging information on/off (in File - Preferences).  But haven't found anything similar for optimization.
 
Thanks

CC3200 Wifi and analogRead

$
0
0
Hi,
I have a problem with analogRead and Wifi.begin. I'm using CC3200 and Energia to test. I connect one potentiometer to Pin_60 (ADC_CH3) and a PIR sensor to Pin_50. Here comes the joke.
 
If i try to read the values :
 
a= analogRead(24);
b= digitalRead(30);
 
the sketch works perfectly. But if i include the Wifi library, and I write Wifi.begin() in the setup, the values read aren't correct.
 
What happen here? Are there something i'm forgetting? Affect Wifi to ADC?

Energia 0101E0013 - fram optimization and new SPI library not compatible with cc3000 launchpad

$
0
0
I tested the lauchpad FR5969 with the new version of energia.  After having changed both HIL.dll  and MSP430.dll  files in the directory 
E: \ ENERGIA_V13 \ energia-0101E0013 \ hardware \ tools \ msp430 \ mspdebug, I managed to correctly program the FR5969 launchpad. 
 
Searching the memory.x file in the E: \ ENERGIA_V13 \ energia-0101E0013 \ hardware \ tools \ msp430 \ msp430 \ lib \ ldscripts \ msp430fr5969, I saw that the compiler does not take advantage of the characteristics of FRAM which allows sharing of 64 kbytes memory between program space and ram space. 
Indeed it currently uses  the standard  2 kbytes static ram
I did some tests by changing the values ​​to use 4 KB of RAM in fram memory and 44 kb to store the program and it seems to work ?. 
Question: Is this possibility can be integrated in a future revision of ENERGIA. 
 
Enclosed changes: 
old file memory.x
  ram (wx)         : ORIGIN = 0x1c00, LENGTH = 0x0800 /* END=0x2400, size 2K */ Static ram
  rom (rx)         : ORIGIN = 0x4400, LENGTH = 0xbb80 /* END=0xff80, size 48000 */
 
new file memory.x
 
  ram (wx)         : ORIGIN = 0xEF80, LENGTH = 0x1000 /* END=0xff80, size 4K */ Fram
  rom (rx)         : ORIGIN = 0x4400, LENGTH = 0xAB7F /* END=0xEF80, size 44000 */
 
 on the other hand i have tried  to use the new  ENERGIA version with the CC3000  TI BoosterPack . (it's work fine with VE0012)
I think it is impossible to use this booster pack with this release because simpelinkwifi library has been replaced by Wifi library and SPI library was modified and seems to be  incompatible with the old SPI library. 
Can I get a confirmation of my observations. 
 
Some assistance will be really helpful. Thanks in advance.

Source archive for msp430-elf on github

$
0
0

Several people liked this post which I took as interest in the mentioned archive of source and headers for TI's public releases of their msp430 gcc toolchain.  I've now made this available on github at: https://github.com/pabigot/msp430-elf

 

There's nothing you get there that isn't from TI, but it can be useful to determine what changed in each release, so you know what to look for in the upstream gcc repository.

 

Updates to this repository will be best-effort on my part: no promises.

E-Ink display with bluetooth

$
0
0

Hello!

 

The target of my project is to build an E-Ink display controlled via bluetooth (picture uploading, changing displayed picture) using 4.4" E-Ink display http://www.densipaper.com/product/et044as013-mpkit-01

 

I am not new to programming, but when it comes to microcontrollers I am a complete beginner. So I've decided to try and develop something first with the TI Launchpad and 2.7" display http://www.densipaper.com/product/em027as012-tikit-01 and then port it to a bigger one.

 

So far, I have written my own android app using MIT app inventor 2 and I am able to send single bytes via bluetooth to my bluetooth module KAmodBTM222 http://www.kamami.pl/index.php?productID=137699 which is connected to the launchpad. The code in MSP430 is modified default EPD code <i_will_insert_link_here>.

#include "Pervasive_Displays_small_EPD.h"
#include "image_data.h"

void init(){
    BCSCTL1 = CALBC1_16MHZ;
    DCOCTL = CALDCO_16MHZ;

    P1SEL = BIT1 | BIT2 ;
    P1SEL2 = BIT1 | BIT2;
    P1DIR |= 0x01;
    P1SEL = BIT1 | BIT2 ;
    P1SEL2 = BIT1 | BIT2;
    UCA0CTL1 = UCSWRST;
    UCA0CTL1 |= UCSSEL_2;                    
    UCA0BR0 = 131;                          
    UCA0BR1 = 6;                              
    										
    UCA0MCTL = UCBRS1 + UCBRS0;               
    UCA0CTL1 &= ~UCSWRST;
    IE2 |= UCA0RXIE;
    __bis_SR_register(GIE);
}

int main(void) {
	WDTCTL = WDTPW + WDTHOLD;
	init();

	for(;;) {
		EPD_display_from_pointer(EPD_270,(uint8_t *)&image_array_270_2,(uint8_t *)&image_array_270_1);
		init();
		delay_ms(9000);

		EPD_display_from_pointer(EPD_270,(uint8_t *)&image_array_270_1,(uint8_t *)&image_array_270_2);
		init();
		delay_ms(9000);
	}
}

#pragma vector=USCIAB0RX_VECTOR
__interrupt void USCI0RX_ISR(void){
		if (UCA0RXBUF == 'A'){
			P1OUT ^= 0x01;
		}
		else {
			P1OUT ^= 0x01;
		}

		IFG2 = IFG2 & 0x0A;
}

So that's what I was able to develop by myself - blink the LED via bluetooth while images are changing on the display. Now I've got a few questions to you guys! :) I wasn't able to find answers although I have searched thoroughly.

 

1. What is the proper way to handle RX input in the code? I want to be able to receive a whole picture 264 x 176 via bluetooth and display it on my E-Ink display. Right now I am able to handle single bytes and I've got a feeling I am doing this wrong...

2. Are there any similar projects for 4.4" or any EPD displays? If so, please post some links, maybe I can be inspired by them. :)

3. Will my MSP430G2553 be even able to handle both code and 400 x 300 pictures with its 16kb memory?

4. I have also thought about external memory. Would FLASH/FRAM/EEPROM be useful in this project?

5. How do you read/write to external memory? For example, how to write an array of chars and read it later?

 

I will be posting any progress and will keep this thread updated. I am excited to read your responses!

 

Greetings

Wbicu

Attached Thumbnails

  • eink.jpg

CC3200 & SSL

$
0
0

Hi there,

 

Really excited to see the new release of Energia supporting the CC3200 launchpad! I just ordered some for myself.

 

Does anyone know if there are plans to include the SSL demo for the CC3200 in Energia?

 

Thank you!

FR5969 LP & CC3100 BP

$
0
0

Hi There,  Anyone tried (and succeeded) in getting the CC3100 booster pack up and running with the FR5969 LP?  I'm getting compilation errors and it looks like it's running out of RAM when I try to compile the example WiFi programs.

 

Errors are

 

ScanNetworks.cpp.elf section .bss will not fit in region 'ram'

 

 "region RAM overflowed by 880bytes"

 

Any thoughts?

 

~DaveS


Serial communication not working in energia with CC3200

$
0
0

Hi all,

 

I have downloaded the energia sdk(version 13) for CC3200 launch pad, I have configured the jumper wire for J8 and SOP2 also the rest jumpers. Apart from that , I updates the firmware , so I have tries all possible ways, but still my serial monitor is not working.

MSP430FR5969 DCO Accuracy

$
0
0

Just as an FYI - I was concerned about using the built in DCO in the FR5969 for UART because the spec sheet says although it's factory trimmed, it's still +/-3.5%.  Generally it needs to be within 2% for a UART to work correctly so I measured the two FR5969's I have on our 2.4GHz frequency counter and this is what I got.

 

2 is obviously not a big sample size, but the frequency trimmed DCO on the FR series looks pretty good @ room temp and 8MHz or under.  I found another doc from TI that's a comparison between F5xxx and FR5xxx and it mentions the DCO is generally within 2% "within a restricted temperature range" and within 3.5 in the full temperature range (-40C to 85C).

 

I may need to re-measure at 4C because that's typically where our project will be operating.  

Attached Thumbnails

  • DCO_freq.png

AD9850 Frequency Generator

$
0
0

I need to have a variable frequency generator in order to measure the inductance of a coil.

There are these very cheap AD9850 boards that can output sine waves of any frequency up to even 40Mhz.

Just what I need, so I took one of my old MSP430 battery charger boards and wired up the interface to the AD9850 board.

But it is not working, I get no output.  I've seen lots of Arduino's interfaced to them, but not any msp430.

 

I thought I figured out my problem when I discovered that at 5v power, a HIGH signal must be 4.9v,

and as I run my 430 at 3v, not going to work.  But the 9850 also runs at 3.3v, and then just 2.4v was high,

so I changed its power to 3.3v,  but no joy.

 

Was hoping someone else might have interfaced a 430 to one of these boards with success.

 

Embedded for a 10 year old?

$
0
0

Hi all,

 

My kid has been programming Scratch for a few years now. I think this may be a good time to introduce him to the embedded world. I am trying to decide between Energia, Arduino and, well, Scratch (which also has robotic functionalities).

 

For a school project (which does not have to include electronics of course), he has a choice of 1) adding some sort of simple electronic functionality to an animal, or 2) sensing sound frequencies and responding in some ways.

 

The project has a limited budget (they have not told us yet exactly how limited, but it has to be low).

 

Scratch would be the easiest, because he already knows it; perhaps an MSP430 launchpad, or just a few standard sensors, motors and LEDs can be connected to it in a simple enough way? (Does not look that way, and is OT anyway, but I thought I'd ask).

 

Motors would be nice, but can't be powered directly from an MSP430 pin as far as I understand, and so I am not sure I want to introduce them just yet. 

 

I am thinking maybe make a cat that will meow when being pet? Can that be done directly from pins? It can also light its eyes.

 

Should I invest in Arduino, or can everything be done with Energia just as easily? How portable is software/hardware?

 

Also, I do want to buy a few motors just in case  - where?

 

As for the second project, detecting sound frequencies and providing some sort of an output based on them? - any way to do that, however roughly, without FFT? I've read that the range of audible frequencies is 20 to 20,000 Hz, well within the operating range of an MSP430; but he can't do any complex programming. Any ideas? Maybe a device into which a sound wave can be fed unaltered, that would produce some interesting effect?

 

Sorry if these questions are too basic for the forum; we have the blind leading the blind kind of a situation here.

SMX RTOS

$
0
0

Came across this and didn't see it mentioned previously on 43oh or Stellarisiti.  This company has made their commercial RTOS available for free for selected "maker" platforms from Freescale, ST and TI.  The primary board of interest for the TI camp would be the TIVA TM4C123 Launchpad (they also offer it for the TI DK-TM4C129X, not the TM4C1294 Launchpad). Appears to be compatible with IAR only however.  Short blurb from the offering page:

 

"smx Learning Kits (L-Kits) are free, fully functional releases of the smx kernel for non-commercial use in personal and class projects, proofs of concept, and prototypes. They are available for several low-cost boards that are popular in the DIY / Maker community. L-Kits utilize the powerful EWARM development suite from IAR. (A free size-limited version is available; see below.)

L-Kits are offered as a community service to allow people to learn how a full-featured RTOS operates and to experiment with using it. They are also intended to allow doing class and other non-commercial projects requiring an RTOS. There is no time limit, and users will not be contacted by a salesperson."

 

http://www.smxrtos.com/lk/#lkcont

 

FWIW....

 

EDIT: Looked at the ad again and noticed that they had the TM4C1294 Launchpad pictured among the boards in the ad... even though it isn't listed as a supported board. It would be cool if it actually worked on that board utilizing their ethernet stack.

Viewing all 2077 articles
Browse latest View live