How to configure and program the security LPC804 MCU chip? Is it only through ISP mode?

Publisher:创新思绪Latest update time:2023-09-01 Source: elecfans Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

LPC804 MCU has CRP (Code Read Protection) function.

The CRP is located at address 0x0000 02FC, and there are different security levels NO_ISP/CRP1/CRP2/CRP3.

82dafbbc-a730-11ed-bfe3-dac502259ad0.png

How to program security configuration? Is it only through ISP mode?

82f6f9de-a730-11ed-bfe3-dac502259ad0.png

It can also be configured in the project project, as shown below in the MCUXpresso IDE, to enable CRP:

8349821c-a730-11ed-bfe3-dac502259ad0.png

836eeda4-a730-11ed-bfe3-dac502259ad0.png

Configure CRP in the MCUXpresso project.

• Define appropriate CRP values ​​for settings

• Use a custom script to configure the linker to place this constant at the CRP memory address (0x2FC), below defining the constant assigned to its desired CRP level. The attribute directive ensures that the linker places the constant (CRP_WORD) in a special ".crp" section of memory, the reference code is below.

#define CRP_NO_CRP 0xFFFFFFFF

#define CRP_NO_ISP_MAGIC 0x4E697370

#define CRP1_MAGIC 0x12345678

#define CRP2_MAGIC 0x87654321

/**Note: When setting CRP3, the read and write of the device will be locked**/

/*** #define CRP3_MAGIC 0x43218765 ***/

#define CURRENT_CRP_SETTING CRP_NO_CRP

__attribute__ ((section(".crp"))) const uint32_t CRP_WORD = CURRENT_CRP_SETTING;


Reference address:How to configure and program the security LPC804 MCU chip? Is it only through ISP mode?

Previous article:Car driving recorder based on LPC2104
Next article:Design of intelligent communication card system using LPC2294 four-way CAN controller

Recommended posts

Please recommend books on switching power supply
Arethereanygoodbooksrecommendedforlearningswitchingpowersupplydesign? Therearequiteafewinthisforum,youcansearchinthedownloadcenter. 1.PulsewidthModulatedDC-to-DCPowerConversion(OriginalEnglishEdition)Itsold
JCF184 Switching Power Supply Study Group
Driving WS2812 RGB LCD on AvaotaA1 Allwinner T527 Development Board
InthedevelopmentboardofAvaotaSBC,thereareusuallyseveralWS2812RGBLEDlights.Forexample,thefollowinglocationofAvaotaA1:!(https://docs.avaota.fun/assets/images/image-20240531204921506-2afc83e6c2f78315dbb02eb0d414cd9d.png)ForAvao
aleksib Domestic Chip Exchange
ASM1117 SOT-323 heat sink problem?
WhatnetworkshouldtheheatsinkpinoftheSOT-323packageofASM1117beconnectedto?Inthepast,itwasnotconnectedtothenetwork.However,hasanyoneconnectedtheoutputVCC3.3Vcircuitanditworks?Pleasegivemesomeadvice! AltiumDes
bigbat Power technology
NXP Technology Days Seminar Tour Invites You to Sign Up!
NXPTechnologyDaysSeminarfocusesoncutting-edgeenablingtechnologies,coveringpopularapplicationssuchasautomotiveelectronicarchitecture,ADAS,automotiveelectrification,in-vehicleinfotainmentsystems,UWBultra-wideband,smartindust
eric_wang Automotive Electronics
C2000 LaunchPad External Interrupt Toggle LED
Programfunction:ConfigureGPIO12asinterruptinput.Whenthebuttonispressed,afallingedgeinterruptistriggered,andtheinterruptservicesubroutineflipstheLED. Interruptvectortable Mainfunction,main.c /*Includes---------
灞波儿奔 Microcontroller MCU
Influence of MOS tube substrate-source voltage on UGS(th)
Undergraduatestudent,justlearninganalogcircuits Thetextbook(TsinghuaUniversityPress,TongShibaisixtheditionp44)saysthatthePNjunctionconductionofthesubstratesourcewillcauseUGS(th)toincrease.Idon'tunderstandthis,so
冰风F Analog electronics
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号