Wio LTE Tracker: SD Card examples do not compile

Simplify IoT Development.

Moderators: lily.li, violet, seth.welday

Post Reply
matthias.gruenewald
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Sat Nov 02, 2019 6:56 pm

Wio LTE Tracker: SD Card examples do not compile

Post by matthias.gruenewald » Mon Nov 11, 2019 2:57 pm

Hello together,

when I try to compile any of the incldued SD card examples (e.g., Datalogger), I get the errors below. It seems that are two implementation of the SPI interface included which do not work together. Any idea how to fix this?

In file included from /home/grueni/.arduino15/packages/Seeeduino/hardware/Seeed_STM32F4/1.2.5/libraries/SD/SD.h:24:0,
from /home/grueni/Apps/Arduino/Sketchbook/Datalogger/Datalogger.ino:24:
/home/grueni/.arduino15/packages/Seeeduino/hardware/Seeed_STM32F4/1.2.5/libraries/SPI/SPI.h:362:17: error: conflicting declaration 'SPIClass SPI'
extern SPIClass SPI;//(1);// dummy params

^
In file included from /home/grueni/.arduino15/packages/Seeeduino/hardware/Seeed_STM32F4/1.2.5/cores/arduino/wirish.h:49:0,
from /home/grueni/.arduino15/packages/Seeeduino/hardware/Seeed_STM32F4/1.2.5/cores/arduino/WProgram.h:27,
from /home/grueni/.arduino15/packages/Seeeduino/hardware/Seeed_STM32F4/1.2.5/cores/arduino/Arduino.h:3,
from sketch/Datalogger.ino.cpp:1:
/home/grueni/.arduino15/packages/Seeeduino/hardware/Seeed_STM32F4/1.2.5/cores/arduino/HardwareSPI.h:276:20: error: 'SPI' has a previous declaration as 'HardwareSPI SPI'
extern HardwareSPI SPI;

Bye

Matthias

User avatar
salmanfarisvp
Kindergarten
Kindergarten
Posts: 66
Joined: Sun May 20, 2018 2:02 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Linklt One , BeagleBone Green , ReSpaker
Contact:

Re: Wio LTE Tracker: SD Card examples do not compile

Post by salmanfarisvp » Fri Dec 06, 2019 3:41 am

Hi matthias.gruenewald,

Which library are you using? I tried to replicate the error by compiling the DataLogger example code and I didn't got any error . can you please update to the latest Arduino IDE and Library

Library link: https://github.com/Seeed-Studio/Wio_LTE_Arduino_Library
Thank You :) .

Post Reply