- Posts: 45
Error building devo7E on Windows
- quique65
- Topic Author
- Offline
can somebody help me with this error building on Windows?. Thank you.
commit: efc42d6
make TARGET=devo7e TYPE=prd
+ Building 'devo7e.elf'
d:/mingw/stm32/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/
ld.exe: devo7e.elf section `.data' will not fit in region `rom'
d:/mingw/stm32/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/
ld.exe: region `rom' overflowed by 288 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [devo7e.elf] Error 1
Please Log in or Create an account to join the conversation.
- ColdFire
- Offline
- Posts: 45
To me it seems like the code size is larger than the Flash ROM
Please Log in or Create an account to join the conversation.
- ColdFire
- Offline
- Posts: 45
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
you can try doing:
make TARGET=devo7e clean
make TARGET=devo7e TYPE=dev
the dev build is actually smaller, as it disables the 'standard' mixer
you no longer need 'TYPE=prd' it is now the default.
Please Log in or Create an account to join the conversation.
- quique65
- Topic Author
- Offline
- Posts: 45
gcc 4.6.2. Using make TARGET=devo7e same message (288 bytes). If I make new clean and TYPE=dev more overflow:
+ Building 'devo7e.elf'
+ Optimizing placement and re-linking
c:/mingw/stm32/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/
ld.exe: devo7e.elf section `.text' will not fit in region `rom'
c:/mingw/stm32/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/
ld.exe: region `rom' overflowed by 3152 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [devo7e.bin] Error 1
Regards,
Enrique.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- quique65
- Topic Author
- Offline
- Posts: 45
Regards,
Enrique.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- quique65
- Topic Author
- Offline
- Posts: 45
now the buid is ok but when I copy the protocol modules the TX doesn't boot. I'm copying the folder from /src/objs/devo7e/protocol and the mod files have the same time stamp than the dfu file. If I remove the protocol folder the TX boots.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
if you want me to debug, you should have an errors.txt in the root of your tx.
check to see if it has a stack dump in it (it should). Then send me that, the devo7e.elf and all of the protocol.elf files (in the objs/devo7e directory)
Please Log in or Create an account to join the conversation.
- quique65
- Topic Author
- Offline
- Posts: 45
Regards,
Enrique.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
The module support is very picky.
For some reason, your build uses memset inside the module. This is likely a compiler optimization and is causing the issues.
To debug, I need to be able to rebuild using your version of gcc.
Are you using the VM or windows build env?
If so which?
If not, what does 'arm-none-eabi-gcc --version' say?
What platform are you on (Windows, Linux (which variant), Mac)?
How did you get the build environment?
Actually the memset is intentional, butthe compiler is calling it in the wrong way. All the rest of the above applies though
Please Log in or Create an account to join the conversation.
- quique65
- Topic Author
- Offline
- Posts: 45
I'm on Windows 7 (32 bits) and I've installed:
mingw-get-inst-20120426
yagarto-bu-2.22_gcc-4.7.2-c-c++_nl-1.20.0_gdb-7.5_eabi_20121013
python-2.7.3
fltk-1.3.0-source.tar
pa_stable_v19_20111121
libopencm3-libopencm3-83d62e9
User@User-T60 ~/src/deviation/src
$ arm-none-eabi-gcc --version
arm-none-eabi-gcc.exe (GCC) 4.7.2
Before the Devo7E release I'm building your commits and suvsuv's ones ok. If I use the suvsuv version with your changes mixed I have the same problem but I think that the suvsuv make scrpit has a problem creating the mod files.
Regards,
Enrique.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
I've done 3 things:
1) I duplicated the issue, and changed the code so it builds properly with YAGARTO
2) I added a checker to verifythe module build is actually OK
3) I added a dialog to the Tx to tell you if the module is not present or built against a different dfu
Please Log in or Create an account to join the conversation.
- quique65
- Topic Author
- Offline
- Posts: 45
the build on Windows is working properly. Thank you very much.
Regards,
Enrique.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- Error building devo7E on Windows