Difference between revisions of "Component: FLASH (CAL) (Misc)"
From Flowcode Help
Jump to navigationJump to search| Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_temp/FLASH.fcfx FC_Comp_Source_temp/FLASH.fcfx] |
| − | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_temp/FLASH.fcfx FC_Comp_Source_temp/FLASH.fcfx] |
==Detailed description== | ==Detailed description== | ||
| Line 57: | Line 57: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
| Line 65: | Line 67: | ||
==Macro reference== | ==Macro reference== | ||
| − | === | + | ===EraseAll=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EraseAll''' |
|- | |- | ||
| − | | colspan="2" | | + | | colspan="2" | Erase all flash memory locations on the device. |
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL |
| − | | width="90%" | | + | | width="90%" | Aux |
|- | |- | ||
| − | | colspan="2" | | + | | colspan="2" | 0=Primary Flash, 1=Aux Flash if available |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| Line 156: | Line 153: | ||
| − | === | + | ===WriteInstructionRow=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteInstructionRow''' |
| + | |- | ||
| + | | colspan="2" | Writes a complete row of instructions to the device memory. Takes the values from the data array. | ||
| + | |- | ||
|- | |- | ||
| − | | | + | | width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG |
| + | | width="90%" | Address | ||
|- | |- | ||
| + | | colspan="2" | | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG |
| − | | width="90%" | | + | | width="90%" | Data |
|- | |- | ||
| − | | colspan="2" | | + | | colspan="2" | |
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
Revision as of 12:00, 3 February 2023
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Misc |
Contents
FLASH (CAL) component
CAL - Code Abstraction Layer A low level implementation giving direct access to Flash read and write routines.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_temp/FLASH.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/FLASH.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
EraseAll
| EraseAll | |
| Erase all flash memory locations on the device. | |
| Aux | |
| 0=Primary Flash, 1=Aux Flash if available | |
| Return | |
ErasePage
| ErasePage | |
| Erase the minimum amount of flash (usually a page) at the selected address. | |
| Address | |
| Start address of page | |
| Return | |
ReadInstruction
| ReadInstruction | |
| Reads a single instruction from the device memory. Loads the result into the Data array. | |
| Address | |
| Start address of page | |
| Data | |
| Return | |
WriteInstruction
| WriteInstruction | |
| Writes a the minimum number of instructions to the device memory. Takes the values from the data array. | |
| Address | |
| Data | |
| Return | |
WriteInstructionRow
| WriteInstructionRow | |
| Writes a complete row of instructions to the device memory. Takes the values from the data array. | |
| Address | |
| Data | |
| Return | |