Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - noelia

Pages: [1]
1
ARM Cortex / Enabling CRP (working with IAR)
« on: February 03, 2012, 06:24:31 am »
I am working with LPC1764 and IAR compiler. I am trying to enable CRP in my code but I can't. Flash Magic always say to me "CRP is disabled" (I tried with two different boards and always test it through a power cycle).

I tried two options:
1) Writing this code in main, but it doesn't work because is for KEIL

Code: [Select]
const unsigned long crp __attribute__ ((at(0x2FC))) = 0x87654321;
2) Adding this to startup_LPC17xx.s after Default interrupt handlers and before END. I attached the file.

Code: [Select]
SECTION .crp:CODE:ROOT(2)
DATA
DCD 0x87654321

Flash Magic works perfectly, I can read memory, erase, program, etc. But I can't protect my board.
I read the UM10360 and AN10851.
What am I doing wrong?

Pages: [1]