Difference between revisions of "HANcoder/STM32/Blocks/Save EEPROM"

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
right before power off.
 
right before power off.
  
'''Trigger Port'''
+
|blockImage = SaveEEPROMBlock.png
  
Connect the port to a trigger source to execute the block only when necessary.
+
|maskImage = SaveEEPROMMask.png
  
|blockImage = SaveEEPROMBlock.png
+
|SeeAlso = [[HANcoder/Erase_EEPROM|Erase EEPROM]] {{!}} [[HANcoder/Write_to_EEPROM|Write to EEPROM]] {{!}} [[HANcoder/Read_from_EEPROM|Read from EEPROM]]
 +
 
 +
}}
  
|maskImage = SaveEEPROMMask.png
+
== Block inputs (inports) ==
 +
Trigger input: When this signal changes from 0 to 1 the block is executed and the EEPROM is saved.<br/>
  
|SeeAlso = [[HANcoder/Erase_EEPROM|Erase EEPROM]], [[HANcoder/Write_to_EEPROM|Write to EEPROM]], [[HANcoder/Read_from_EEPROM|Read from EEPROM]]
+
== Examples ==
 +
[[HANcoder/Examples/Using_EEPROM| Using EEPROM]]
  
 +
{{HANcoder/BlockFooter|
 +
|SeeAlso = [[HANcoder/STM32/Blocks/Read_from_EEPROM|Read from EEPROM]] {{!}} [[HANcoder/STM32/Blocks/Write_to_EEPROM|Write to EEPROM]] {{!}} [[HANcoder/STM32/Blocks/Erase_EEPROM|Erase EEPROM]]
 
}}
 
}}

Latest revision as of 10:21, 5 May 2017

Supported Targets: Olimexino, E407, P405

General information about Save EEPROM

The STM32 controller does not have dedicated EEPROM on-chip. All EEPROM write, read and erase operations are therefore performed in a RAM buffer. To make sure RAM buffer contents are still valid after a power-off, its contents needs to be save in flash EEPROM, which is achieved with this block. This is typically called during the software shutdown sequence, right before power off.

Block

SaveEEPROMBlock.png

Mask

SaveEEPROMMask.png

Block inputs (inports)

Trigger input: When this signal changes from 0 to 1 the block is executed and the EEPROM is saved.

Examples

Using EEPROM

See Also

Read from EEPROM | Write to EEPROM | Erase EEPROM