Menu

FemtoOS with AVR Studio 5.0

Help
2011-10-31
2012-12-09
  • Magnus Christ

    Magnus Christ - 2011-10-31

    Hi,

    now I'm able to compile FemtoOS examples using AVR Studio 5.0. So I hope, you can participate.

    If you use the newer toolchain, the mint8-switch gives an internal segmentation fault (for Studio V4.19 with AVR toolchain and also for Studio V5.0). Therefore unfortunately at the moment the produced code is larger than Ruud's examples.

    Yesterday I have analyzed the gcc option-recommendation and so final I have found an option set for Compilation / Linker / Assembler in AVR Studio 5:

    AVR/GNU C Compiler: -funsigned-char -Os -fpack-struct -fshort-enums -g3 -Wall -c -ffunction-sections -fdata-sections -fomit-frame-pointer -Winline -Wno-main -Wundef  -mmcu=atmega16
    AVR/GNU C Linker: -Wl,-gc-sections -Wl,-defsym=__stack=xOS+xOSstackShift -Wl,-relax  -mmcu=atmega16 
    AVR/GNU C Assembler: -Wa,-gdwarf2 -x assembler-with-cpp -c -o"femtoos_startup.o"  -mmcu=atmega16

    My hardware is ATmega16 and Tiny45.

    best regards
    Magnus

     
  • alexrlopez86

    alexrlopez86 - 2011-11-01

    the error persists in both the 4.19 and in the 5

     

Log in to post a comment.