Interface and Connectivity ICs
MEMS and Sensors
Analog and Audio
EMI Filtering and Signal Conditioning
Power Management and Motor Control
SPC5 Automotive MCUs
ST25 NFC/RFID Tags and Readers
Switches and Multiplexers
STM32 MCUs Community
MEMS and Sensors Community
Automotive MCUs Community
STM8 MCUs Community
Help the community
Share your activities
Contribute your knowledge
About this community
to create and rate content, and to follow, bookmark, and share content with other members.
Question asked by
on Aug 31, 2006
on Aug 30, 2006 by 8578
Show 0 Likes
No one else has this question
Mark as assumed answered
This content has been marked as final.
Show 1 comment
(Required, will not be published)
Aug 30, 2006 2:04 PM
Is anyone else having problems unprotecting flash?
I am using the Keil MCBSTR7 Evaluation board and am having the following problem:
If I add the following code at the start of the main function the only way I can get the chip to boot is to start it using the ULINK JATAG debugger.
I have narrowed it down to the register write that starts the flash controller, writing a one to
Bit 31 of the Flash Controller Register “DR0”. If I reset the board without the JATAG debugger running and then break into the system using the debugger the Undefined_Handler() function is constantly being called and the processor Mode is “Undefined”.
This problem also occurs on an OUMEX development board, so it is not a board problem.
// Initialize the FLASH
FLASH_Init () ;
/* Set the Set protection Bit */
pFLASHR->CR0 |= FLASH_SPR_Mask;
/* Set the Register Address */
pFLASHR->AR = 0x4010DFB0;
/* Data to be programmed to the Protection Register */
pFLASHR->DR0 = FLASHPR->NVWPAR|FLASH_B1F1;
/* Set the WMS bit to Start the Sequence */
pFLASHR->CR0; |= FLASH_WMS_Mask
Show 0 Likes
Retrieving data ...
2018 STM32 Wish List
stm32 with Cubemx Adafruit FRAM MB85RC256V I2c
CubeMX SDIO DMA FatFS configuration
Please provide a way to download older version of the cube.
Efficiently use DMA with UART RX on STM32