Thank you for your answer. I’m new to this, so please bear with me. The shield I am using is this: https://www.adafruit.com/product/746
As I said, I was able to get this shield to work with my Arduino Uno. To make it work, I connected the shield to 3V and GND and to inputs 7 & 8. I used the following code to initialize the SoftwareSerial connection:
SoftwareSerial mySerial(8, 7);
This setup works and reports GPS data across the “real” serial line which is connected to the Arduino tool’s console.
When I try to move this code over to the Discovery board I have a bunch of problems. The Discover board is this: https://www.st.com/en/evaluation-tools/b-l072z-lrwan1.html
When I compile the code for this board in the Arduino tool, it complains:
GPS_SoftwareSerial_EchoTest:16:27: error: no matching function for call to ‘Adafruit_GPS::Adafruit_GPS(SoftwareSerial*)’
In file included from /Users/dellis/Dropbox/Opus/Code/Helium/GPS_SoftwareSerial_EchoTest/GPS_SoftwareSerial_EchoTest.ino:13:
/Users/dellis/Documents/Arduino/libraries/Adafruit_GPS_Library/Adafruit_GPS.h:114:3: note: candidate: ‘Adafruit_GPS::Adafruit_GPS(TwoWire*)’
Adafruit_GPS(TwoWire *theWire); // Constructor when using I2C
I interpret this to mean that the SoftwareSerial library isn’t set up for this board. My guess, maybe wrong, is that this is because the board has plenty of actual serial interfaces to use. But, maybe I just have my build environment incorrectly configured.
So, I change my code to:
This compiles fine. But, I don’t know what Serial2 is on the board. How do I find a mapping of the pins on the ST32 board?
Thank you for any clarifications.