Multiple threads using DLL

Started by steven_vh, November 02, 2006, 03:27:19 AM

Previous topic - Next topic

steven_vh

Hi,
I want to write an app to gang-program 24 LPC2000s simultaneously by having 24 threads access as many virtual com ports (on USB com port expander). Does the FM DLL support this multi-thread access?
regards
Steven

Andy Ayre

The DLL supports multiple threads but currently you can only call one function in the DLL at a time. This means you will have to wait for the current programming call to finish before starting the next.

Possible solutions:

1. Use CreateProcess() to start multiple programming processes, each one using a copy of the DLL. The process could be a very simple controller. Pass it the com port number and the hex file as arguments and it handles the programming autonomously and returns the result code.

2. We can write you a quote for customizing the DLL to your needs. If you are interested please contact me by email. My email address is at the bottom of this post.

Embedded Systems Academy, Inc.
support at esacademy dot com

friedmal

Hi Andy,
just to make sure since this is a very old thread.
I want to do the same, is this limitation still relevant?
that is can i need to create different processes in order to simultaneously program multiple devices?

Andy Ayre

Embedded Systems Academy, Inc.
support at esacademy dot com