7492 - Programmer: ERROR - Failed to write algorithm file

7492 - Programmer: ERROR - Failed to write algorithm file

Description:
When trying to program a Lattice FPGA device using Radiant Programmer, below error might occur if user account permission is not properly configured on the machine:

ERROR - Failed to write algorithm file

Solution:
A. For Windows

1. Make sure that the current user has permission on Windows TEMP folder ( C:\Users\<username>\AppData\Local\Temp)
2. This issue may also exist if the username of the user is on other characters other than the English Alphabet. Try to change the username using English characters.

B. For Linux

1. Make sure that the user trying to program the board has WRITE permission on the /tmp folder
2. If #1 does not resolve the issue, try removing/deleting all existing files in the /tmp directory that has the *.svp file extension after performing step#1.
3. If above steps did not help, try to run programmer with SUDO permissions to bypass all permission issues.