Keil Logo Arm Logo

CRP on LPC1768

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Zal zalak
Posted
7-Sep-2010 13:04 GMT
Toolset
ARM
New! CRP on LPC1768

Please help me on activating CRP for LPC1768 micro using keil uv4.

Regards
Zal

Read-Only
Author
Tamir Michael
Posted
7-Sep-2010 13:26 GMT
Toolset
ARM
New! RE: CRP on LPC1768

On a LPC24xx, you place this

                AREA    |.ARM.__at_0x01FC|, CODE, READONLY
CRP_Key         DCD     0x87654321
                                AREA     |.text|, CODE, READONLY

after the interrupt vector. I don't know your chip well just that the CRP codes are the same as many other peripherals etc. I believe this is the construct the compiler will accept for you too but I don't know exactly where to place it in the startup code.

Read-Only
Author
John Linq
Posted
8-Sep-2010 02:35 GMT
Toolset
ARM
New! RE: CRP on LPC1768
                IF      :LNOT::DEF:NO_CRP
                AREA    |.ARM.__at_0x02FC|, CODE, READONLY
CRP_Key         DCD     0xFFFFFFFF
                ENDIF

The above is copied from startup_LPC17xx.s (NXP's code.bundle.lpc17xx.keil).
So, I believe that, you can find the CRP_Key setting in the KEIL startup.s for LPC17xx.

Read-Only
Author
Tamir Michael
Posted
8-Sep-2010 07:15 GMT
Toolset
ARM
New! RE: CRP on LPC1768

John,

The OP was interested in ENABLING CRP. Your code snippet does not;

It should have been

CRP_Key         DCD     0x12345678

for CRP1,
or

CRP_Key         DCD     0x87654321

for CRP2
or

CRP_Key         DCD     0x43218765

for CRP3.

Read-Only
Author
John Linq
Posted
8-Sep-2010 07:35 GMT
Toolset
ARM
New! RE: CRP on LPC1768

Hi Tamir,

I remember that you have already start the real development on LPC17xx Cortex-M3. Do you use the new programming model? I mean the Software Driver Model.

lpc17xx.cmsis.driver.library.zip:

http://ics.nxp.com/support/documents/microcontrollers/zip/code.bundle.lpc17xx.keil.zip

More and more documentation need to be read, I am a little frustrated.

Read-Only
Author
Tamir Michael
Posted
8-Sep-2010 07:43 GMT
Toolset
ARM
New! RE: CRP on LPC1768

John,

I only wrote 2 small bootloader for this chip so I don't know it too well - still working with LPC2478. But once we start with the C model (we still did not start with B though...) - I will ! Thanks for the link.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

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.