ARM Technical Support Knowledge Articles

LINKER ERROR L6915E WITH ATMEL EXAMPLES

Applies to: RealView Linker

Answer


Information in this article applies to:


QUESTION

I have updated MDK-ARM to version V3.46 and now when I try to build the Atmel examples I get the linker error:

Error: L6915E: Library reports error: __use_no_semihosting_swi was requested, but _sys_open was referenced

Before the update the Atmel examples compile and link without erros. How can I solve the problem?

ANSWER

You need to add the following definitions to file retarget.c.

struct __FILE { int handle;} ;

FILE __stdout;
FILE __stdin;
FILE __stderr;

Once you added the definitions the linker error should go away.

SEE ALSO

ATTACHED FILES

Request the files attached to this knowledgebase article.

Article last edited on: 2012-09-11 06:56:25

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential