Same code no longer building


The same code that has not changed in months is now no longer building at all. I get errors for my code although it has not changed. When going to a simplified version of the code it does not work anymore as well. Below is my code

// This #include statement was automatically added by the Particle IDE.
#include <Adafruit_GPS.h>

// This #include statement was automatically added by the Particle IDE.
#include <AssetTracker.h>

#include <math.h>

//default interval
int intervalMinutes = 20;
// Creating an AssetTracker named 't' for us to reference
AssetTracker t = AssetTracker();

//Device number
char did[9] = "58965412";

//variable to hold JSON data
char data[200];

float gpsPrevLat;
float gpsPrevLon;

int decimal = 100000;

bool isMoving = false;

// Used to keep track of the last time we published data
long lastPublish = 0;

void setup() {
    // Sets up all the necessary AssetTracker bits

    // Enable the GPS module. Defaults to off to save power.
    // Takes 1.5s or so because of delays.
    gpsPrevLon = 0.0f;
    gpsPrevLat = 0.0f;

    // Opens up a Serial port so you can listen over USB

    Particle.function("gps", gpsPublish);

void loop() {
    // You'll need to run this every loop to capture the GPS output


void deviceMoving(){

// Actively ask for a GPS reading if you're impatient. Only publishes if there's
// a GPS fix, otherwise returns '0'
int gpsPublish(String command) {
    if (t.gpsFix()) {
        Particle.publish("GPS", t.readLatLon(), 60, PRIVATE);

        // uncomment next line if you want a manual publish to reset delay counter
        lastPublish = millis();
        return 1;
    } else {
      return 0;

/usr/local/gcc-arm-embedded/bin/../lib/gcc/arm-none-eabi/5.3.1/../../../../arm-none-eabi/bin/ld: target/workspace.elf section .module_info_suffix' will not fit in region APP_FLASH'
/usr/local/gcc-arm-embedded/bin/../lib/gcc/arm-none-eabi/5.3.1/../../../../arm-none-eabi/bin/ld: region `APP_FLASH' overflowed by 12 bytes
collect2: error: ld returned 1 exit status

this is the error I get

Error message seems to indicate running out of room on the flash.

Just to get the questions started… What system version are you targeting? Have you changed the system target at all? Newer system versions have less space available for the application. Where are you compiling your firmware (web, IDE, etc.)? Have you updated your compiling tools?

By the way, please encompass your code in these marks for easier reading: ``` (three before the code and three after.)


Turns out I just havent logged in in a while. Forgot to select the device. Thanks! This can be closed

1 Like