Closed TTN- closed 1 year ago
Sorry for the slow response. I've been away for Christmas.
May I suggest you follow these instructions for now, with this link in Preference:
"http://dan.drown.org/stm32duino/package_STM32duino_index.json"
What's happening here is that my auto board identification code looks for the "__BluePill_F103C8__" or "MCU_STM32F103RB" macro, and the newer development environment is using a different identifier.
#elif defined (__BluePill_F103C8__) || defined (MCU_STM32F103RB)
#define Target_Board 1 // Blue Pill STM32F103C8
#define STM32F103C8
Alternatively, temporarily insert
#define STM32F103C8
in place of
#error "No board type defined!"
Thanks Eric. I've installed that and set the board accordingly.
Btw also:
#include <ardupilotmega/mavlink.h>
#include <ardupilotmega/ardupilotmega.h>
on line 128 at AntTracker.ino
isn't finding the files so I've just set them manually, forgot to mention that earlier.
I'm getting a few compiler issues related to those includes now, so I might be including the wrong files. I manually set them to:
#include "D:\NetworkDrive\Documents\Arduino\libraries\GCS_MAVLink\include\mavlink\v2.0\ardupilotmega\mavlink.h"
#include "D:\NetworkDrive\Documents\Arduino\libraries\GCS_MAVLink\include\mavlink\v2.0\ardupilotmega\ardupilotmega.h"
Are these the files that are intended to be included here?
Do I copy all the library files to User/Document/Arduino/libraries
?
I've managed to get it to compile by doing the following: Move all arduino libraries to somewhere else temporarily so we don't get conflicts
in Documents/Arduino/libraries/ have these:
TinyGPSPLUS/TinyGPS++.cpp
TinyGPSPLUS/TinyGPS++.h
And copy everything from PixhawkArduinoMAVLink\src\
to a folder in your library, give it a name, in my case I just put it in a folder called mavlink2
Now compiles :)
Good to hear.
Regarding Ardupilot libraries, you will find a link to the latest libs in the tracker library folder.
APM libs may be found here
Stale
I installed the libraries by copying them into user\Documents\Arduino\libraries
installed STM32DUINO library as per here https://github.com/stm32duino/wiki/wiki/Getting-Started
set my configuration in
config.h
as required, servo uS, no compass, bluepill STM32F103C8 etc..set arduino ide board type:
get "no board defined" error:
AntTrack.ino:126: config.h:210:4: error: #error "No board type defined!"
(Was I supposed to declare that or does the IDE do that bit?)manually add
#define __BluePill_F103C8__
in config.h line 178error during compilation:
Windows 10 x64 Arduino IDE 1.8.18
Has anyone seen this before?