Python DLL interface file

Started by bassa, July 30, 2021, 12:14:23 AM

Previous topic - Next topic

bassa

Hi,

I'm trying to add Flashmagic functionality to my existing python application.

In the FMPSCManual i found a reference to a Python interface. on page 13:

"The Python interface has been written to simply "wrap" the C based functions described in
this manual. The functions are contained in the FlashMagic object, along with all the
constants.
"

Does anyone know where to find this file?

Andy Ayre

Depending on which family you are using, it would be something like FlashMagicARMCortex.dll. Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

bassa

Hi Andy,

Thanks for your help, but that is not the file that is missing.
What i am looking for is the Python interface to acces the functions from the DLL's

The interface is described in the manual.
Even the library import is stated in the example code:

Quote
import FlashMagic;
results = FlashMagic.fm_connect()

The referred file (Flashmagic.py) is simply missing in the installer package.
There are no python files at all in the FMPS package....

Andy Ayre

For python support you will need to download V11 by going to esacademy.org and entering your activation code. Then choose Tools -> Scripts... to access the Python API.

However if you want to add Flash Magic to your own python application then you will need to access the DLL directly using the Python ctypes library.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com