Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

region `m_text' overflowed by 604 bytes #130

Open
David-GERARD opened this issue Feb 13, 2024 · 1 comment
Open

region `m_text' overflowed by 604 bytes #130

David-GERARD opened this issue Feb 13, 2024 · 1 comment
Labels
Bug Something isn't working

Comments

@David-GERARD
Copy link

David-GERARD commented Feb 13, 2024

Describe the bug
After following the instructions on the README.md and in this document, when running make warp, I get the following error message:

/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: release/Warp.elf section `.text' will not fit in region `m_text'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: region `m_text' overflowed by 604 bytes

Furthermore, no Warp.srec file is created in work/demos/Warp/armgcc/Warp/release/

To reproduce
Follow the instructions on the main README.md in this document up to running make warp

Expected behavior

  • A Warp.srec file should be created in work/demos/Warp/armgcc/Warp/release/
  • Should print "\n\nNow, run\n\n\tmake load-warp\n\n" to consol

Host OS (please complete the following information):

  • OS: Ubuntu 20.04.2 LTS running on the server cpu1.f-of-e.org

You local changes (please complete the following information):

diff --git a/src/boot/ksdk1.1.0/boot.c b/src/boot/ksdk1.1.0/boot.c
index 53fe893..1e70bb7 100644
--- a/src/boot/ksdk1.1.0/boot.c
+++ b/src/boot/ksdk1.1.0/boot.c
@@ -1674,7 +1674,7 @@ main(void)
 #endif
 
 #if (WARP_BUILD_ENABLE_DEVMMA8451Q)
-               initMMA8451Q(   0x1C    /* i2cAddress */,       kWarpDefaultSupplyVoltageMillivoltsMMA8451Q     );
+               initMMA8451Q(   0x1D    /* i2cAddress */,       kWarpDefaultSupplyVoltageMillivoltsMMA8451Q     );^M
 #endif
 
 #if (WARP_BUILD_ENABLE_DEVLPS25H)
@@ -5035,4 +5035,4 @@ flashDecodeSensorBitField(uint16_t sensorBitField, uint8_t sensorIndex, uint8_t*
                }
        }
 }
-#endif
\ No newline at end of file
+#endif^M

diff --git a/tools/scripts/glaux.jlink.commands b/tools/scripts/glaux.jlink.commands
index 944324e..2d5be38 100644
--- a/tools/scripts/glaux.jlink.commands
+++ b/tools/scripts/glaux.jlink.commands
@@ -1,6 +1,6 @@
 power on perm
 exec EnableRemarks
 unlock kinetis
-loadfile <full-path-to-warp-firmware>/build/ksdk1.1/work/demos/Glaux/armgcc/Glaux/release/Glaux.srec
+loadfile /home/students/dsg44/Warp-firmware/build/ksdk1.1/work/demos/Glaux/armgcc/Glaux/release/Glaux.srec
 r
 go
diff --git a/tools/scripts/warp.jlink.commands b/tools/scripts/warp.jlink.commands
index da5814a..1839fbe 100644
--- a/tools/scripts/warp.jlink.commands
+++ b/tools/scripts/warp.jlink.commands
@@ -1,6 +1,6 @@
 power on perm
 exec EnableRemarks
 unlock kinetis
-loadfile <full-path-to-warp-firmware>/build/ksdk1.1/work/demos/Warp/armgcc/Warp/release/Warp.srec
+loadfile /home/students/dsg44/Warp-firmware/build/ksdk1.1/work/demos/Warp/armgcc/Warp/release/Warp.srec
 r
 go
@David-GERARD David-GERARD added the Bug Something isn't working label Feb 13, 2024
@KomaGR
Copy link
Member

KomaGR commented Apr 12, 2024

Could you share your GCC version? We have observed that for some versions GCC produced a slightly larger map for m_text that makes the firmware not fit in the flash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants