Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

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

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner