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
1
vote
0 answers

Code Composer Studio MSP430 Unresolved Symbols LoRa LMIC

I am getting unresolved symbols with the invocation of the LoRa lmic Lib function. LMIC_setTxData2(1, mydata, sizeof(mydata)-1, 0); These are the error messages: undefined | first referenced symbol | in file onEvent …
1
vote
1 answer

How do I get this simple PWM example to work?

I am just starting to work with the MSP430 microcontrollers after previously only working with STM32, and as I am still a beginner with all of this, the change is quite a lot, but I am struggling to get a simple PWM output working. At the office,…
MCG
  • 155
  • 1
  • 9
1
vote
0 answers

IAR Embedded Workbench: Illegal Opcode Found on Adress 0x0

There are similar questions to this one, but I could not solve my problem after looking others. I am trying to simulate interrupt, but when it comes to activating the interrupt, this error is happening. Here is my code; #include "msp430.h" …
1
vote
1 answer

TIMER0 not executing multiple compare match register interrupt requests.(MSP430)

OK so I have been attempting to create some code using a MSP430FR5994 TI launch pad that utilizes Timer0 and 3 separate compare registers to trigger 3 separate isr's. I have successfully got one to work however as soon as I add another compare…
MacLCM
  • 57
  • 9
1
vote
1 answer

Avoid race condition on check-then-sleep

Take the following example code: static volatile bool pending = false; void __attribute__((interrupt(TIMER0_A0_VECTOR))) TIMER0_A0_ISR (void) { pending = true; } int main(void) { while(true) { if (!pending) …
Cheiron
  • 3,620
  • 4
  • 32
  • 63
1
vote
1 answer

How does one get high-speed UART data on a low-speed MSP430

My project has an MSP430 connected via UART to a Bluegiga Bluetooth module. The MCU must be able to receive variable length messages from the BG module. In the current architecture, each received byte generates a UART interrupt to allow message…
1
vote
1 answer

Load Address (LMA) for a ld link script when using non volatile memory (NVRAM)

I am working on baremetal application for an MSP430 MCU from TI. This MCU uses FRAM, a non volatile memory. The following script for SRAM works well: SECTIONS { __data_load_start = .; .data : AT ( __data_load_start ) { . = ALIGN(2); …
Mik
  • 61
  • 5
1
vote
1 answer

Interrupt-Flag is set although Interrupt-Enable-Flag is not set

i've written a small program for the MSP430FR6989 to toggle the LED as long as the Button is pressed. #include /** * main.c */ int main(void) { WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer PM5CTL0 &= ~LOCKLPM5; //…
jhammett
  • 23
  • 3
1
vote
3 answers

Why is this showing "Invalid type conversion"?

I have this piece of C code (For MSP430 platforms, cl430 compiler): void function(uint8_t * x){ // This variable is defined in the linker file as "X_ADDR = 0xE000;" extern uint32_t X_ADDR; uint16_t i = 0; uint16_t size = 10; …
gustavovelascoh
  • 1,208
  • 1
  • 14
  • 28
1
vote
1 answer

reading voltage using TI's MSP430 FF22x4

I am trying to measure a power device's voltage using TI's MSP430. The voltage source is connected to A1 (i.e. P4) and ground (i.e. P1) on the target board. Here is the relevant code: ADC10CTL1 = INCH_1 + CONSEQ_0; //A1, single measurement ADC10CTL0…
Chaitanya
  • 2,039
  • 4
  • 25
  • 32
1
vote
1 answer

How do I detect when a button is pressed?

I'm trying to program a msp430 to change a variable to change the velocity of a blinking led. This is my first try. How do I execute the subroutine "changeVelocity" when the button is pressed? bic.b #00001000b, &P2DIR ; P2.3 as input bis.b…
IronBoy
  • 39
  • 9
1
vote
1 answer

Is it possible to compile programs in visual studio which are created in CCS ver8.0

I have implemented MSP430F2418 controller program in Code Composer Studio version 8.0. Now I want to use the same code in Visual Studio 2017. Is it possible to use visual studio? If it is possible, kindly give information how to run in Visual Studio…
k.madhu
  • 11
  • 2
1
vote
1 answer

MSP430, impossible to use UART no Output with Putty

everybody, currently working with the MSP430FR2433, my goal is to use UARTs to transmit a message. I am at the beginning of this project so my current goal is to send only one message between two UARTs on the same launchpad. You will find below the…
1
vote
2 answers

Changing the name of BM70 BLE module without Microchip's evaluation board

I am trying to customize the name of my BM70 BLE module. I am not using the BM70 PICTail evaluation board. Instead I am using the MSP430F4799 microcontroller to communicate with the module and to configure the P2_0 pin and other necessary hardware…
1
vote
0 answers

" Error: SPISettings' does not name a type" when trying to compile Arduino based LoRa library on Energia for MSP430

I'm trying to compile LoRa library (found at https://github.com/sandeepmistry/arduino-LoRa) for MSP430 using Energia platform and I get the error SPISettings' does not name a type. This is because the SPISettings is nowhere in the SPI library for…