MK82FN256xxx15_qspi_alias example linker error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MK82FN256xxx15_qspi_alias example linker error

154 次查看
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 项奖励
回复
1 回复

141 次查看
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 项奖励
回复