Jump to content
Nick1308

Getting error while compiling code for TRF7970A NFC reader

Recommended Posts

Hi all,

I am working on reading NFC tags using MSP EXP430G2ET Rev 1.0 launchpad with the MSP430G2553 microprocessor and DLP 79070ABP booster pack. I have used the attached header files and wrote the attached code on Energia v1.8.7E21 on Windows 10. I have all the drivers installed for the above Launchpad and also tried uploading the sketch for blinking LED and analog sensor serial reading which are working as expected. But when I try to upload the code for reading the NFC Tags, it showing the following error log:

D:\pmk\NUSProject\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\energia\msp430\cores\msp430\atof.c: In function 'atof':

D:\pmk\NUSProject\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\energia\msp430\cores\msp430\atof.c:71:9: warning: floating constant exceeds range of 'double' [-Woverflow]

libraries\TRF7970ABP\trf7970BoosterPackEnergia.cpp.o:(.bss.stand_alone_flag+0x0): multiple definition of `stand_alone_flag'

sketch\trf7970BoosterPackEnergia.cpp.o:(.bss.stand_alone_flag+0x0): first defined here

d:/pmk/nusproject/energia-1.8.7e21-windows/energia-1.8.7e21/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: C:\Users\PMK\AppData\Local\Temp\arduino_build_374378/TRF7970ABPDemo.ino.elf section `.text' will not fit in region `rom'

d:/pmk/nusproject/energia-1.8.7e21-windows/energia-1.8.7e21/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: section .vectors loaded at [0000ffe0,0000ffff] overlaps section .text loaded at [0000c000,00010677]

d:/pmk/nusproject/energia-1.8.7e21-windows/energia-1.8.7e21/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: region `rom' overflowed by 2734 bytes

d:/pmk/nusproject/energia-1.8.7e21-windows/energia-1.8.7e21/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3\libcrt0.a(_copy_data.o): In function `__do_copy_data':

/root/mspgcc-20120406/BUILD/gcc/gcc/../../../gcc-4.6.3/gcc/config/msp430/crt0.S:195: relocation truncated to fit: R_MSP430_16_BYTE against symbol `__data_load_start' defined in *ABS* section in C:\Users\PMK\AppData\Local\Temp\arduino_build_374378/TRF7970ABPDemo.ino.elf

C:\Users\PMK\AppData\Local\Temp\arduino_build_374378/core\core.a(main.cpp.o): In function `main':

main.cpp:(.init9+0x2): relocation truncated to fit: R_MSP430_16 against symbol `init' defined in .text.init section in C:\Users\PMK\AppData\Local\Temp\arduino_build_374378/core\core.a(wiring.c.o)

libraries\TRF7970ABP\utility\trf7970.cpp.o: In function `trf7970::trf7970(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':

trf7970.cpp:(.text._ZN7trf7970C2Ehhhhhh+0x18): relocation truncated to fit: R_MSP430_16 against symbol `pinMode' defined in .text.pinMode section in C:\Users\PMK\AppData\Local\Temp\arduino_build_374378/core\core.a(wiring_digital.c.o)

trf7970.cpp:(.text._ZN7trf7970C2Ehhhhhh+0x20): relocation truncated to fit: R_MSP430_16 against symbol `pinMode' defined in .text.pinMode section in C:\Users\PMK\AppData\Local\Temp\arduino_build_374378/core\core.a(wiring_digital.c.o)

trf7970.cpp:(.text._ZN7trf7970C2Ehhhhhh+0x2a): relocation truncated to fit: R_MSP430_16 against symbol `pinMode' defined in .text.pinMode section in C:\Users\PMK\AppData\Local\Temp\arduino_build_374378/core\core.a(wiring_digital.c.o)

trf7970.cpp:(.text._ZN7trf7970C2Ehhhhhh+0x32): relocation truncated to fit: R_MSP430_16 against symbol `pinMode' defined in .text.pinMode section in C:\Users\PMK\AppData\Local\Temp\arduino_build_374378/core\core.a(wiring_digital.c.o)

trf7970.cpp:(.text._ZN7trf7970C2Ehhhhhh+0x3a): relocation truncated to fit: R_MSP430_16 against symbol `pinMode' defined in .text.pinMode section in C:\Users\PMK\AppData\Local\Temp\arduino_build_374378/core\core.a(wiring_digital.c.o)

trf7970.cpp:(.text._ZN7trf7970C2Ehhhhhh+0x42): relocation truncated to fit: R_MSP430_16 against symbol `pinMode' defined in .text.pinMode section in C:\Users\PMK\AppData\Local\Temp\arduino_build_374378/core\core.a(wiring_digital.c.o)

trf7970.cpp:(.text._ZN7trf7970C2Ehhhhhh+0x52): relocation truncated to fit: R_MSP430_16 against symbol `pinMode' defined in .text.pinMode section in C:\Users\PMK\AppData\Local\Temp\arduino_build_374378/core\core.a(wiring_digital.c.o)

trf7970.cpp:(.text._ZN7trf7970C2Ehhhhhh+0x5c): relocation truncated to fit: R_MSP430_16 against symbol `pinMode' defined in .text.pinMode section in C:\Users\PMK\AppData\Local\Temp\arduino_build_374378/core\core.a(wiring_digital.c.o)

trf7970.cpp:(.text._ZN7trf7970C2Ehhhhhh+0x66): additional relocation overflows omitted from the output

collect2: ld returned 1 exit status

exit status 1
Error compiling for board MSP-EXP430G2ET w/ MSP430G2553.

 


I have attached the source code and the header files too, it would be very helpful if anyone could help me find a solution for this error.The header file trf7970.h is also attached from the folder utility.

Thank you

Best Regards

Nick

keywords.txt

TRF7970ABPDemo.ino

trf7970BoosterPackEnergia.cpp

trf7970BoosterPackEnergia.h

trf7970.cpp

trf7970.h

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×