Skip to content

Compilation problems with older Nano board (eChook kit v1) #13

Description

@StephenTBird

The compilation of Nano Every (ATMega4809 target) works fine, but the eChook kit v1 we have uses the original Nano (atmega328), which throws up some compilation errors, which I think is mainly related to targetted scope definitions.

In file included from C:\Users\steve\OneDrive\Documents\Greenpower Racing\eChook-Arduino-Nano-2.04.2\eChook-Arduino-Nano-2.04.2\eChookCode\eChookCode.ino:17:0:
C:\Users\steve\OneDrive\Documents\Greenpower Racing\eChook-Arduino-Nano-2.04.2\eChook-Arduino-Nano-2.04.2\eChookCode\Pinout.h:10:33: error: 'A7' was not declared in this scope
const int VBATT1_IN_PIN = A7; // Analog input pin for the lower battery voltage (battery between ground and 12V)
^~
C:\Users\steve\OneDrive\Documents\Greenpower Racing\eChook-Arduino-Nano-2.04.2\eChook-Arduino-Nano-2.04.2\eChookCode\Pinout.h:10:33: note: suggested alternative: 'A5'
const int VBATT1_IN_PIN = A7; // Analog input pin for the lower battery voltage (battery between ground and 12V)
^~
A5
C:\Users\steve\OneDrive\Documents\Greenpower Racing\eChook-Arduino-Nano-2.04.2\eChook-Arduino-Nano-2.04.2\eChookCode\eChook_Functions.ino: In function 'void configureBluetooth()':
C:\Users\steve\OneDrive\Documents\Greenpower Racing\eChook-Arduino-Nano-2.04.2\eChook-Arduino-Nano-2.04.2\eChookCode\eChook_Functions.ino:856:3: error: 'response' was not declared in this scope
response = (SerialA.readStringUntil('\n'));
^~~~~~~~
C:\Users\steve\OneDrive\Documents\Greenpower Racing\eChook-Arduino-Nano-2.04.2\eChook-Arduino-Nano-2.04.2\eChookCode\eChook_Functions.ino:856:3: note: suggested alternative: 'tempOne'
response = (SerialA.readStringUntil('\n'));
^~~~~~~~
tempOne
exit status 1

Compilation error: 'A7' was not declared in this scope

===================
If it is possible to take a look, that would be great.

I am new to eChook and the micro controllers, so if I have misinterpreted / miscompiled this then I am sorry in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions