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
1 answer

How to define an interrupt service routine for MSP430 with LLVM/Clang+GCC?

When compiling with GCC, an ISR is defined by marking it with an interrupt attribute with a vector number defined in msp430fr*.h header that ships with GCC toolchain distributed by TI: __attribute__ ((interrupt(TIMER2_A1_VECTOR))) void TIMER2_A1_ISR…
alexei
  • 2,031
  • 1
  • 26
  • 28
2
votes
1 answer

Adding third party libraries to contiki os

I want to add a third party library to the Contiki OS. Exactly, I was trying to add the nettle 3.0 cryptography library. Am I suppose to build the concerned library using special flags for contiki platform , not sure what exactly ? gcc msp430 If…
yushaa yave
  • 145
  • 1
  • 9
2
votes
1 answer

msp430 uart and timer interrupts

I have msp430 family mcu (actually msp430g2553 on launchpad board). I have written uart driver and it works. But after I have added timer driver I found some problems: uart stops working after first timer interrupt. Do I need to restore some flags…
2
votes
2 answers

Contiki, MSP430: relocation truncated to fit symbols errors

I am currently trying to compile a program with the following commands in Contiki for the tmote sky platform: 1) "make sky-shell-exec.sky TARGET=sky" 2) "make sky-shell-exec.sky CORE=sky-shell-exec.sky TARGET=sky" I get that the first command works…
John Cast
  • 1,771
  • 3
  • 18
  • 40
2
votes
1 answer

MSP430 Assembly Stack Pointer Behavior

While trying to analyze a simple Assembly file generated through the msp430-gcc, I stumbled upon a set of instructions that I don't understand dealing with the frame pointer and the MSP430's stack pointer. C Program: #include "msp430g2553.h" int…
Alan W
  • 291
  • 1
  • 5
  • 18
2
votes
1 answer

MSP430 Interrupt routines with msp-gcc won't compile

I am using the newest CCS with MSP-GCC compiler. The following code #pragma vector=USCI_A1_VECTOR __interrupt void USCI_A1_ISR(void) {...isr} which is the newest officially supported method by TI of declaring ISR-s is not working, I get the…
hgabe
  • 141
  • 2
  • 9
2
votes
1 answer

Embedded console log optimization

A while back I had posted this question on SO. In that question I was looking for a way to implement a solution which we had thought of. But from the answers I got, I saw that that solution was unimplementable using the default C preprocessor. So…
Suman Roy
  • 673
  • 5
  • 18
2
votes
1 answer

Contiki port to MSP430F5 launchpad

I'm trying to port Contiki-OS to the MSP430F5 Launchpad from Texas Instrument. The MSP430 is already supported in Contiki, however the it doesn't run on the Launchpad platform. I've studied some custom Platform port made for other chips and…
matt.P
  • 136
  • 3
2
votes
1 answer

Unable to write large buffers to EEPROM

I'm trying to interface a M95M02-DR 256KB EEPROM memory chip with a MSP430 microcontroller. As a sample test, I tried to write the following string to it: CHAPTER I. Down the Rabbit-Hole. Alice was beginning to get very tired of sitting by her…
Suman Roy
  • 673
  • 5
  • 18
2
votes
7 answers

Declaration of arrays before "normal" variables in c?

We are currently developing an application for a msp430 MCU, and are running into some weird problems. We discovered that declaring arrays withing a scope after declaration of "normal" variables, sometimes causes what seems to be undefined behavior.…
Bjarke Freund-Hansen
  • 28,728
  • 25
  • 92
  • 135
2
votes
1 answer

FreeRTOS Sleep Mode hazards while using MSP430f5438

I wrote an an idle hook shown here void vApplicationIdleHook( void ) { asm("nop"); P1OUT &= ~0x01;//go to sleep lights off! LPM3;// LPM Mode - remove to make debug a little easier... asm("nop"); } That should cause the LED to turn…
michael
  • 2,577
  • 5
  • 39
  • 62
2
votes
4 answers

Has anyone implemented __getzone() for IAR Embedded Workbench for MSP430?

I am having to deal with some time conversions in my application. I would like to stick to using standard library functions as much as possible. Right now I am using a time_t structure as my system time base. However, some devices can sync time to…
Nick
  • 1,361
  • 1
  • 14
  • 42
2
votes
1 answer

Alternatives to C and asm on microcontrollers

My background is like this: embedded/C, then C++, then higher level OO languages (Java, Scala, Ruby, Groovy, etc.), and now I am doing a small project involving MSP430 microcontroller. Meanwhile, inspired by that, I am contemplating a number of…
Irina Rapoport
  • 1,404
  • 1
  • 20
  • 37
2
votes
2 answers

Timestamps based on hardware timer with overflow counter

I want to implement a timestamp functionality for my msp430-based platform. My aim is to use a hardware timer, and count the number of times it overflows, to generate a long timestamp value (typically an uint32 for overflow counter, combined with…
Gauthier
  • 40,309
  • 11
  • 63
  • 97
2
votes
1 answer

Using a Bluetooth module to communicate with a Smartphone or Tab

I am currently trying to build a home automation system that can be controlled by a smartphone using Bluetooth technology. I will be using a MSP430 from TI to receive the commands that will be sent from the smartphone. My main doubts are on the way…