Keil Logo

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 8, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.