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.
How to program security configuration? Is it only through ISP mode?
It can also be configured in the project project, as shown below in the MCUXpresso IDE, to enable CRP:
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;
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
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- 【2022 Digi-Key Innovation Design Competition-Smart Study Room Based on Raspberry Pi
- How to Get Rid of Electromagnetic Interference in the Process of Single Chip Microcomputer Design
- 【NXP Rapid IoT Review】+ Trial Computer Programming & Mobile Phone Control
- TMS320C6747 Fixed-point/Floating-point Digital Signal Processor
- Chip Manufacturing 7-Chip Manufacturing
- FPGA water lamp design vhdl source program
- Application Tips/Low Power Design in 80C51 Portable Products
- Analog Electronics Basic Circuit Collection 35/90
- The PWM wave output of TL494 in the boost circuit is abnormal. Please help me
- About the problem of AGND and DGND of microcontroller