bad instruction in the STR91X

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 –     COMMON    INTVEC:CODE(2)    please help me in this regard. sathish.

bad instruction in the STR91X

Are you sure you are using IAR V4? This sounds like an error you would get if using V5.

bad instruction in the STR91X

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.

bad instruction in the STR91X

>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.

bad instruction in the STR91X

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.

bad instruction in the STR91X

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.