2016-08-13

Hello folks,

ive been trying to use
https://github.com/steamfire/WSWireLib
this library with an F103 derivate.
Since including Wire.h works, i though i would not run into trouble here.

C:\Users\Master\Documents\Arduino\libraries\WSWire\utility\twi.c:23:20: fatal error: avr/io.h: No such file or directory

#include <avr/io.h>

I inspected this twi.c and the one used by arduino (1.6.9) and they include the same.
If i compile the i2c scanner sketch with the Wire.h it works .

#include <math.h>
#include <stdlib.h>
#include <inttypes.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <compat/twi.h>
#include "Arduino.h" // for digitalWrite

The library is working when using the standard arduino uno compiler (just trying to port my project to a stm device).

The arm compiler was installed via the IDE (SAM boards 32 bit Cortex-M3) and i get this error message even if i can compile:
platform.txt aus dem Kern 'STM32 Boards (STM32duino.com)' enthält veraltete recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}" und wurde automatisch zu recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}" konvertiert. Erwägen Sie eine Aktualisierung dieses Kerns.

Anyone able to help me out here ?

Best regards
smithy

Statistics: Posted by smithy — Sat Aug 13, 2016 7:20 pm

Show more