New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino DUE: TWI_Disable not declared #329

Closed
eliasse opened this Issue Nov 18, 2015 · 1 comment

Comments

Projects
None yet
3 participants
@eliasse

eliasse commented Nov 18, 2015

Hey guys,

I have used this tool with great pleasure for more than half a year now!

With the last update I receive the following error:

arm-none-eabi-g++ -o .pioenvs/autogen_due/Wire/Wire.o -c -fno-rtti -fno-exceptions -g -Os -ffunction-sections -fdata-sections -Wall -mthumb -mcpu=cortex-m3 -nostdlib -MMD -DF_CPU=84000000L -Dprintf=iprintf -DUSBCON -DUSB_MANUFACTURER="PlatformIO" -D__SAM3X8E__ -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -DUSB_VID=0x2341 -DUSB_PID=0x003e "-DUSB_PRODUCT=\"Arduino Due\"" -DARDUINO=10606 -I.pioenvs/autogen_due/FrameworkArduino -I.pioenvs/autogen_due/FrameworkCMSISInc -I.pioenvs/autogen_due/FrameworkLibSam -I.pioenvs/autogen_due/FrameworkLibSam/include -I.pioenvs/autogen_due/FrameworkDeviceInc -I.pioenvs/autogen_due/FrameworkDeviceInc/sam3xa/include -I.pioenvs/autogen_due/FrameworkArduinoVariant -I.pioenvs/autogen_due/PID -I.pioenvs/autogen_due/Servo -I.pioenvs/autogen_due/Wire .pioenvs/autogen_due/Wire/Wire.cpp
In file included from .pioenvs/autogen_due/Wire/Wire.cpp:25:0:
.pioenvs/autogen_due/Wire/Wire.h: In constructor 'TwoWire::TwoWire(Twi*, void (*)(), void (*)())':
.pioenvs/autogen_due/Wire/Wire.h:96:7: warning: 'TwoWire::twi' will be initialized after [-Wreorder]
Twi *twi;
^
.pioenvs/autogen_due/Wire/Wire.h:72:10: warning:   'uint8_t TwoWire::rxBufferIndex' [-Wreorder]
uint8_t rxBufferIndex;
^
.pioenvs/autogen_due/Wire/Wire.cpp:95:1: warning:   when initialized here [-Wreorder]
TwoWire::TwoWire(Twi *_twi, void(*_beginCb)(void), void(*_endCb)(void)) :
^
In file included from .pioenvs/autogen_due/Wire/Wire.cpp:25:0:
.pioenvs/autogen_due/Wire/Wire.h:108:16: warning: 'TwoWire::status' will be initialized after [-Wreorder]
TwoWireStatus status;
^
.pioenvs/autogen_due/Wire/Wire.h:90:30: warning:   'void (* TwoWire::onBeginCallback)()' [-Wreorder]
void (*onBeginCallback)(void);
^
.pioenvs/autogen_due/Wire/Wire.cpp:95:1: warning:   when initialized here [-Wreorder]
TwoWire::TwoWire(Twi *_twi, void(*_beginCb)(void), void(*_endCb)(void)) :
^
.pioenvs/autogen_due/Wire/Wire.cpp: In member function 'void TwoWire::end()':
.pioenvs/autogen_due/Wire/Wire.cpp:131:18: error: 'TWI_Disable' was not declared in this scope
TWI_Disable(twi);
^
scons: *** [.pioenvs/autogen_due/Wire/Wire.o] Error 1

I temporarily solved this by commenting out the place in the libs where TWI_Disable is called.
I got the same problem when trying to compile my project under Linux Mint as well as on an OS X machine with a fresh install of PIO. It however compiles fine using a previous version of PIO.

Best regards,
Elias

@valeros

This comment has been minimized.

Member

valeros commented Nov 18, 2015

Hi @eliasse!
Please try new framework-arduinosam package via platformio update.

@valeros valeros closed this Nov 18, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment