Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PM0222 Datasheet(PDF) 18 Page - STMicroelectronics

Part # PM0222
Description  Brain smart hub family
PDF  33 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0222 Datasheet(HTML) 18 Page - STMicroelectronics

Back Button PM0222 Datasheet HTML 14Page - STMicroelectronics PM0222 Datasheet HTML 15Page - STMicroelectronics PM0222 Datasheet HTML 16Page - STMicroelectronics PM0222 Datasheet HTML 17Page - STMicroelectronics PM0222 Datasheet HTML 18Page - STMicroelectronics PM0222 Datasheet HTML 19Page - STMicroelectronics PM0222 Datasheet HTML 20Page - STMicroelectronics PM0222 Datasheet HTML 21Page - STMicroelectronics PM0222 Datasheet HTML 22Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 18 / 33 page
background image
Flash controller
PM0222
18/33
DocID025476 Rev 1
MASSWRITE sequence:
–
Write the unique value to program in all the main Flash memory in the Flash
Controller DATA register.
–
Write the MASSWRITE command (0x44) in the Flash Controller COMMAND
register.
–
Wait for the CMDSTART flag in the IRQSTAT register (polling mode or interrupt
mode) indicating that the command has been taken into account and is under
execution.
–
Clear the CMDSTART flag by writing CMDSTART to ‘1’ in the Flash Controller
IRQSTAT register.
–
Wait for the CMDDONE flag in the IRQSTAT register (polling mode or interrupt
mode), indicating that the command is completed.
–
Clear the CMDDONE flag by writing CMDDONE to ‘1’ in the Flash Controller
IRQSTAT register.
6.3
Locked / Unlocked feature
Flash memory is protected from a read when the device is in debug mode. This means as
soon as Cortex-M0 is halted, any access to Flash memory will return a fixed 0x0 value and
generate an AHB error if the debugger tries to read it.
Note that RAM bank0 and RAM bank1 memories are also concerned by this lock protection.
To unlock the Flash and RAM memories and render them readable through JTAG, it is
necessary to fill UNLOCKM and UNLOCKL with the 64-bit unlock code. This code
corresponds to the two last words inside the main Flash so the condition to unlock them is:
UNLOCKM[31:0] = value at address 0x1001_FFF8 (if REMAP = ‘0’ else 0x1002_FFF8)
UNLOCKL[31:0] = value at address 0x1001_FFFC (if REMAP = ‘0’ else 0x1002_FFFC)
The 64-bit code in Flash (the two last words inside the memory) is latched automatically
before the Cortex-M0 reset is released.
The default value in the UNLOCKM and UNLOCKL registers is 0xFFFF_FFFF
corresponding to unwritten or erased Flash. As soon as the customer modifies the two last
words inside Flash memory, he will need to program the UNLOCKM and UNLOCKL
registers to be able to access Flash and RAM in debug mode.
This UNLOCKM / UNLOCKL register programming can be done through JTAG at the
beginning of the debugging session.
Caution:
The UNLOCKM and UNLOCKL registers of the Flash Controller can be written only once
after reset. Any further write will not be taken into account.
Note:
This lock protection has no impact for Flash / RAM read by Cortex-M0 in a non-test mode. It
concerns only debug mode.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com