Technical Support

BL51: GENERATING USER EXCEPTIONS FOR XDATA


Information in this article applies to:

  • C51 Version 5.50

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;

Last Reviewed: Tuesday, June 08, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure