Author Topic: Python DLL interface file  (Read 182 times)

bassa

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Python DLL interface file
« on: July 30, 2021, 12:14:23 am »
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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Python DLL interface file
« Reply #1 on: August 02, 2021, 09:28:04 am »
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

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: Python DLL interface file
« Reply #2 on: August 02, 2021, 11:39:31 pm »
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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Python DLL interface file
« Reply #3 on: August 03, 2021, 10:53:03 am »
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