Questions tagged [msp430]

The msp430 is a family of 16-bit microcontrollers from Texas instruments.

The MSP430 family is designed for low cost, low power consumption embedded applications. The architecture dates from the 1990s and is reminiscent of the DEC PDP-11.

The Wikipedia article contains an extensive description of the architecture and variants, and the home page has an extensive set of technical documents, support tools and products. There is also the developer community.

640 questions
2
votes
4 answers

strange pointer arithmetic in for loop in C

I am programming msp430 with IAR EBW. I got the expression as follows: adres = (uint_fast16_t *) 0x8602 + (0x0200*i); in a for loop so that i increases with every loop. For some reason it skips every one of two adresses and gives…
maciejko'
  • 21
  • 2
2
votes
2 answers

Embedded C UART conventions

I need advice on proper way of handling UART communication. I feel like I've done handling sending serial commands over UART well but I don't know if the way I'm parsing the response or receiving serial data is the best way to do it. Any tips are…
user2665581
  • 75
  • 1
  • 11
2
votes
0 answers

Bootstrap loader synchronization error MSP430F249

I have a problem when I program code via BSL to MSP430F249 MCU. I'm using bsl2demo.exe to program. The error is: ERROR: Synchronization failed! Device with boot loader connected? HERE IS SCHEMATIC MY DEGISN. YOU CHECK IT
PHI
  • 29
  • 2
2
votes
2 answers

How to measure clock frequency of C430F5137 using programming

I am using CC430F5137 system on chip.From the data sheet I got to know it uses 26MHz clock for the radio. To verify that,How do I measure the radio clock frequency by using MSP430 programming? Any suggestions please.... Is there any timer/counter…
2
votes
6 answers

Volatile Keyword - MSP430

I'm trying to flash an LED on a TI MSP430 Launchpad board. I have two pieces of code. One works, while the other doesn't. The only difference is the inclusion of the volatile keyword in working version. Why is this keyword needed for the program to…
stephenfin
  • 1,447
  • 3
  • 20
  • 41
2
votes
1 answer

MISRA04 casting a typedef struct pointer as int pointer

I am writing some firmware for an MSP430F5438A. I would like this code to be mostly MISRA04 complaint (I am using C99, and not C90). I am using IAR 5.51 which can check for MISRA compliance. I have the following data structure: typedef struct { …
Nick
  • 1,361
  • 1
  • 14
  • 42
2
votes
1 answer

linking external library in IAR MSP430

I created an MSP430 library file, and I want to link with it, but I don't find where I can add the libraries to link against in IAR gui. Does anyone knows where to configure it ? I've checked the documentation, but nothing appears to be related to…
stdcall
  • 27,613
  • 18
  • 81
  • 125
2
votes
0 answers

Msp430 i²c module and libraries

I have a project that has a MSP430G2553 master device and a Triple-Axis Digital-Output Gyro ITG-3200 Breakout slave. ITG3200 uses i²c protocol to communicate so i've been checking out the i²c module usage on Msp. For a starter i downloaded the TI…
Barışcan Kayaoğlu
  • 1,294
  • 3
  • 14
  • 35
2
votes
1 answer

msp430g2452 trouble capturing interrupt from switch

I am trying to write some code for an msp430g2452 mcu. It should cycle through a few modes of led's being on or off using an interrupt and a switch statement. I am only just beginning to learn to code, c and python :) so I am unsure of what is going…
2
votes
1 answer

Minimize code in Contiki-OS

When compiling the example codes from the Contiki port Thingsquare Mist for the MSP430 on the EXP430 board I get /usr/lib/gcc/msp430/4.5.3/../../../../msp430/bin/ld: hello-world.exp5438 section `.text' will not fit in region `rom'…
chwi
  • 2,752
  • 2
  • 41
  • 66
2
votes
1 answer

howto get subsection padding in gnu-assembler

I'm using gnu assembler on a TI MCU (msp430) and want to define variables of mixed alignments in assembly; some are byte aligned, others must be word (16bit) aligned. I am also needing to keep some variables private to an assembly language module,…
2
votes
3 answers

what do these instructions do

I am working on a simulator for the msp430 instruction set. gnu assembler will let you encode instructions like these: fc0a: 12 10 00 02 rrc &0x0200 fc0e: 22 11 rra #4 fc10: 23 52 add #4,#2 My guess is that rrc &0x0200…
old_timer
  • 69,149
  • 8
  • 89
  • 168
2
votes
1 answer

msp430g2211 (launchpad) stalls at startup if I use an array of more than 25 elements

I'm working with TI Launchpad (msp430g2211) in a Linux environment (Ubuntu, msp430-gcc 4.6.3). I have a strange problem: when I try to allocate more than a fixed quantity of memory the micro-controller stalls at start-up. To be more precise: I have…
Dino
  • 121
  • 3
2
votes
2 answers

Why does not work library dht11 for Arduino in Launchpad msp430 (g2553)?

Why does not work library, if the Launchpad is compatible with Arduino? The sensor data is sufficient to derive to serial port. What is the difference between dht11 and dht22 libraries?
2
votes
2 answers

printf support for MSP430 micro-controller

I am upgrading a fully tested C program for the Texas Instruments (TI) MSP430 micro-controller using a different C compiler, changing from the Quadravox, AQ430 Development Tool to the VisualGDB C compiler. The program compiles with zero errors and…
Mike Jablonski
  • 1,703
  • 6
  • 27
  • 41