First embedded project. Using the NodeMCU ESP8266 + R307 Fingerprint Sensor + 4-pin I2C 0.96" OLED. Swicthed to PlatformIO VSC from Arduino VSC. At first the code I wrote while using Arduino VSC compiled. Now, after adding more modules, PlatformIO gives the linker error
section `.text1' will not fit in region `iram1_0_seg'
collect2: error: ld returned 1 exit status
while Arduino VSC does not give any errors. Am I good to go? I tried looking up the error, but no luck. My platform.ini
is:
[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
lib_deps =
adafruit/Adafruit GFX Library@^1.11.9
adafruit/Adafruit SSD1306@^2.5.9
adafruit/Adafruit Fingerprint Sensor Library@^2.1.3
All the headers used (except my own module headers):
#include <SPI.h>
#include <Wire.h>
#include <WiFiClient.h>
#include <ESP8266WiFi.h>
#include <Adafruit_GFX.h>
#include <SoftwareSerial.h>
#include <Adafruit_SSD1306.h>
#include <ESP8266HTTPClient.h>
#include <Adafruit_Fingerprint.h>
#include <Ticker.h>
While Arduino VSC gives:
[Starting] Verifying sketch 'mcu.ino'
Please see the build logs in output path: /home/playbahn/master/bas/build
. Variables and constants in RAM (global, static), used 29720 / 80192 bytes (37%)
║ SEGMENT BYTES DESCRIPTION
╠══ DATA 1516 initialized variables
╠══ RODATA 1348 constants
╚══ BSS 26856 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 62559 / 65536 bytes (95%)
║ SEGMENT BYTES DESCRIPTION
╠══ ICACHE 32768 reserved space for flash instruction cache
╚══ IRAM 29791 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 285656 / 1048576 bytes (27%)
║ SEGMENT BYTES DESCRIPTION
╚══ IROM 285656 code in flash
IntelliSense configuration already up to date. To manually rebuild your IntelliSense configuration run "Ctrl+Alt+I"
[Done] Verifying sketch 'mcu.ino'
My .vscode/arduino.json
is:
{
"configuration": "xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,eesz=4M2M,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200",
"board": "esp8266:esp8266:nodemcuv2",
"output": "../build",
"intelliSenseGen": "enable",
"sketch": "mcu.ino"
}