1

i'm trying to compile TinyOs 1.x applications on my cygwin machine. I'm able to compile the applications of TinyOs 1.x using avr-gcc v3.3 but not with v4.2.1.

I wanted to upgrade my avr-gcc from v3.3 to v4.2.1 as there are support for new controllers. So i followed the steps that were provided to build the toolchains.

https://www.microchip.com/webdoc/AVRLibcReferenceManual/install_tools_1install_avr_binutils.html

I have used : binutils-2.17, gcc-4.2-20070719 , avr-libc-1.8.1 to build my toolchain. I choose this versions because it is the base version for the new mcu's support.

Now when i try to compile the TinyOs applications using v4.2.1 , i'm stuck at the errors like this. Error Given while compiling with avr-gcc v4.2.1

Working with avr-gcc v3.3

And For v3.3 : binutils-2.13, gcc-3.3 , avr-libc-20030512.

and additionally : nesc-1.1-1w.cygwin.i386.rpm, tinyos-1.1.0-1.cygwin.noarch.rpm, tinyos-tools-1.1.0-1.cygwin.i386.rpm, galsc-0.1.0-1.cygwin.i386.rpm were installed for both the versions of avr-gcc.

How can i fix this error ? If more information needed, feel free to ask. Thank you in advance .

4
  • The actual job is develop a avr-gcc which has support for new mcus. The current version that is working is avr-gcc v3.3 which doesn't have support for new mcu's. So i had to look for the gcc which has an support for the new mcu's then make it compatible with TinyOS. Though the compilation i'm doing is for atmega128 which is supported by v3.3 and v4.2.1. Commented Feb 26, 2019 at 10:50
  • 1
    Please, add a fragment of Clock.h with lines which generate the error. $ can't be used in C code but can in asm. Commented Feb 26, 2019 at 12:29
  • The error shown in lines of Clock.h has a enum declared, and its perfectly fine And there any many more errors like this in many other files. Commented Feb 26, 2019 at 13:19
  • @BiswajeetSahoo Please show us the error lines nevertheless. Please also compile with -save-temps and include the corresponding lines from the .i file if they are different in your question. Thanks. Commented Mar 20, 2019 at 10:09

1 Answer 1

0

I added the new controllers to the the current gcc toochain.

I added the architectures to the my current toolchain. I have answered it here.

Adding a architecture to the base toolchain

Sign up to request clarification or add additional context in comments.

1 Comment

Please elaborate how this answers the question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.