Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All data coming to and from the target device is saved in temporary buffers located inside each API-DLL instance. In summary, these buffers are the Code Data Buffer, Write Data Buffer, and Read Data Buffer shown below:

Anchor
FlashPro-ARMM-buffers
FlashPro-ARMM-buffers

...

Anchor
GangPro-ARMM-buffers
GangPro-ARMM-buffers

...

During normal programming using Encapsulated Functions, such as F_AutoProgram, the Code Data Buffer is used to program the target device.

...

  • For custom modifications the Write Buffer can be used to write to the target device(s) without disturbing the Code Data Buffer. To modify the Write Buffer, use the function F_Put_Byte_to_Buffer. When using FlashPro-ARMM, the one target will be modified, when using GangPro-ARMM, all six targets will be written with the same data. Sequential Functions, such as F_Copy_Buffer_to_Flash can be used to write this buffer to target(s).

  • Additionally the GangPro-ARM M library also has six Gang Write Buffers, where different custom data can be written to each of the six targets per adapter using the function F_Put_Byte_to_Gang_Buffer. Each target can be provided different data for the same address, i.e. calibration or serialization data. Use Sequential Functions, such as F_Copy_Gang_Buffer_to_Flash to write these buffers to targets.

Custom Reads:

  • FlashPro-ARMM: The Read Data Buffer is used for reading from the target device by the F_Copy_Flash_to_Buffer and F_Memory_Read functions, the contents of which can be accessed using F_Get_Byte_from_Buffer.

  • GangPro-ARMM: Six Gang Read Buffers are used for reading from up to six target devices by the F_Copy_Flash_to_Gang_Buffer and F_Memory_Read functions, the contents of which can be accessed using F_Get_Byte_from_Gang_Buffer.

...

Same as https://elprotronic.atlassian.net/wiki/spaces/FPGPARMFPGPM/pages/5770479896734824/Data+Buffer+Functions#F_ReadCodeFIle but designed for *.bin files. Function will add baseAddr to code address. Can also be used to shift regular code files by a fixed amount.

...

If overlapping code data is detected the function will return FALSE, unless existing code data locations contain the default empty value (for most MCUs it is 0xFF, for some it is 0x00) and the “OverwriteEmptyValues”, https://elprotronic.atlassian.net/wiki/spaces/FPGPARMFPGPM/pages/5780285796734622/General+Configuration#OverwriteEmptyValues, option is enabled in the configuration. By default, no overwrites are allowed.

...

Same as https://elprotronic.atlassian.net/wiki/spaces/FPGPARMFPGPM/pages/5770479896734824/Data+Buffer+Functions#F_AppendCodeFIle but designed for *.bin files. Function will add baseAddr to code address. Can also be used to shift regular code files by a fixed amount.

...

Read code from selected buffer and calculate check sum. This function has some exclusive GangPro-ARM M return values.

Syntax

Code Block
languagecpp
INT_X F_Get_CodeCS( INT_X dest )

...

  • 1 : Checksum of code from internal Code Buffer

  • 2 : Checksum of code used in last F_AutoProgram or F_Memory_Write operation.

  • 3 : Checksum of target 1 memory read after last F_AutoProgram or F_Memory_Verify operation.

  • 0x10 : Checksum of last used code (same as 2)

  • 0x11: Checksum of target 1 memory (same as 3)

  • 0x12: Checksum of target 2 memory (GangPro-ARM M only)

  • 0x13: Checksum of target 3 memory (GangPro-ARM M only)

  • 0x14: Checksum of target 4 memory (GangPro-ARM M only)

  • 0x15: Checksum of target 5 memory (GangPro-ARM M only)

  • 0x16: Checksum of target 6 memory (GangPro-ARM M only)

Select FPA to perform operation on using Multi API-DLL Functions | F_Set_FPA_index, index 1 to 64. Use index 0 to perform operation on all FPAs (if results differ, use Multi API-DLL Functions | F_LastStatus to get individual results).

...

Write to internal code buffer. Can be used instead of or in conjunction with the https://elprotronic.atlassian.net/wiki/spaces/FPGPARMFPGPM/pages/5770479896734824/Data+Buffer+Functions#F_ReadCodeFIle function to modify an existing code buffer before running F_AutoProgram. When starting from scratch, use the F_Clr_Code_Buffer function to clear the internal code buffer.

...

Read from internal code buffer. Can be used in conjunction with https://elprotronic.atlassian.net/wiki/spaces/FPGPARMFPGPM/pages/5770479896734824/Data+Buffer+Functions#F_Put_Byte_to_Code_Buffer to verify writes to internal code buffer.

...

Write byte to Write Buffer from FlashPro-ARM M buffer Data Buffer Functions | FlashPro-ARMM-buffers and GangPro-ARM M buffer Data Buffer Functions | GangPro-ARMM-buffers.

Syntax

Code Block
languagecpp
INT_X  F_Put_Byte_to_Buffer( INT_X  addr, BYTE data );	

...

Insert excerpt
Custom Buffer Write and Verify - FlashPro-M
Custom Buffer Write and Verify - FlashPro-M

10. F_Get_Byte_from_Buffer (FlashPro-

...

M only)

General Description

Read from Read Data Buffer from FlashPro-ARM bufferhttps://elprotronic.atlassian.net/wiki/spaces/FPGPARM/pages/57704798/Data+Buffer+Functions#FlashPro-ARM-M bufferData Buffer Functions | FlashPro M buffers

Syntax

Code Block
languagecpp
INT_X  F_Get_Byte_from_Buffer( INT_X addr );

...

11. F_Put_Byte_to_Gang_Buffer (GangPro-

...

M only)
Anchor
F_Put_Byte_to_Gang_Buffer
F_Put_Byte_to_Gang_Buffer

General Description

Write byte to Gang Write Buffer from GangPro-ARM buffer https://elprotronic.atlassian.net/wiki/spaces/FPGPARM/pages/57704798/Data+Buffer+Functions#GangPro-ARM-M buffer Data Buffer Functions | GangPro M buffers. This function will set one byte of data in a dedicated buffer for specified Gang target MCU (1 to 6). Use in combination with F_Copy_Gang_Buffer_to_Flash to actually write data to targets.

...

Insert excerpt
Custom Buffer Write and Verify - GangPro-M
Custom Buffer Write and Verify - GangPro-M

12. F_Get_Byte_from_Gang_Buffer (GangPro-

...

M only)

General Description

Read byte from Gang Read Buffer from GangPro-ARM bufferhttps://elprotronic.atlassian.net/wiki/spaces/FPGPARM/pages/57704798/Data+Buffer+Functions#GangPro-ARM-M bufferData Buffer Functions | GangPro M buffers. This function will read one byte of data from a dedicated buffer for specified Gang target MCU (1 to 6). Use in combination with F_Copy_Flash_to_Gang_Buffer.

...