ARM Technical Support Knowledge Articles

GENERATING USER EXCEPTIONS FOR XDATA

Applies to: BL51 Code-banking Linker/Locator

Answer


Information in this article applies to:


QUESTION

Is it possible to configure the BL51 Code Banking Linker so that if I go beyond 01FFH in XDATA memory, an error or exception is generated to warn me?

ANSWER

No, this is not possible in the BL51 linker. However, you can fill the XDATA memory from 0200H to FFFFH using an array. If you then reach 01FFH and therefore run out of XDATA memory, the linker will generate an address space overflow error.

The following will work:

static const xdata dummy_array[0xFDFF] _at_ 0x200;

Article last edited on: 2004-06-08 15:14:54

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