Skip to content

initVariant() function not being linked in 1.6.6 #72

Closed
@ffissore

Description

@ffissore

From @kmclifton on November 23, 2015 3:5

We have some custom init code that needs to run to initialise our hardware (not Arduino). In version 1.6.5 of the IDE we simply included a file called initvariant.cpp (defining void initVariant() ) alongside pins_arduino.h under variants/standard in our package directory. See contents of initvariant.cpp below. With the upgrade to 1.6.6 that seems to have broken. The init code no longer runs at all. It isn't linked in.
Possibly related to this issue: aee32ff

#include <Wire.h>
#include <Arduino.h>
#include <pins_arduino.h>

void initVariant() 
{ 
    Wire.begin();
    pinMode(EXPANDER_RSTN, OUTPUT);
    digitalWrite(EXPANDER_RSTN, LOW);
    delay(10);
    digitalWrite(EXPANDER_RSTN, HIGH);

    delay(10);
}

Copied from original issue: arduino/Arduino#4205

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions