Chrome File too large

Trying to use a library that relies on Mbed OS 2. Using the online compiler for this. When I try to compile to the board, Chrome says “File too large”

File is 2 lines of code right now

Hello,

please be so kind and share a link to a project which we can reproduce this issue with. And please also share name of your target.

BR, Jan

 #include "mbed.h"
 #include "TextLCD.h"
 
 TextLCD lcd(A0, A1, A2, A3, A4, A5);
 
 int main() {
     lcd.printf("Test\n");
 }

Nucleo-F410RB
https://os.mbed.com/users/wim/notebook/textlcd-enhanced/

Using MbedOS2

Okay, but this link is a link to a guide that mentions few examples and libraries, but which one exactly?

When we take a look to TextLCD_HelloWorld of this - HD44780 Text LCD | Mbed
Compilation is Ok, file was generated with Edge (also based on chromium) and also with Chrome.

BR, Jan

https://os.mbed.com/ide/import-program//users/wim/code/TextLCD/;mode:lib

This is the library, towards the bottom of the page I linked earlier.

You copied the link from import button. So this one TextLCD - Updated for more display types. Fixed memoryaddr… | Mbed.
However the result is same. Compilation is Ok, file was generated with Edge (also based on chromium) and also with Chrome.

BR, Jan

When using that lib all I get is

Build started
Using toolchain ARM_STD profile {'ENV': {'ARMLMD_LICENSE_FILE': '8224@10.10.100.161:8224@10.10.111.207'}, 'PATHS': {'ARMC6_PATH': '/opt/ARMCompiler6.15.13/bin/', 'ARM_PATH': '/opt/armcc5_06_u6/'}, 'common': ['-c', '--gnu', '-O3', '-Otime', '--split_sections', '--apcs=interwork'], 'cxx': ['--cpp', '--no_rtti'], 'COMPILE_C_AS_CPP': False, 'NEW_SCAN_RESOURCES': True}
scan /tmp/chroots/ch-597bfa7d-6632-4224-a054-86cd79735ec1/src
scan /tmp/chroots/ch-597bfa7d-6632-4224-a054-86cd79735ec1/extras/mbed
Configuration error: 'static_memory_defines' is not defined.
#1-D: last line of file ends without a newline
#1-D: last line of file ends without a newline
#1-D: last line of file ends without a newline
compile TextLCD/TextLCD.cpp
#1-D: last line of file ends without a newline
#1-D: last line of file ends without a newline
#1-D: last line of file ends without a newline
link FinalProject.NUCLEO_F410RB
compile main.cpp
elf2bin FinalProject.NUCLEO_F410RB
Build succeeded
Preparing to run

And then I get a small popup saying “failed to run”

 #include "mbed.h"
 #include "TextLCD.h"
 
 TextLCD lcd (A0, A1, A2, A3, A4, A5);
 
 int main() {
     lcd.printf("Test\n");
 }

Ok, but that is output from KeilStudio online, not from Online Compiler… that changes the game.

I created new project in KeilStudio and selected mbed2-example-blinky, then I imported TextLCD from link above and copy & paste you code.

1 compilation (full)

Build started
Using toolchain ARM_STD profile {'ENV': {'ARMLMD_LICENSE_FILE': '8224@10.10.100.161:8224@10.10.111.207'}, 'PATHS': {'ARMC6_PATH': '/opt/ARMCompiler6.15.13/bin/', 'ARM_PATH': '/opt/armcc5_06_u6/'}, 'common': ['-c', '--gnu', '-O3', '-Otime', '--split_sections', '--apcs=interwork'], 'cxx': ['--cpp', '--no_rtti'], 'COMPILE_C_AS_CPP': False, 'NEW_SCAN_RESOURCES': True}
scan /tmp/chroots/ch-d7240c0c-488e-41ec-9ec6-3f8bd1856910/src
scan /tmp/chroots/ch-d7240c0c-488e-41ec-9ec6-3f8bd1856910/extras/mbed
Configuration error: 'static_memory_defines' is not defined.
#1-D: last line of file ends without a newline
#1-D: last line of file ends without a newline
#1-D: last line of file ends without a newline
compile TextLCD/TextLCD.cpp
#1-D: last line of file ends without a newline
#1-D: last line of file ends without a newline
#1-D: last line of file ends without a newline
link mbed2-example-blinky.NUCLEO_F410RB
compile main.cpp
elf2bin mbed2-example-blinky.NUCLEO_F410RB
Build succeeded
  1. compilation
Build started
Using toolchain ARM_STD profile {'ENV': {'ARMLMD_LICENSE_FILE': '8224@10.10.100.161:8224@10.10.111.207'}, 'PATHS': {'ARMC6_PATH': '/opt/ARMCompiler6.15.13/bin/', 'ARM_PATH': '/opt/armcc5_06_u6/'}, 'common': ['-c', '--gnu', '-O3', '-Otime', '--split_sections', '--apcs=interwork'], 'cxx': ['--cpp', '--no_rtti'], 'COMPILE_C_AS_CPP': False, 'NEW_SCAN_RESOURCES': True}
scan /tmp/chroots/ch-5b469074-a1c9-40dd-8905-362e3e5636d9/src
scan /tmp/chroots/ch-5b469074-a1c9-40dd-8905-362e3e5636d9/extras/mbed
Configuration error: 'static_memory_defines' is not defined.
link mbed2-example-blinky.NUCLEO_F410RB
elf2bin mbed2-example-blinky.NUCLEO_F410RB
Build succeeded

However bin files are generated evertime (Edge and Chrome).

BR, Jan

I had my board pushed into a bread board and was shorting some pins. When the pins were shorted the board only had 8KB of space. Removing the board from the breadboard solved my issue.