News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Main Menu

ESD (4.14.0) - Emulator Executable (Flash files)

Started by Darren, January 28, 2022, 03:46:55 PM

Previous topic - Next topic

Darren

Hello Community,

When attempting to launch an Emulator executable generated from a project that uses assets stored in EVE connected Flash a prompt is presented 'Select flash file (or press ENTER to use no flash):' Entering the binary or map file name results in a 'Failed to load flash library' message been displayed as per attached screenshot.

Q) Is there any specific requirements when entering Flash file name when using a generated Emulator executable or a method to output more detail as to why the load failed?

Your experience and knowledge is greatly appreciated.
Many Thanks

Darren

Hello Community,

Retested on latest 4.15.0 with the same outcome, has anybody successfully been able to use Emulator executable with Flash binary?

Kind Regards
Darren

BRT Community

Hi Darren,

We could reproduce the issue and are currently checking on the solution and we'll post an update here soon,

Best Regards, BRT Community

Darren

Hello,

Many thanks for your assistance, looking forward to a solution.

Kind Regards
Darren

BRT Community

Hi Darren,

One thing to check is that it looks like you may have the FT812 selected and only devices from BT81x onwards have the Flash feature. Therefore please ensure to select BT815/6/7/8 to use Flash.

Also, ensure that your flash file is in the same directory as the exe (looks like you have this in your screenshot already) and you can then just type WindowLayout__Flash.bin when it asks for the flash file.

If you see issues where it still gives an error, copy the following dll file and paste into the same directory as your exe and your flash bin file (assuming default installation). Then re-run your exe and it should accept your flash name when you type it in.
Public\Documents\EVE Screen Designer\Libraries\FT_Eve_Hal\Bin\Simulation\mx25lemu.dll

Hope it helps,

Best Regards, BRT Community

Darren

Hello,

Apologies my original picture was using an included demo hence the FT812, my project uses BT816 ...\Build\VM816CU50A\Emulator_x64_Release\Bin

Including the additonal dll as found at C:\Users\Public\Documents\EVE Screen Designer\Libraries\FT_Eve_Hal\Bin\Simulation\x64 has allowed use of the produced flash package and resolved my original issue.
Would this be something best included automatically when compiling an emulator executable when a Flash package is present?

Additonally does the currently produced emulator executable accept command line arguments to allow passing the Flash package name and if so please would it be possible to share the syntax required?

Many thanks for your assitance.
Darren

Darren

Hello Community,

Does the currently produced emulator executable accept command line arguments to allow passing the Flash package name and if so please would it be possible to share the syntax required?


Kind Regards
Darren

Kaetemi

The error Failed to load flash library means that mx25lemu.dll is missing.

Kaetemi

Quote from: Darren on March 16, 2022, 08:41:47 AM
Does the currently produced emulator executable accept command line arguments to allow passing the Flash package name and if so please would it be possible to share the syntax required?

The emulator executable is simply your own application, with your main function.

You can handle arguments as any normal C program, and replace the interactive initialization with a programmatic initialization.