Could you make sure that the connection is well set up in Preferences->Firmware Updater to be able to download the firmware correctly? Otherwise, could you manually generate the code from the ioc file?
The Connection is proper in firmware setup, even then the same dialog box pops in with i have attached below and this prevents to generate the code. Please provide the solution for this issue.