Pages: 1 ... 4 5 [6]   Go Down
Author Topic: 1-Wire Slave  (Read 22396 times)
0 Members and 1 Guest are viewing this topic.
USA
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the reply. Still getting compile errors.  I got the latest GitHub files.  Here is result:

Code:
[/Arduino: 1.0.5-r2 (Windows 7), Board: "Teensy 3.1"
C:\arduino-1.0.5-r2\hardware\tools\arm-none-eabi\bin\arm-none-eabi-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mcpu=cortex-m4 -DF_CPU=96000000 -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -mthumb -nostdlib -D__MK20DX256__ -DTEENSYDUINO=118 -fno-rtti -felide-constructors -std=gnu++0x -DUSB_SERIAL -DLAYOUT_US_ENGLISH -IC:\arduino-1.0.5-r2\hardware\teensy\cores\teensy3 -IC:\Arduino\libraries\OneWireSlave C:\Users\Richard\AppData\Local\Temp\build8964515928240465406.tmp\DS18B20_Slave_Interrupt_universal_analogread_fulllib.cpp -o C:\Users\Richard\AppData\Local\Temp\build8964515928240465406.tmp\DS18B20_Slave_Interrupt_universal_analogread_fulllib.cpp.o

In file included from DS18B20_Slave_Interrupt_universal_analogread_fulllib.ino:3:0:
C:\Arduino\libraries\OneWireSlave/OneWireSlave.h:212:2: error: #error "Please define I/O register types here"
C:\Arduino\libraries\OneWireSlave/OneWireSlave.h:231:0: warning: "EXTERNAL" redefined [enabled by default]
In file included from C:\arduino-1.0.5-r2\hardware\teensy\cores\teensy3/wiring.h:33:0,
                 from C:\arduino-1.0.5-r2\hardware\teensy\cores\teensy3/WProgram.h:15,
                 from C:\arduino-1.0.5-r2\hardware\teensy\cores\teensy3/Arduino.h:1,
                 from C:\Arduino\libraries\OneWireSlave/OneWireSlave.h:7,
                 from DS18B20_Slave_Interrupt_universal_analogread_fulllib.ino:3:
C:\arduino-1.0.5-r2\hardware\teensy\cores\teensy3/core_pins.h:711:0: note: this is the location of the previous definition
In file included from DS18B20_Slave_Interrupt_universal_analogread_fulllib.ino:3:0:
C:\Arduino\libraries\OneWireSlave/OneWireSlave.h:260:4: error: 'IO_REG_TYPE' does not name a type
C:\Arduino\libraries\OneWireSlave/OneWireSlave.h:261:14: error: 'IO_REG_TYPE' does not name a type
DS18B20_Slave_Interrupt_universal_analogread_fulllib.ino: In function 'void blinking()':
DS18B20_Slave_Interrupt_universal_analogread_fulllib.ino:56:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from DS18B20_Slave_Interrupt_universal_analogread_fulllib.ino:3:0:
C:\Arduino\libraries\OneWireSlave/OneWireSlave.h: At global scope:
C:\Arduino\libraries\OneWireSlave/OneWireSlave.h:306:22: warning: 'static_OWS_instance' defined but not used [-Wunused-variable]code]
Logged

Germany
Offline Offline
Full Member
***
Karma: 10
Posts: 221
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Strange, I used the files directly from git and tested it, compiled without errors can, test if it compile for other boards from the list? What verion of teensyduino did you use?
Logged

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

For the Mega 2560 I get this:
I don't see where to find version of Teensyduino but I just got it yesterday.  It does support Teensy 3.1 and will load the blink sketch.  May be I am not going about this the correct way. I got the latest onewireslave files from get hub and the ino sketch. Then simply load your ino sketch to Arduino GUI  hit Verify.  That's it.

Code:
[/Arduino: 1.0.5-r2 (Windows 7), Board: "Arduino Mega 2560 or Mega ADK"
C:\arduino-1.0.5-r2\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\arduino-1.0.5-r2\hardware\arduino\cores\arduino -IC:\arduino-1.0.5-r2\hardware\arduino\variants\mega -IC:\Arduino\libraries\OneWireSlave C:\Users\Richard\AppData\Local\Temp\build5803949998534887674.tmp\DS18B20_Slave_Interrupt_universal_analogread_fulllib.cpp -o C:\Users\Richard\AppData\Local\Temp\build5803949998534887674.tmp\DS18B20_Slave_Interrupt_universal_analogread_fulllib.cpp.o

In file included from DS18B20_Slave_Interrupt_universal_analogread_fulllib.ino:3:
C:\Arduino\libraries\OneWireSlave/OneWireSlave.h:35:4: error: #error "Not an Interrupt Pin"
C:\Arduino\libraries\OneWireSlave/OneWireSlave.h:36:4: error: #error "Use 2, 3, 18, 19, 20 or 21"
C:\Arduino\libraries\OneWireSlave/OneWireSlave.h:231:1: warning: "EXTERNAL" redefined
In file included from C:\Arduino\libraries\OneWireSlave/OneWireSlave.h:7,
                 from DS18B20_Slave_Interrupt_universal_analogread_fulllib.ino:3:
C:\arduino-1.0.5-r2\hardware\arduino\cores\arduino/Arduino.h:56:1: warning: this is the location of the previous definition
DS18B20_Slave_Interrupt_universal_analogread_fulllib.ino: In function 'void blinking()':
DS18B20_Slave_Interrupt_universal_analogread_fulllib.ino:56: warning: comparison between signed and unsigned integer expressions
C:\Arduino\libraries\OneWireSlave/OneWireSlave.h: At global scope:
C:\Arduino\libraries\OneWireSlave/OneWireSlave.h:306: warning: 'static_OWS_instance' defined but not usedcode]
« Last Edit: March 31, 2014, 07:08:30 am by ringram2077 » Logged

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

UPDATE:
Current GitHub files compile correctly for Teensy 3.1. Must have been picking up old version of onewireslave.h.  I put the current onewireslave.h file in sketch folder and referenced it there and successfully compiled.  Thanks for making changes for 3.1.
Richard
« Last Edit: April 01, 2014, 09:00:31 am by ringram2077 » Logged

Germany
Offline Offline
Full Member
***
Karma: 10
Posts: 221
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

UPDATE:
Current GitHub files compile correctly for Teensy 3.1. Must have been picking up old version of onewireslave.h.  I put the current onewireslave.h file in sketch folder and referenced it there and successfully compiled.  Thanks for making changes for 3.1.
Richard
No Thanks needed at all, have fun with it.

Looks like the Slave works more proper with the Teensy 3 and above may its an idea to port the timer and interrupt driven version to the Arduino to get better work with the Megas.
« Last Edit: April 11, 2014, 11:31:04 am by Markus_L811 » Logged

Pages: 1 ... 4 5 [6]   Go Up
Jump to: