Error 9521E: File IO error when determining the current toolkit

This error occurs when the OS cannot read the current toolkit configuration.

Check that the ARM_TOOL_VARIANT environment variable is set correctly, and that the entire toolchain installation tree has read permissions.

See the article on toolkit configuration for more information on setting the ARM_TOOL_VARIANT environment variable.