Questions tagged [mspgcc]

The tool chain providing binutils, gcc, gdb and a lot of other tools for the MSP430 processor

The mspgcc tool chain provides binutils, gcc, gdb and a lot of other tools for the MSP430 processor. mspgcc is formed from patches to these tools combined with a minimal libc and information describing the characteristics of the current set of MSP430 microcontrollers.

The tool chain itself consists of command line tools.

All released MSP430 microcontrollers are supported.

15 questions
10
votes
2 answers

How to declare an interrupt handler (ISR) in Mspgcc?

What is the preferred method of declaring an interrupt handler in mspgcc?
Wayne Uroda
  • 5,025
  • 4
  • 30
  • 35
9
votes
4 answers

Why int is preffered rather than (unsigned) char for small integers in MSP430-GCC

In the msgpcc (GCC for MSP430 microcontrollers) manual authors wrote: Use int instead of char or unsigned char if you want a small integer within a function. The code produced will be more efficient, and in most cases storage isn't actually…
user1150105
4
votes
1 answer

Prevent GCC from using dynamic jumps / functions invocations

I'm trying to write an assembly-instrumenter module for GCC-compiled applications as part of a security framework. To boost the performance of the module I need to reduce as much as possible dynamic jumps / dynamic function invocations. These,…
Michele Grisafi
  • 149
  • 1
  • 9
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

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

How to disable some msp430 gcc code injections

I'm working on a project for MSP430 microcontrollers. This project is a code instrumenter tool which requires all of the code that is deployed on the device to be instrumented. The tool is basically ready but for one problem: in order to work it…
Michele Grisafi
  • 149
  • 1
  • 9
1
vote
1 answer

unexpected result in mspgcc

I wrote a simple code in C, but when I port it to mspgcc it doesn't give me the right value. This is a part of my code: unsigned short int xk=3588, yk=47541, yk1, sig=10, de=1; unsigned long int xk1; xk1=( xk+(sig*(yk-xk)*de)); yk1=xk1 %…
miria
  • 11
  • 1
1
vote
1 answer

TI's Red Hat mspgcc-430 compilation error

So, i'm trying to compile code, written in C for a msp430fx in a linux SO. I recently recompiled a new version of mspgcc, cause the previously used was 4.3 and it was not compatible/stable with extended mode (20 bits -mlarge). I followed this…
Diogo Guerra
  • 128
  • 2
  • 3
  • 12
1
vote
1 answer

Binary, produced by MSP430GCC, has strange start address for text segment

After compiling an exemplary C program with msp430-gcc (LTS 20120406 unpatched) for the MSPG2211 I got the following output using the readelf command: section header program header The address space of the MSPG2211 microcontroller is structured…
Qfelix
  • 43
  • 3
1
vote
3 answers

How do I enable/disable interrupts in the mspgcc using C?

How can I enable and disable (clear and set GIE SR bit) in C using the mspgcc?
tylerjw
  • 802
  • 4
  • 14
  • 28
0
votes
1 answer

MSP430F5529 | MSPGCC Building/Compiling manually | Cannot execute Simple Program

i have just started to work with the MSP430F5529. I have downloaded the msp430-gcc compiler and tried to compile the folowing short program: #include int main(void) { WDTCTL = WDTPW | WDTHOLD; P1DIR = BIT0; P1OUT =…
0
votes
1 answer

Command works fine from terminal or inside bash script but not from python script using subprocess module

I am trying to write a code in python to automate the work that I normally do manually. The work is simply modifying some parts of C code and then, insert the below command to terminal to build, compile and bootload C code for each Z1 Zolertia…
Ilkin
  • 11
  • 2
0
votes
1 answer

Configuration msp430-unknown-none not supported

How do I get rid of the error I got on make TARGET=sky? ERROR 1: (.text will not fit in region rom) 1.c: At top level: 1.c:14:57: warning: ‘last_informer’ defined but not used [-Wunused-variable] /usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld:…
Shridhar R Kulkarni
  • 6,653
  • 3
  • 37
  • 57
0
votes
1 answer

Set Flash Memory Location to certain values on MSP430 using GCC

How do you set a few bytes of flash to be programmed by the flash programmer during programming of the mcu to be a certain value using msp GCC toolchain? For example, TI C/C++ compiler toolchain, includes assembler, and the following lines of…
user1135541
  • 1,781
  • 3
  • 19
  • 41
-1
votes
2 answers

how to add tools to python

I installed python in Win7. I need to add python-msp430-tools 0.6 to my python. Hence I downloaded python-msp430-tools 0.6 from https://pypi.python.org/pypi/python-msp430-tools . But there is a problem? How can I add this tool to my python. (By the…