question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Digistump digispark ATTiny85 compile time noise

See original GitHub issue

Hi guys!

When compiling for a digispark, I get a lot of warning noise. I do not know how important this is but it makes me at least nervous every time I compile my code 😃

It boils down to

  • redefinition of BIN already mentioned in https://github.com/platformio/platform-atmelavr/issues/47 in 2017
  • #warning "This file has been moved to <…>
  • warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  • warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Any chance to get this fixed please?

Br, Alex.

github project: https://github.com/anno73/IoT-Universal-Socket-Strip/tree/master/software/relay

platformio.ini:

[platformio]
description = IoT Universal Socket Strip

[env:digispark-vusb]
platform = atmelavr
board = digispark-tiny
framework = arduino
debug_tool = simavr
lib_deps =
    ; nickcengel/TinyWireSio @ ^0.0.0-alpha+sha.722ada4382
    nickcengel/TinyWireSio 
    prosenb/EEPROMWearLevel @ ^2.0.0
lib_ldf_mode = chain+

Compile time output:

> Executing task in folder relay: C:\Users\alex\.platformio\penv\Scripts\pio.exe run <

Processing digispark-vusb (platform: atmelavr; board: digispark-tiny; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/digispark-tiny.html
PLATFORM: Atmel AVR (3.1.0) > Digispark USB     
HARDWARE: ATTINY85 16MHz, 512B RAM, 5.87KB Flash
DEBUG: Current (simavr) On-board (simavr)       
PACKAGES:
 - framework-arduino-avr-digistump 1.6.7        
 - toolchain-atmelavr 1.50400.190710 (5.4.0)    
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain+, Compatibility ~ soft
Found 32 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <TinyWireSio> 0.0.0-alpha+sha.722ada4382
|-- <EEPROM> 2.0
|-- <EEPROMWearLevel> 2.0.0
|   |-- <EEPROM> 2.0
Building in release mode
Compiling .pio\build\digispark-vusb\src\main.cpp.o
Compiling .pio\build\digispark-vusb\lib639\TinyWireSio\TinyWireS.cpp.o
Compiling .pio\build\digispark-vusb\lib639\TinyWireSio\usiTwiSlave.c.o
Archiving .pio\build\digispark-vusb\lib1ac\libEEPROM.a
Compiling .pio\build\digispark-vusb\lib69f\EEPROMWearLevel\EEPROMWearLevel.cpp.o
Compiling .pio\build\digispark-vusb\FrameworkArduinoVariant\pins_arduino.c.o
Compiling .pio\build\digispark-vusb\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\digispark-vusb\FrameworkArduino\Print.cpp.o
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/Stream.h:24:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/WProgram.h:18,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/Arduino.h:4,
Compiling .pio\build\digispark-vusb\FrameworkArduino\TinyDebugSerial.cpp.o
Compiling .pio\build\digispark-vusb\FrameworkArduino\TinyDebugSerial115200.cpp.o
                 from .pio\libdeps\digispark-vusb\TinyWireSio\TinyWireS.cpp:23:
Compiling .pio\build\digispark-vusb\FrameworkArduino\TinyDebugSerial38400.cpp.o
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/Print.h:37:0: warning: "BIN" redefined
Archiving .pio\build\digispark-vusb\lib639\libTinyWireSio.a
 #define BIN 2
 ^
In file included from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotn85.h:38:0,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\io.h:428,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\interrupt.h:38,
                 from .pio\libdeps\digispark-vusb\TinyWireSio\TinyWireS.cpp:19:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition
 #define BIN     7
 ^
.pio\libdeps\digispark-vusb\TinyWireSio\usiTwiSlave.c: In function 'usiTwiTransmitByte':
.pio\libdeps\digispark-vusb\TinyWireSio\usiTwiSlave.c:403:11: warning: unused variable 'tmphead' [-Wunused-variable]
   uint8_t tmphead;
           ^
Archiving .pio\build\digispark-vusb\libFrameworkArduinoVariant.a
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/Stream.h:24:0,
Compiling .pio\build\digispark-vusb\FrameworkArduino\TinyDebugSerial9600.cpp.o
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/WProgram.h:18,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/Arduino.h:4,
                 from src\main.cpp:1:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/Print.h:37:0: warning: "BIN" redefined
Compiling .pio\build\digispark-vusb\FrameworkArduino\TinyDebugSerialErrors.cpp.o
Archiving .pio\build\digispark-vusb\lib69f\libEEPROMWearLevel.a
 #define BIN 2
 ^
In file included from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotn85.h:38:0,
Compiling .pio\build\digispark-vusb\FrameworkArduino\Tone.cpp.o
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\io.h:428,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\interrupt.h:38,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/WProgram.h:8,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/Arduino.h:4,
                 from src\main.cpp:1:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition
 #define BIN     7
 ^
src\main.cpp: In function 'void readConfigFromEeprom()':
src\main.cpp:537:15: warning: implicit dereference will not access object of type 'volatile unsigned char' in statement
     EEPROM.get(0, iicSlaveAddress);
Compiling .pio\build\digispark-vusb\FrameworkArduino\WInterrupts.c.o
               ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/Stream.h:24:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/WProgram.h:18,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/Arduino.h:4,
                 from .pio\libdeps\digispark-vusb\EEPROMWearLevel\EEPROMWearLevel.cpp:1:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/Print.h:37:0: warning: "BIN" redefined
 #define BIN 2
Compiling .pio\build\digispark-vusb\FrameworkArduino\WMath.cpp.o
 ^
In file included from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotn85.h:38:0,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\io.h:428,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\interrupt.h:38,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/WProgram.h:8,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/Arduino.h:4,
                 from .pio\libdeps\digispark-vusb\EEPROMWearLevel\EEPROMWearLevel.cpp:1:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition
 #define BIN     7
 ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.cpp:28:0:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.h:37:0: warning: "BIN" redefined
 #define BIN 2
 ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/wiring_private.h:32:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\variants\digispark\pins_arduino.c:38:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>." [-Wcpp]
 #warning "This file has been moved to <util/delay.h>."
  ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_private.h:32:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\HardwareSerial.cpp:30:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>." [-Wcpp]
 #warning "This file has been moved to <util/delay.h>."
  ^
In file included from .pio\libdeps\digispark-vusb\EEPROMWearLevel\EEPROMWearLevel.h:23:0,
                 from .pio\libdeps\digispark-vusb\EEPROMWearLevel\EEPROMWearLevel.cpp:2:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\libraries\EEPROM\src/EEPROM.h:145:20: warning: 'EEPROM' defined but not used [-Wunused-variable]
 static EEPROMClass EEPROM;
                    ^
In file included from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotn85.h:38:0,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\io.h:428,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.cpp:27:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition
 #define BIN     7
 ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\variants\digispark\pins_arduino.c:274:2: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  &DDRB,
  ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\variants\digispark\pins_arduino.c:274:2: note: (near initialization for 'port_to_mode_PGM[1]')
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\variants\digispark\pins_arduino.c:280:2: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  &PORTB,
  ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\variants\digispark\pins_arduino.c:280:2: note: (near initialization for 'port_to_output_PGM[1]')
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\variants\digispark\pins_arduino.c:286:2: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
Compiling .pio\build\digispark-vusb\FrameworkArduino\WString.cpp.o
  &PINB,
Compiling .pio\build\digispark-vusb\FrameworkArduino\main.cpp.o
Compiling .pio\build\digispark-vusb\FrameworkArduino\new.cpp.o
  ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\variants\digispark\pins_arduino.c:286:2: note: (near initialization for 'port_to_input_PGM[1]')
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.cpp: In member function 'void Print::print(const String&)':
Compiling .pio\build\digispark-vusb\FrameworkArduino\pins_arduino.c.o
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.cpp:48:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < s.length(); i++) {
                     ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Stream.h:24:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial115200.cpp:24:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.h:37:0: warning: "BIN" redefined
 #define BIN 2
 ^
In file included from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotn85.h:38:0,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\io.h:428,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\pgmspace.h:90,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.h:30,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Stream.h:24,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial115200.cpp:24:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition
 #define BIN     7
 ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Stream.h:24:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial.cpp:25:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.h:37:0: warning: "BIN" redefined
 #define BIN 2
 ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Stream.h:24:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial38400.cpp:24:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.h:37:0: warning: "BIN" redefined
 #define BIN 2
 ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Stream.h:24:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial9600.cpp:24:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.h:37:0: warning: "BIN" redefined
Compiling .pio\build\digispark-vusb\FrameworkArduino\wiring.c.o
 #define BIN 2
 ^
In file included from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotn85.h:38:0,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\io.h:428,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\pgmspace.h:90,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.h:30,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Stream.h:24,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial.cpp:25:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition
 #define BIN     7
 ^
In file included from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotn85.h:38:0,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\io.h:428,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\pgmspace.h:90,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.h:30,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Stream.h:24,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial38400.cpp:24:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition
 #define BIN     7
 ^
Compiling .pio\build\digispark-vusb\FrameworkArduino\wiring_analog.c.o
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Stream.h:24:0,
Compiling .pio\build\digispark-vusb\FrameworkArduino\wiring_digital.c.o
Compiling .pio\build\digispark-vusb\FrameworkArduino\wiring_pulse.c.o
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial.h:31,
Compiling .pio\build\digispark-vusb\FrameworkArduino\wiring_shift.c.o
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerialErrors.cpp:24:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.h:37:0: warning: "BIN" redefined
 #define BIN 2
 ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_private.h:32:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\WInterrupts.c:37:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>." [-Wcpp]
 #warning "This file has been moved to <util/delay.h>."
  ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Tone.cpp:41:0:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Tone.cpp: In function 'void tone(uint8_t, unsigned int, long unsigned int)':
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.h:80:95: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define portOutputRegister(P) ( (volatile uint8_t *)( pgm_read_byte( port_to_output_PGM + (P))) )
                                                                                               ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Tone.cpp:232:33: note: in expansion of macro 'portOutputRegister'
       tone_timer_pin_register = portOutputRegister( digitalPinToPort( _pin ) );
                                 ^
In file included from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotn85.h:38:0,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\io.h:428,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\pgmspace.h:90,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.h:30,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Stream.h:24,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial9600.cpp:24:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition
 #define BIN     7
 ^
In file included from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotn85.h:38:0,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\io.h:428,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\pgmspace.h:90,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.h:30,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Stream.h:24,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerialErrors.cpp:24:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition
 #define BIN     7
 ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Stream.h:24:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\WProgram.h:18,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\WString.cpp:21:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\Print.h:37:0: warning: "BIN" redefined
 #define BIN 2
 ^
In file included from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotn85.h:38:0,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\io.h:428,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\interrupt.h:38,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\WProgram.h:8,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\WString.cpp:21:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition
 #define BIN     7
 ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_private.h:32:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.c:38:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>." [-Wcpp]
 #warning "This file has been moved to <util/delay.h>."
  ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/Stream.h:24:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/TinyDebugSerial.h:31,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/WProgram.h:18,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\main.cpp:1:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/Print.h:37:0: warning: "BIN" redefined
 #define BIN 2
 ^
In file included from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotn85.h:38:0,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\io.h:428,
                 from c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\interrupt.h:38,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny/WProgram.h:8,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\main.cpp:1:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition
 #define BIN     7
 ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_private.h:32:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_analog.c:29:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>." [-Wcpp]
 #warning "This file has been moved to <util/delay.h>."
  ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_private.h:32:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring.c:32:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>." [-Wcpp]
 #warning "This file has been moved to <util/delay.h>."
  ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.c:274:2: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  &DDRB,
  ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.c:274:2: note: (near initialization for 'port_to_mode_PGM[1]')
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.c:280:2: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  &PORTB,
  ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.c:280:2: note: (near initialization for 'port_to_output_PGM[1]')
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.c:286:2: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  &PINB,
  ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.c:286:2: note: (near initialization for 'port_to_input_PGM[1]')
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_private.h:32:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_pulse.c:25:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>." [-Wcpp]
 #warning "This file has been moved to <util/delay.h>."
  ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_private.h:32:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_digital.c:28:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>." [-Wcpp]
 #warning "This file has been moved to <util/delay.h>."
  ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_private.h:32:0,
                 from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_shift.c:25:
c:\users\alex\.platformio\packages\toolchain-atmelavr\avr\include\avr\delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>." [-Wcpp]
 #warning "This file has been moved to <util/delay.h>."
  ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_pulse.c:26:0:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_pulse.c: In function 'pulseIn':
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.h:81:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define portInputRegister(P) ( (volatile uint8_t *)( pgm_read_byte( port_to_input_PGM + (P))) )
                                ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_pulse.c:48:11: note: in expansion of macro 'portInputRegister'
  while ((*portInputRegister(port) & bit) == stateMask)
           ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.h:81:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Archiving .pio\build\digispark-vusb\libFrameworkArduino.a
 #define portInputRegister(P) ( (volatile uint8_t *)( pgm_read_byte( port_to_input_PGM + (P))) )
                                ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_pulse.c:53:11: note: in expansion of macro 'portInputRegister'
  while ((*portInputRegister(port) & bit) != stateMask)
           ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.h:81:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define portInputRegister(P) ( (volatile uint8_t *)( pgm_read_byte( port_to_input_PGM + (P))) )
                                ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_pulse.c:58:11: note: in expansion of macro 'portInputRegister'
  while ((*portInputRegister(port) & bit) == stateMask) {
           ^
In file included from C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_digital.c:29:0:
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_digital.c: In function 'pinMode':
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.h:82:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define portModeRegister(P) ( (volatile uint8_t *)( pgm_read_byte( port_to_mode_PGM + (P))) )
                               ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_digital.c:43:8: note: in expansion of macro 'portModeRegister'
  reg = portModeRegister(port);
        ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.h:80:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define portOutputRegister(P) ( (volatile uint8_t *)( pgm_read_byte( port_to_output_PGM + (P))) )
                                 ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_digital.c:44:8: note: in expansion of macro 'portOutputRegister'
  out = portOutputRegister(port);
        ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_digital.c: In function 'digitalWrite':
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.h:80:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define portOutputRegister(P) ( (volatile uint8_t *)( pgm_read_byte( port_to_output_PGM + (P))) )
                                 ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_digital.c:127:8: note: in expansion of macro 'portOutputRegister'
  out = portOutputRegister(port);
Linking .pio\build\digispark-vusb\firmware.elf
        ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_digital.c: In function 'digitalRead':
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\pins_arduino.h:81:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define portInputRegister(P) ( (volatile uint8_t *)( pgm_read_byte( port_to_input_PGM + (P))) )
                                ^
C:\users\alex\.platformio\packages\framework-arduino-avr-digistump\cores\dtiny\wiring_digital.c:153:7: note: in expansion of macro 'portInputRegister'
  if (*portInputRegister(port) & bit) return HIGH;
       ^
Building .pio\build\digispark-vusb\firmware.hex
Checking size .pio\build\digispark-vusb\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  12.1% (used 62 bytes from 512 bytes)
Flash: [===       ]  31.0% (used 1864 bytes from 6012 bytes)
============================================================================================================================================ [SUCCESS] Took 4.77 seconds ============================================================================================================================================
Terminal will be reused by tasks, press any key to close it.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:21

github_iconTop GitHub Comments

3reactions
maxgerhardtcommented, Feb 10, 2021

Feature request opened as linked above this comment.

2reactions
maxgerhardtcommented, Feb 9, 2021

I’ll open a proper issue or PR for full-integration of the new core, then that will be directly addressed in the platform code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

digispark:tricks [Digistump Wiki]
When the digispark boots up, it uses the USB signal to calibrate its clock ... or nothing - even the function never actually...
Read more >
Digipark Attiny85 just won't work : / - Digistump
One thing that has helped me is to program the Digispark through a USB hub (preferably powered, but unpowered has worked too.) Give...
Read more >
Digispark Puppet Control! - Digistump
Yes, that sounds straightforward enough. Once the Digispark is programmed, it will remember the program until is is erased.
Read more >
Digispark connects then disconnects from Win7 - Digistump
About 5 seconds later, I hear the USB disconnect sound. When the driver installation finishes I get the error that the device is...
Read more >
DigiMouse causes too much noise - Digistump
I wrote a Mouse Jiggler with Attiny85 Board with a switch to ... Also the Tool "Idle Clock" showed that the maximum idle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found