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




Loading

bad instruction in the STR91X

Posted by sathish kumar on January 19, 2008
Hi,

i'm a newbie to the RTOS and to this group, previously i was working with BF561. I have downloaded the freertos v4.6.1 and tried the demo for STR91X in IAR KS v4.0, but in the 91x_vect-IAR.s file am getting a compiler error like
Bad instruction in the line - COMMONINTVEC:CODE(2)

please help me in this regard.

sathish.

RE: bad instruction in the STR91X

Posted by Dave on January 19, 2008
Are you sure you are using IAR V4? This sounds like an error you would get if using V5.

RE: bad instruction in the STR91X

Posted by sathish kumar on January 21, 2008
Hi dave,

Oh i'm very sorry i have been using two versions that is why the confusion is this error comes in the IAR EWARM 5.0.

but when i'm using IAR KickStart Version 4.42(V4), this shows the linker error like

Fatal Error[e89]: Too much object code produced (more than 0x8000 bytes) for this package

In the documentation i read these types of error arise in the demo applications.

Help me in this regard.

sathish.

RE: bad instruction in the STR91X

Posted by Richard on January 21, 2008
>Fatal Error[e89]: Too much object code produced (more than 0x8000 bytes) for this package

From this error message I'm guessing you are using the KickStart version of the IAR compiler - which is limited to 32K. You are simply going over this limit.

The STR9 project contains several configurations, one of which was deliberately kept below the 32K code size limit so it can be used with the KickStart version. I think the documentation page for this port tells you which project this is.

I have converted all the IAR projects for use with Embedded Workbench version 5 now, but these are not yet in the .zip file download.

Regards.

RE: bad instruction in the STR91X

Posted by sathish kumar on January 21, 2008
hi,

thank you Richard.
I'm having Embedded work bench 5.11 also but the project is in the version 4.0 Kickstart.
I have read the documentation for upgrading the FreeRTOS projects from 4.x to 5.x IAR, in that documentation they have specified about the Cstartup.s file in the FreeRTOS download but in the download there is no such file instead i have 91x_init_IAR.s and 91x_vect_IAR.s files.

I'm using the STR91X demo. I tried taking these two .s files and included a Cstartup.s from the IAR examples but not from the example of STR but from the STR library as the STR doesn't contain any .s.

I compiled the project but ends with the following error.

1)
Warning[Lp005]: placement includes a mix of sections with content (example "rw data section .data in httpd-cgi.o") and sections without content (example "zi section .bss
in 91x_enet.o")
2)
Warning[Lp006]: placement includes a mix of writable sections (example "zi section .bss in 91x_enet.o") and non-writable sections (example "ro data section .rodata in
BlockQ.o")



Help me to make through the project either by the Kickstart or EWARM 5.11.

regards,
sathish.

RE: bad instruction in the STR91X

Posted by Richard on January 21, 2008
If you send me your real email address as apposed to the SourceForge address then I can send you the V5.11 version. SourceForge email addresses will not allow binary attachments.

Regards.


[ 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