MK82FN256xxx15_qspi_alias example linker error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MK82FN256xxx15_qspi_alias example linker error

244 Views
opetrone
Contributor I

When compiling the frdmk82f_hello_world_qspi_alias sample project with MCUXpresso IDE v11.9.1_2170, the linker returns the following error:

MK82FN256xxx15_qspi_alias_mcux.ld:103: syntax error.

The "MK82FN256xxx15_qspi_alias_mcux.ld" file is attached. (Zip Compressed)

How can I fix the problem at linker file line 103?

/*
* for exception handling/unwind - some Newlib functions (in common
* with C++ and STDC++) use this.
*/
.= ORIGIN(m_flash);  /*  ---> line 103 <--- */
.ARM.extab : ALIGN(4)
{
*(.ARM.extab* .gnu.linkonce.armextab.*)
} > m_flash

0 Kudos
Reply
1 Reply

231 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @opetrone ,

Thanks for your post.

This is a syntax error, please modify the 103 line from:

.= ORIGIN(m_flash);

to

. = ORIGIN(m_flash);

There's a missing space here. 

 

Then you will find it can build successfully:

Celeste_Liu_0-1754482989907.png

Hope it can help you.

BRs,

Celeste

 

--------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
--------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2147456%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMK82FN256xxx15_qspi_alias%20example%20linker%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2147456%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EWhen%20compiling%20the%20frdmk82f_hello_world_qspi_alias%20sample%20project%20with%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EMCUXpresso%20IDE%20v11.9.1_2170%3C%2FSTRONG%3E%2C%20the%20linker%20returns%20the%20following%20error%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22%22%3EMK82FN256xxx15_qspi_alias_mcux.ld%3A103%3A%20syntax%20error.%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EThe%20%22MK82FN256xxx15_qspi_alias_mcux.ld%22%20file%20is%20attached.%20(Zip%20Compressed)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EHow%20can%20I%20fix%20the%20problem%20at%20linker%20file%20line%20103%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%2F*%3CBR%20%2F%3E*%20for%20exception%20handling%2Funwind%20-%20some%20Newlib%20functions%20(in%20common%3CBR%20%2F%3E*%20with%20C%2B%2B%20and%20STDC%2B%2B)%20use%20this.%3CBR%20%2F%3E*%2F%3CBR%20%2F%3E.%3D%20ORIGIN(m_flash)%3B%26nbsp%3B%20%2F*%26nbsp%3B%20---%26gt%3B%20line%20103%20%26lt%3B---%20*%2F%3CBR%20%2F%3E.ARM.extab%20%3A%20ALIGN(4)%3CBR%20%2F%3E%7B%3CBR%20%2F%3E*(.ARM.extab*%20.gnu.linkonce.armextab.*)%3CBR%20%2F%3E%7D%20%26gt%3B%20m_flash%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2147646%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MK82FN256xxx15_qspi_alias%20example%20linker%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2147646%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252722%22%20target%3D%22_blank%22%3E%40opetrone%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20post.%3C%2FP%3E%0A%3CP%3EThis%20is%20a%20syntax%20error%2C%20please%20modify%20the%20103%20line%20from%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E.%3D%20ORIGIN(m_flash)%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Eto%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E.%20%3D%20ORIGIN(m_flash)%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThere's%20a%20missing%20space%20here.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3EThen%20you%20will%20find%20it%20can%20build%20successfully%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Celeste_Liu_0-1754482989907.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Celeste_Liu_0-1754482989907.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F351188i03ECDF0D0830431F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Celeste_Liu_0-1754482989907.png%22%20alt%3D%22Celeste_Liu_0-1754482989907.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHope%20it%20can%20help%20you.%3C%2FP%3E%0A%3CP%3EBRs%2C%3C%2FP%3E%0A%3CP%3ECeleste%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E--------------------------------------------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22ACCEPT%20AS%20SOLUTION%22%20button.%20Thank%20you!%3CBR%20%2F%3E--------------------------------------------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E