Versions Compared

Key

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

...

DLL Function

Descritpion

Config File related values

Flashloader related command (sdphost/blhost)

F_AutoProgram()

The autoprogram executes a sequence of commands:

  1. F_Connect()

  2. F_Load_Flasloader()

  3. F_MemoryConfig()

  4. F_Erase()

  5. F_Write()

  6. F_Verify()

All values associated with the commands contained in Autoprogram

sdphost.exe -u MCU_VID,MCU_PID -- write-file Flashloader_Load_Address Flashloader_FileName
sdphost.exe -u MCU_VID,MCU_PID -- jump-address Flashloader_Jump_Address
blhost.exe -u -- fill-memory Memory_Configuration_Address 0x4 Memory_Configuration_Word1
blhost.exe -u -- configure-memory Memory_ID Memory_Configuration_Address

F_Connect()

Checking the connection to the target device with detection if the flashloader is already loaded.

MCU_VID, MCU_PID
Flashloader_VID, Flashloader_PID

F_Load_Flashloader()

Sequence of loading and running the flashloader.

MCU_VID, MCU_PID
Flashloader_FileName
Flashloader_Load_Address
Flashloader_Jump_Address

sdphost.exe -u MCU_VID,MCU_PID -- write-file Flashloader_Load_Address Flashloader_FileName

sdphost.exe -u MCU_VID,MCU_PID -- jump-address Flashloader_Jump_Address

F_MemoryConfig()

External memory configuration sequence. Uses two commands: loading configuration word and running configure memory.

Memory_Configuration_Address
Memory_Configuration_Word1
Memory_Configuration_Word2
Memory_ID

blhost.exe -u -- fill-memory Memory_Configuration_Address 0x4 Memory_Configuration_Word1

blhost.exe -u -- configure-memory Memory_ID Memory_Configuration_Address

F_Write()

Image file programming command depending on file type.

Image_FileName,

write-memory if file extension Extension of Image_FileName is .bin or .srec

Extension of Image_FileName is .sb:
blhost.exe -u Flashloader_VID,Flashloader_PID receive-sb-file if file extension of Image_FileName is .sb

F_Verify()

Comparison of data from file with data from programmed memory.

F_Read()

Reading data from memory.

F_OTP_Write()

Writing data from a file to OTP memory

F_OTP_Verify()

Comparison of file data with OTP memory

F_OTP_Read()

Reading data from OTP memory

F_OTP_Lock()

F_Erase()

Deleting the memory content

EraseAll,
Memory_ID

flash-erase-region if EraseAll = 0:

flash-erase-all if EraseAll = 1:
blhost.exe -u Flashloader_VID,Flashloader_PID -- flash-erase-all Memory_ID

F_GetProperty()

Property_Tag

blhost.exe -u Flashloader_VID,Flashloader_PID -- get-property Property_Tag

F_SetProperty()

Property_Tag
Property_Value