Hello Folks,
I am getting a compile error when I expose line 49
ab1805.loop();
in my code.
I am following the “minimal” example from AN0023 link
I’d like help understanding the error I am getting during compilation. Currently I am unable to understand what the error I am getting is.
tracker deviceOS@2.0.0-rc.3
Thanks!
Here is my code:
#include "Particle.h"
#include "tracker_config.h"
#include "tracker.h"
#include "Devices.h"
#include "AB1805_RK.h"
SYSTEM_THREAD(ENABLED);
SYSTEM_MODE(AUTOMATIC);
PRODUCT_ID(XXXXXX);
PRODUCT_VERSION(XXX);
SerialLogHandler logHandler;
Devices Device;
AB1805 ab1805(Wire);
void setup()
{
Serial.begin(115200);
Tracker::instance().init();
ab1805.setup();
ab1805.resetConfig();
ab1805.setWDT(AB1805::WATCHDOG_MAX_SECONDS);
Device.setup();
}
void loop()
{
Tracker::instance().loop();
ab1805.loop(); // This causes the compile error
Device.loop();
}
Here is the compile error I get.
I’m not able to understand what is causing the issue from the error message.
:::: COMPILING APPLICATION
Creating /Users/name/Documents/TW_Tracker_1/target/2.0.0-rc.3/tracker/platform_user_ram.ld ...
/Users/name/.particle/toolchains/gcc-arm/9.2.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /Users/name/Documents/TW_Tracker_1/target/2.0.0-rc.3/tracker/TW_Tracker_1.elf section `.data' will not fit in region `APP_FLASH'
/Users/name/.particle/toolchains/gcc-arm/9.2.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: region `APP_FLASH' overflowed by 308 bytes
collect2: error: ld returned 1 exit status
make[2]: *** [/Users/name/Documents/TW_Tracker_1/target/2.0.0-rc.3/tracker/TW_Tracker_1.elf] Error 1
make[1]: *** [modules/tracker/user-part] Error 2
make: *** [compile-user] Error 2
The terminal process "/bin/bash '-c', 'make -f '/Users/name/.particle/toolchains/buildscripts/1.9.2/Makefile' compile-user -s'" terminated with exit code: 2.
Press any key to close the terminal.