NOTICE: This website will be shut down in the near future. Product content has moved to Forum content and FAQs have been moved to We encourage you to create a user account on to use the new community forums and access NXP microcontroller content. We greatly appreciate your contributions and look forward to seeing you at our new web location.


Problems compiling "__attribute__((at"

lpcxpresso-support's picture

Some other toolchains provide a compiler extension __attribute__((at(addr))) which acts as a request that the variable that it is applied to is placed at location addr. For example:

static HostController _controller __attribute__((at(USB_RAM_BASE)));

The GNU toolchain as used by the LPCXpresso IDE provides no direct equivalent of this 'at' attribute.

Often the 'at' attribute is being used to simply place a buffer variable into a specific bank of RAM. This will often be possible just using the section macros provided in the header cr_section_macros.h.

For more information, please see the FAQ "Placing data at an address".

Your rating: None