-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
- I installed the latest version of U8g2 and selected the U8g2 -> full_buffer -> GraphicsTest example
- I then uncomment the line containing
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); - I then compile the program and get the following error:
/Users/ZZZ/Library/Arduino15/packages/WeActStudio/tools/xpack-arm-none-eabi-gcc/11.2.1-1.2/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/bin/ld: /private/var/folders/tq/dqrghm993td49tz1pvg8psxm0000gn/T/arduino/sketches/F19B70FC324096054C05F283729F84DF/GraphicsTest.ino.elf section `.rodata' will not fit in region `FLASH'
/Users/ZZZ/Library/Arduino15/packages/WeActStudio/tools/xpack-arm-none-eabi-gcc/11.2.1-1.2/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/bin/ld: /private/var/folders/tq/dqrghm993td49tz1pvg8psxm0000gn/T/arduino/sketches/F19B70FC324096054C05F283729F84DF/GraphicsTest.ino.elf section `.bss' will not fit in region `RAM'
/Users/ZZZ/Library/Arduino15/packages/WeActStudio/tools/xpack-arm-none-eabi-gcc/11.2.1-1.2/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 9923364 bytes
/Users/ZZZ/Library/Arduino15/packages/WeActStudio/tools/xpack-arm-none-eabi-gcc/11.2.1-1.2/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/bin/ld: region `RAM' overflowed by 87600 bytes
collect2: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
I then select the BlackPill F401CC board and compile again:
Sketch uses 38788 bytes (14%) of program storage space. Maximum is 262144 bytes.
Global variables use 2808 bytes (4%) of dynamic memory, leaving 62728 bytes for local variables. Maximum is 65536 bytes.
Why does the code fit on the BlackPill F401CC but not the AT32F403ACGU7 BlackPill?
Metadata
Metadata
Assignees
Labels
No labels