| Electronic Components Datasheet Search |
|
BLUENRG-2 Datasheet(PDF) 109 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
BLUENRG-2 Datasheet(HTML) 109 Page - STMicroelectronics |
|
109 / 190 page ![]() BlueNRG-2 Functional details DocID030675 Rev 2 109/190 Note: As a write can only program to ‘0’ on bits already set to ‘1’, it is necessary to erase the page and request that the bits be set to ‘1’ (instead of ‘0’) in order to re-write to ‘0’. WRITE sequence: 1. Indicate the location to write by filling the ADDRESS register with the targeted address (page, row and word number) 2. Write the value to program in the DATA register. 3. Write the WRITE command (0x33) in the COMMAND register. 4. 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. 5. Clear the CMDSTART flag by writing CMDSTART to ‘1’ in the IRQSTAT register. 6. Wait for the CMDDONE flag in the IRQSTAT register (polling mode or interrupt mode) indicating that the command is completed. 7. Clear the CMDDONE flag by writing CMDDONE to ‘1’ in the IRQSTAT register. BURSTWRITE sequence: 1. Indicate the location to write by filling the ADDRESS register with the targeted address of the first data to write (page, row and word number). DATA0 will be written and ADDRESS, DATA1 at ADDRESS+1 and so on. (Write the values to program in the DATA0-3 registers. To write less than four words, write 0xFFFFFFFF in the unused DATA1-3 registers.) 2. Write the BURSTWRITE command (0xCC) in the COMMAND register. 3. 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. 4. Clear the CMDSTART flag by writing CMDSTART to ‘1’ in the IRQSTAT register. 5. Wait for the CMDDONE flag in the IRQSTAT register (polling mode or interrupt mode) indicating that the command is completed. 6. Clear the CMDDONE flag by writing CMDD ONE to ‘1’ in the IRQSTAT register. MASSWRITE sequence: 1. Write the unique value to program in all the main Flash memory in the DATA register. 2. Write the MASSWRITE command (0x44) in the COMMAND register. 3. 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. 4. Clear the CMDSTART flag by writing CMDSTART to ‘1’ in the IRQSTAT register. 5. Wait for the CMDDONE flag in the IRQSTAT register (polling mode or interrupt mode), indicating that the command is completed. 6. Clear the CMDDONE flag by writing CMDDONE to ‘1’ in the IRQSTAT register. 3.11.2.4 Flash readout protection It is possible to protect flash memory from unwanted access while in debug mode, this is normally used to avoid copy or reverse engineering of a deployed application in the market. If the readout protection mechanism is activated, as soon as Cortex-M0 is halted, any access to Flash memory will return a fixed 0x0 value and generate an AHB error if a debugger tries to read it. Note that RAM memory debug accesses are also disabled by this lock protection. Enabling Readout protection: 1. Program a secret 64 bit sequence in the last two word address of the user flash. The secret 64 bit sequence can be anything different from 0xFFFFFFFF, 0xFFFFFFFF. |
|
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 |
| 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 |