Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training


FreeRTOS on MSP430 using IAR interrupts probl

Posted by Mario Huizar on June 2, 2010
Hello all,

I am using the FreeRTOS on a MSP430FG439 and I want to use the Uart0 but because the Free RTOS on the file portext.s43 redefine the INTVEC I am having problems...
The FreeRTOS needs the timer0 to define the "tick" of the OS. And it defines it in assembler like this:


_vTickISR_: DC16 vTickISR

I was having the following error:

Error[e16]: Segment INTVEC (size: 0x14 align: 0x1) is too long for segment definition. At least 0x2 more bytes needed. The problem occurred while processing the
segment placement command "-Z(CODE)INTVEC=FFE0-FFFF", where at the moment of placement the available memory ranges were "CODE:ffe0-ffeb,CODE:ffee-ffff"
Reserved ranges relevant to this placement:
ffe0-ffeb INTVEC
ffec-ffed Absolute code from TICK_ISR
ffee-ffff INTVEC

Now what I did was to redefine the INTVEC as a Common segment like this:

COMMON INTVEC(1) ; Interrupt vectors
_vTickISR_: DC16 vTickISR

But now the linker complains with:

Error[e46]: Undefined external "?cstart_init_copy" referred in port ( C:\Users\Mario\Documents\MasterArbeit\Lifebridge\Supervisor\Demo\msp430_IAR\Debug\Obj\
port.r43 )
Error[e46]: Undefined external "?cstart_init_zero" referred in tasks ( C:\Users\Mario\Documents\MasterArbeit\Lifebridge\Supervisor\Demo\msp430_IAR\Debug\Obj\
tasks.r43 )
Error while running Linker

Any ideas?

Mario Huizar

RE: FreeRTOS on MSP430 using IAR interrupts probl

Posted by Dave on June 2, 2010
Sorry, no ideas, but FreeRTOS can use any suitable timer if it is the actual timer it is using that is the issue.

RE: FreeRTOS on MSP430 using IAR interrupts probl

Posted by Mario Huizar on June 2, 2010
Thanks I already found the solution.. Although I do not know exactly what it was.
I think it was a bad configuration setting on the project.
I added this Common INTVEC instruction and it actually worked.

[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists