Skip to content

Commit 9a15de9

Browse files
committed
IAR CRP support.
1 parent c15d0c9 commit 9a15de9

File tree

1 file changed

+5
-1
lines changed
  • targets/TARGET_NXP/TARGET_LPC176X/device

1 file changed

+5
-1
lines changed

targets/TARGET_NXP/TARGET_LPC176X/device/CRP.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
* limitations under the License.
1515
*/
1616
#if !defined(BOOTLOADER_ADDR) // do not include CRP if there is a bootloader.
17-
long CRP_Key __attribute__((section(".ARM.__at_0x000002FC "))) = 0xFFFFFFFF;
17+
#if defined (__ICCARM__)
18+
const long CRP_Key @0x000002FC = 0xFFFFFFFF;
19+
#else
20+
const long CRP_Key __attribute__((section(".ARM.__at_0x000002FC "))) = 0xFFFFFFFF;
21+
#endif
1822
#endif

0 commit comments

Comments
 (0)